Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[resize-observer-1] Resize loop errors are not displayed #5248

Open
just-boris opened this issue Jun 22, 2020 · 1 comment
Open

[resize-observer-1] Resize loop errors are not displayed #5248

just-boris opened this issue Jun 22, 2020 · 1 comment

Comments

@just-boris
Copy link

just-boris commented Jun 22, 2020

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 the error via 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?

@hilts-vaughan
Copy link

Related: #5488

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants