W3C home > Mailing lists > Public > public-css-archive@w3.org > June 2020

[csswg-drafts] [resize-observer-1] Resize loop errors are not displayed (#5248)

From: Boris Serdiuk via GitHub <sysbot+gh@w3.org>
Date: Mon, 22 Jun 2020 12:49:31 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-643044983-1592830169-sysbot+gh@w3.org>
just-boris has just created a new issue for https://github.com/w3c/csswg-drafts:

== [resize-observer-1] Resize loop errors are not displayed ==
In the Resize Observer there is a section about handing resize loops: 

https://www.w3.org/TR/resize-observer/#deliver-resize-error

> To deliver resize loop error notification run these steps:
> 1. Create a new ErrorEvent.
> 2. Initialize event’s message slot to "ResizeObserver loop completed with undelivered notifications.".
> 3. Report the exception event.

However, the step "Report the exception event" is ambiguous. Different browsers handle it differently:

Safari – prints the error message to the console
Chrome, Firefox – do not print anything to the console.

Demo: https://output.jsbin.com/vusorevisi

To be fair, all browsers report error into `window.onerror` handler, but if it is missing there is no way to see the error message.

What is the expected result here? Should browsers always print the message, like it happens with unhandled JavaScript errors, for example?

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5248 using your GitHub account
Received on Monday, 22 June 2020 12:49:33 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:09 UTC