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

Unified Diff: third_party/WebKit/Source/core/inspector/PageRuntimeAgent.cpp

Issue 1867423002: [DevTools] Handle iframes when forcing contexts on runtime.enable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « content/renderer/render_view_browsertest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/inspector/PageRuntimeAgent.cpp
diff --git a/third_party/WebKit/Source/core/inspector/PageRuntimeAgent.cpp b/third_party/WebKit/Source/core/inspector/PageRuntimeAgent.cpp
index ca54c5c391c9a474c4a52e0dc339f1898a2d63dc..0221280acbc34cb4f0814f0a520b363bf72d82e0 100644
--- a/third_party/WebKit/Source/core/inspector/PageRuntimeAgent.cpp
+++ b/third_party/WebKit/Source/core/inspector/PageRuntimeAgent.cpp
@@ -66,8 +66,10 @@ void PageRuntimeAgent::enable(ErrorString* errorString)
return;
m_instrumentingAgents->setPageRuntimeAgent(this);
- if (m_inspectedFrames->root()->loader().stateMachine()->committedFirstRealDocumentLoad())
- m_inspectedFrames->root()->script().initializeMainWorld();
+ if (m_inspectedFrames->root()->loader().stateMachine()->committedFirstRealDocumentLoad()) {
+ for (const LocalFrame* frame : *m_inspectedFrames)
+ frame->script().initializeMainWorld();
+ }
InspectorRuntimeAgent::enable(errorString);
}
« no previous file with comments | « content/renderer/render_view_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698