|
Avoid leaking objects between isolated worlds via attribute event listeners
This patch adds an isolatedWorld argument to the setters and getters
for attribute event listeners (e.g., document.onload). When called
from the bindings, this is appropriately set to either the current
isolated world or null (which can be the case for either the main
world or a worker). When these methods are called from within Blink,
we always default to the "normal" (main or worker) case.
R=abarth
BUG= 87520
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=152377
Total comments: 7
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+111 lines, -48 lines) |
Patch |
 |
A |
LayoutTests/fast/dom/event-attrs-isolated-world.html
|
View
|
1
2
|
1 chunk |
+33 lines, -0 lines |
0 comments
|
Download
|
 |
A |
LayoutTests/fast/dom/event-attrs-isolated-world-expected.txt
|
View
|
1
2
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/scripts/CodeGeneratorV8.pm
|
View
|
1
2
3
|
3 chunks |
+10 lines, -12 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/v8/V8AbstractEventListener.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/bindings/v8/V8Binding.h
|
View
|
1
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/v8/V8Binding.cpp
|
View
|
1
|
1 chunk |
+11 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/core/dom/Document.h
|
View
|
1
2
3
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
Source/core/dom/Document.cpp
|
View
|
1
2
3
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
Source/core/dom/EventListener.h
|
View
|
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/dom/EventTarget.h
|
View
|
1
|
2 chunks |
+16 lines, -15 lines |
0 comments
|
Download
|
 |
M |
Source/core/dom/EventTarget.cpp
|
View
|
1
|
2 chunks |
+19 lines, -7 lines |
0 comments
|
Download
|
 |
M |
Source/core/dom/MessagePort.h
|
View
|
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
Source/core/page/DOMWindow.h
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/modules/notifications/Notification.h
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
Total messages: 9 (0 generated)
|