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:
- A valid script state is used so the exception is not dropped in
MainThreadDebugger::ExceptionThrown. - 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}