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

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

Issue 2848653003: Add a DevTools command to create an isolated world for a given frame (Closed)
Patch Set: Created 3 years, 8 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
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

Powered by Google App Engine
This is Rietveld 408576698