Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(686)

Unified Diff: Source/core/dom/MessagePort.h

Issue 16904002: Avoid leaking objects between isolated worlds via attribute event listeners (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Patch for landing Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/dom/EventTarget.cpp ('k') | Source/core/page/DOMWindow.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/MessagePort.h
diff --git a/Source/core/dom/MessagePort.h b/Source/core/dom/MessagePort.h
index aa58831217c4ea78550990d243f856e5c78c2484..5124eb29b229a5582b4286360dacebb1470f3143 100644
--- a/Source/core/dom/MessagePort.h
+++ b/Source/core/dom/MessagePort.h
@@ -82,12 +82,12 @@ public:
bool hasPendingActivity();
- void setOnmessage(PassRefPtr<EventListener> listener)
+ void setOnmessage(PassRefPtr<EventListener> listener, DOMWrapperWorld* world)
{
- setAttributeEventListener(eventNames().messageEvent, listener);
+ setAttributeEventListener(eventNames().messageEvent, listener, world);
start();
}
- EventListener* onmessage() { return getAttributeEventListener(eventNames().messageEvent); }
+ EventListener* onmessage(DOMWrapperWorld* world) { return getAttributeEventListener(eventNames().messageEvent, world); }
// Returns null if there is no entangled port, or if the entangled port is run by a different thread.
// This is used solely to enable a GC optimization. Some platforms may not be able to determine ownership
« no previous file with comments | « Source/core/dom/EventTarget.cpp ('k') | Source/core/page/DOMWindow.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698