github web-platform-tests/wpt merge_pr_48853

latest releases: merge_pr_49470, epochs/three_hourly/2024-12-03_06H, epochs/six_hourly/2024-12-03_06H...
5 months ago

Display resize observer loop notifications in devtools

Resize observer loop notifications errors that are not canceled should
appear in the devtools console so authors have some indication of the
error. This patch does this with two changes:

  1. A valid script state is used so the exception is not dropped in
    MainThreadDebugger::ExceptionThrown.
  2. A ScriptValue of the error message is used so a message appears in
    the console. Without a ScriptValue, MainThreadDebugger::ExceptionThrown
    will print "Uncaught null".

The console behavior is not specified so two tentative tests have been
added (Safari passes these). A TODO has been added to provide a useful
source location, as suggested by https://crbug.com/40667137#comment10.

Fixed: 40667137
Change-Id: Id20c977efd1fc03caba517ecec3bf3b0a9f53163
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5970814
Auto-Submit: Philip Rogers pdr@chromium.org
Reviewed-by: Andrey Kosyakov caseq@chromium.org
Commit-Queue: Stefan Zager szager@chromium.org
Reviewed-by: Stefan Zager szager@chromium.org
Cr-Commit-Position: refs/heads/main@{#1375538}

Don't miss a new wpt release

NewReleases is sending notifications on new releases.