Index: third_party/WebKit/Source/bindings/core/v8/ScriptController.cpp |
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptController.cpp b/third_party/WebKit/Source/bindings/core/v8/ScriptController.cpp |
index 8f03da4fe08d79e3a69f87743a86a5ce465c4aad..fe201abf5ff1e33e963331e929fffa5cacdc31be 100644 |
--- a/third_party/WebKit/Source/bindings/core/v8/ScriptController.cpp |
+++ b/third_party/WebKit/Source/bindings/core/v8/ScriptController.cpp |
@@ -371,4 +371,11 @@ void ScriptController::ExecuteScriptInIsolatedWorld( |
} |
} |
+void ScriptController::EnsureIsolatedWorld(int world_id) { |
+ RefPtr<DOMWrapperWorld> world = |
+ DOMWrapperWorld::EnsureIsolatedWorld(GetIsolate(), world_id); |
+ // Make sure the execution context exists. |
+ WindowProxy(*world); |
+} |
+ |
} // namespace blink |