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

Unified Diff: Source/core/inspector/InspectorFileSystemAgent.cpp

Issue 45973006: Require DOMWrapperWorld in event handler macros (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@globaleventhandlers
Patch Set: use DOMWrapperWorld::current() Created 7 years, 2 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/events/EventTarget.h ('k') | Source/modules/indexeddb/IDBObjectStore.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/InspectorFileSystemAgent.cpp
diff --git a/Source/core/inspector/InspectorFileSystemAgent.cpp b/Source/core/inspector/InspectorFileSystemAgent.cpp
index f8bf1ae23aebf7effb5d85636eca315d51354185..2978b1b95660a21510efaf7f988629ff951104f2 100644
--- a/Source/core/inspector/InspectorFileSystemAgent.cpp
+++ b/Source/core/inspector/InspectorFileSystemAgent.cpp
@@ -472,8 +472,8 @@ bool FileContentRequest::didGetEntry(Entry* entry)
bool FileContentRequest::didGetFile(File* file)
{
RefPtr<Blob> blob = file->slice(m_start, m_end);
- m_reader->setOnload(this);
- m_reader->setOnerror(this);
+ m_reader->setOnload(this, DOMWrapperWorld::current());
+ m_reader->setOnerror(this, DOMWrapperWorld::current());
m_reader->readAsArrayBuffer(blob.get(), IGNORE_EXCEPTION);
return true;
« no previous file with comments | « Source/core/events/EventTarget.h ('k') | Source/modules/indexeddb/IDBObjectStore.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698