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

Unified Diff: Source/bindings/core/v8/ScriptController.cpp

Issue 686763002: Fix Runtime.executionContextCreated for crafted iframes. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Removed crutch Created 6 years, 1 month 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
Index: Source/bindings/core/v8/ScriptController.cpp
diff --git a/Source/bindings/core/v8/ScriptController.cpp b/Source/bindings/core/v8/ScriptController.cpp
index 98eb5c2a9e0d02780786aa2c0a1ccef320b7998f..069b0383145e562559f505501552072448b20078 100644
--- a/Source/bindings/core/v8/ScriptController.cpp
+++ b/Source/bindings/core/v8/ScriptController.cpp
@@ -218,6 +218,11 @@ bool ScriptController::initializeMainWorld()
return windowProxy(DOMWrapperWorld::mainWorld())->isContextInitialized();
}
+bool ScriptController::isMainWorldInitialized()
+{
+ return m_windowProxy->isContextInitialized();
+}
+
WindowProxy* ScriptController::existingWindowProxy(DOMWrapperWorld& world)
{
if (world.isMainWorld())

Powered by Google App Engine
This is Rietveld 408576698