Changeset 253166 in webkit
- Timestamp:
- Dec 5, 2019 12:35:24 PM (4 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r253153 r253166 1 2019-12-05 Yury Semikhatsky <yurys@chromium.org> 2 3 Web Inspector: Avoid using Runtime.executionContextCreated to figure out the iframe's contentDocument node. 4 https://bugs.webkit.org/show_bug.cgi?id=122764 5 <rdar://problem/15222136> 6 7 Reviewed by Devin Rousso. 8 9 Test that execution context is created and reported for pages without JavaScript. 10 11 * inspector/runtime/execution-context-in-scriptless-page-expected.txt: Added. 12 * inspector/runtime/execution-context-in-scriptless-page.html: Added. 13 1 14 2019-12-05 youenn fablet <youenn@apple.com> 2 15 -
trunk/Source/WebCore/ChangeLog
r253163 r253166 1 2019-12-05 Yury Semikhatsky <yurys@chromium.org> 2 3 Web Inspector: Avoid using Runtime.executionContextCreated to figure out the iframe's contentDocument node. 4 https://bugs.webkit.org/show_bug.cgi?id=122764 5 <rdar://problem/15222136> 6 7 Reviewed by Devin Rousso. 8 9 Force execution context creation on frame navigation similar to what inspector already 10 does for all known contexts when Runtime.enable is called. This is a prerequisite for 11 the injected script to work. 12 13 Test: inspector/runtime/execution-context-in-scriptless-page.html 14 15 * inspector/InspectorInstrumentation.cpp: 16 (WebCore::InspectorInstrumentation::didCommitLoadImpl): 17 * inspector/agents/page/PageRuntimeAgent.cpp: 18 (WebCore::PageRuntimeAgent::frameNavigated): 19 * inspector/agents/page/PageRuntimeAgent.h: 20 1 21 2019-12-05 Chris Dumez <cdumez@apple.com> 2 22 -
trunk/Source/WebCore/inspector/InspectorInstrumentation.cpp
r252030 r253166 718 718 } 719 719 720 if (auto* pageRuntimeAgent = instrumentingAgents.pageRuntimeAgent()) 721 pageRuntimeAgent->frameNavigated(frame); 722 720 723 if (InspectorCanvasAgent* canvasAgent = instrumentingAgents.inspectorCanvasAgent()) 721 724 canvasAgent->frameNavigated(frame); -
trunk/Source/WebCore/inspector/agents/page/PageRuntimeAgent.cpp
r251620 r253166 86 86 87 87 InspectorRuntimeAgent::disable(errorString); 88 } 89 90 void PageRuntimeAgent::frameNavigated(Frame& frame) 91 { 92 // Ensure execution context is created for the frame even if it doesn't have scripts. 93 mainWorldExecState(&frame); 88 94 } 89 95 -
trunk/Source/WebCore/inspector/agents/page/PageRuntimeAgent.h
r251620 r253166 61 61 62 62 // InspectorInstrumentation 63 void frameNavigated(Frame&); 63 64 void didClearWindowObjectInWorld(Frame&); 64 65
Note: See TracChangeset
for help on using the changeset viewer.