|
Trigger `window.onerror` only for exceptions thrown in the same world.
This patch addresses half of crbug.com/225513 by grabbing the currently
active DOMWrapperWorld when creating ErrorEvent objects, and checking
that we're still in the same world when triggering `window.onerror`
handlers.
The next step will be to adjust event dispatching to ensure that 'error'
event listeners only trigger in the same world as the exception. I'll address
that in a separate patch; this patch adds several FAILing test results to make
that gap clear.
BUG= 225513
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=157376
Total comments: 7
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+67 lines, -55 lines) |
Patch |
 |
M |
LayoutTests/fast/events/window-onerror-isolatedworld-01.html
|
View
|
1
|
1 chunk |
+24 lines, -5 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/events/window-onerror-isolatedworld-01-expected.txt
|
View
|
1
2
|
7 chunks |
+18 lines, -33 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/events/window-onerror-isolatedworld-02-expected.txt
|
View
|
1
2
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/v8/V8ErrorHandler.cpp
|
View
|
1
|
1 chunk |
+5 lines, -1 line |
0 comments
|
Download
|
 |
M |
Source/bindings/v8/V8Initializer.cpp
|
View
|
1
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/v8/WorkerScriptController.cpp
|
View
|
1
2
3
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
Source/core/dom/ErrorEvent.h
|
View
|
1
2
3
|
4 chunks |
+11 lines, -5 lines |
0 comments
|
Download
|
 |
M |
Source/core/dom/ErrorEvent.cpp
|
View
|
1
2
3
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/dom/ScriptExecutionContext.cpp
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/workers/WorkerMessagingProxy.cpp
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
Total messages: 7 (0 generated)
|