haikuwebkit/LayoutTests/inspector/page/frameStartedLoading.html

37 lines
814 B
HTML
Raw Permalink Normal View History

[Inspector] Add events for tracking page loads and scheduled navigations. https://bugs.webkit.org/show_bug.cgi?id=104168 Patch by Ken Kania <kkania@chromium.org> on 2013-01-23 Reviewed by Pavel Feldman. These events are needed for clients who need to be aware of when a page is navigating or about to navigate. Some clients may wish to prevent interaction with the page during this time. Two of the new events track loading start and stop, as measured by the ProgressTracker. The other two events track when a page has a new scheduled navigation and when it no longer has a scheduled navigation. These latter two events won't allow the client to determine if a load is going to happen in all circumstances, but is sufficient for many cases. Make sure we hold a reference to the frame in NavigationScheduler::timerFired in case the redirect causes the frame to be detached. Also, minor update to InspectorInputAgent::dispatchMouseEvent to reorder params to match dispatchKeyEvent. Source/WebCore: Tests: inspector-protocol/page/frameScheduledNavigation.html inspector-protocol/page/frameStartedLoading.html * inspector/Inspector.json: * inspector/InspectorInputAgent.cpp: (WebCore::InspectorInputAgent::dispatchMouseEvent): * inspector/InspectorInputAgent.h: (InspectorInputAgent): * inspector/InspectorInstrumentation.cpp: (WebCore): (WebCore::InspectorInstrumentation::frameStartedLoadingImpl): (WebCore::InspectorInstrumentation::frameStoppedLoadingImpl): (WebCore::InspectorInstrumentation::frameScheduledNavigationImpl): (WebCore::InspectorInstrumentation::frameClearedScheduledNavigationImpl): * inspector/InspectorInstrumentation.h: (InspectorInstrumentation): (WebCore::InspectorInstrumentation::frameStartedLoading): (WebCore): (WebCore::InspectorInstrumentation::frameStoppedLoading): (WebCore::InspectorInstrumentation::frameScheduledNavigation): (WebCore::InspectorInstrumentation::frameClearedScheduledNavigation): * inspector/InspectorPageAgent.cpp: (WebCore::InspectorPageAgent::frameStartedLoading): (WebCore): (WebCore::InspectorPageAgent::frameStoppedLoading): (WebCore::InspectorPageAgent::frameScheduledNavigation): (WebCore::InspectorPageAgent::frameClearedScheduledNavigation): * inspector/InspectorPageAgent.h: * inspector/front-end/ResourceTreeModel.js: (WebInspector.PageDispatcher.prototype.frameDetached): (WebInspector.PageDispatcher.prototype.frameStartedLoading): (WebInspector.PageDispatcher.prototype.frameStoppedLoading): (WebInspector.PageDispatcher.prototype.frameScheduledNavigation): (WebInspector.PageDispatcher.prototype.frameClearedScheduledNavigation): * loader/NavigationScheduler.cpp: (WebCore::NavigationScheduler::clear): (WebCore::NavigationScheduler::timerFired): (WebCore::NavigationScheduler::startTimer): (WebCore::NavigationScheduler::cancel): * loader/ProgressTracker.cpp: (WebCore::ProgressTracker::progressStarted): (WebCore::ProgressTracker::finalProgressComplete): LayoutTests: * inspector-protocol/page/frameScheduledNavigation-expected.txt: Added. * inspector-protocol/page/frameScheduledNavigation.html: Added. * inspector-protocol/page/frameStartedLoading-expected.txt: Added. * inspector-protocol/page/frameStartedLoading.html: Added. * platform/chromium/TestExpectations: Canonical link: https://commits.webkit.org/125980@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140649 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2013-01-24 05:42:33 +00:00
<html>
<head>
<script src="../../http/tests/inspector/resources/protocol-test.js"></script>
[Inspector] Add events for tracking page loads and scheduled navigations. https://bugs.webkit.org/show_bug.cgi?id=104168 Patch by Ken Kania <kkania@chromium.org> on 2013-01-23 Reviewed by Pavel Feldman. These events are needed for clients who need to be aware of when a page is navigating or about to navigate. Some clients may wish to prevent interaction with the page during this time. Two of the new events track loading start and stop, as measured by the ProgressTracker. The other two events track when a page has a new scheduled navigation and when it no longer has a scheduled navigation. These latter two events won't allow the client to determine if a load is going to happen in all circumstances, but is sufficient for many cases. Make sure we hold a reference to the frame in NavigationScheduler::timerFired in case the redirect causes the frame to be detached. Also, minor update to InspectorInputAgent::dispatchMouseEvent to reorder params to match dispatchKeyEvent. Source/WebCore: Tests: inspector-protocol/page/frameScheduledNavigation.html inspector-protocol/page/frameStartedLoading.html * inspector/Inspector.json: * inspector/InspectorInputAgent.cpp: (WebCore::InspectorInputAgent::dispatchMouseEvent): * inspector/InspectorInputAgent.h: (InspectorInputAgent): * inspector/InspectorInstrumentation.cpp: (WebCore): (WebCore::InspectorInstrumentation::frameStartedLoadingImpl): (WebCore::InspectorInstrumentation::frameStoppedLoadingImpl): (WebCore::InspectorInstrumentation::frameScheduledNavigationImpl): (WebCore::InspectorInstrumentation::frameClearedScheduledNavigationImpl): * inspector/InspectorInstrumentation.h: (InspectorInstrumentation): (WebCore::InspectorInstrumentation::frameStartedLoading): (WebCore): (WebCore::InspectorInstrumentation::frameStoppedLoading): (WebCore::InspectorInstrumentation::frameScheduledNavigation): (WebCore::InspectorInstrumentation::frameClearedScheduledNavigation): * inspector/InspectorPageAgent.cpp: (WebCore::InspectorPageAgent::frameStartedLoading): (WebCore): (WebCore::InspectorPageAgent::frameStoppedLoading): (WebCore::InspectorPageAgent::frameScheduledNavigation): (WebCore::InspectorPageAgent::frameClearedScheduledNavigation): * inspector/InspectorPageAgent.h: * inspector/front-end/ResourceTreeModel.js: (WebInspector.PageDispatcher.prototype.frameDetached): (WebInspector.PageDispatcher.prototype.frameStartedLoading): (WebInspector.PageDispatcher.prototype.frameStoppedLoading): (WebInspector.PageDispatcher.prototype.frameScheduledNavigation): (WebInspector.PageDispatcher.prototype.frameClearedScheduledNavigation): * loader/NavigationScheduler.cpp: (WebCore::NavigationScheduler::clear): (WebCore::NavigationScheduler::timerFired): (WebCore::NavigationScheduler::startTimer): (WebCore::NavigationScheduler::cancel): * loader/ProgressTracker.cpp: (WebCore::ProgressTracker::progressStarted): (WebCore::ProgressTracker::finalProgressComplete): LayoutTests: * inspector-protocol/page/frameScheduledNavigation-expected.txt: Added. * inspector-protocol/page/frameScheduledNavigation.html: Added. * inspector-protocol/page/frameStartedLoading-expected.txt: Added. * inspector-protocol/page/frameStartedLoading.html: Added. * platform/chromium/TestExpectations: Canonical link: https://commits.webkit.org/125980@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140649 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2013-01-24 05:42:33 +00:00
<script>
function load()
{
var frame = document.createElement("iframe");
Web Inspector: Consolidate inspector-protocol tests into domains https://bugs.webkit.org/show_bug.cgi?id=120450 Reviewed by Timothy Hatcher. Move around tests and clean them up in the process. * http/tests/inspector-protocol/resources/protocol-test.js: * inspector-protocol/css/getSupportedCSSProperties-expected.txt: Renamed from LayoutTests/inspector-protocol/css-getSupportedCSSProperties-expected.txt. * inspector-protocol/css/getSupportedCSSProperties.html: Renamed from LayoutTests/inspector-protocol/css-getSupportedCSSProperties.html. * inspector-protocol/dom/focus-expected.txt: Renamed from LayoutTests/inspector-protocol/dom-focus-expected.txt. * inspector-protocol/dom/focus.html: Renamed from LayoutTests/inspector-protocol/dom-focus.html. * inspector-protocol/dom/request-child-nodes-depth-expected.txt: Renamed from LayoutTests/inspector-protocol/dom-request-child-nodes-depth-expected.txt. * inspector-protocol/dom/request-child-nodes-depth.html: Renamed from LayoutTests/inspector-protocol/dom-request-child-nodes-depth.html. * inspector-protocol/heap-profiler/heap-snapshot-with-detached-dom-tree.html: * inspector-protocol/heap-profiler/heap-snapshot-with-event-listener.html: * inspector-protocol/heap-profiler/take-heap-snapshot.html: * inspector-protocol/nmi-webaudio-expected.txt: Removed. * inspector-protocol/nmi-webaudio-leak-test-expected.txt: Removed. * inspector-protocol/nmi-webaudio-leak-test.html: Removed. * inspector-protocol/nmi-webaudio.html: Removed. * inspector-protocol/page/frameScheduledNavigation.html: * inspector-protocol/page/frameStartedLoading.html: * inspector-protocol/page/resources/blank.html: Renamed from LayoutTests/inspector-protocol/resources/blank.html. * inspector-protocol/page/setEmulatedMedia-expected.txt: Renamed from LayoutTests/inspector-protocol/media-query-listener-exception-expected.txt. * inspector-protocol/page/setEmulatedMedia.html: Renamed from LayoutTests/inspector-protocol/media-query-listener-exception.html. * inspector-protocol/resources/audio-context.html: Removed. * inspector-protocol/runtime/getProperties-expected.txt: Renamed from LayoutTests/inspector-protocol/runtime-getProperties-expected.txt. * inspector-protocol/runtime/getProperties.html: Renamed from LayoutTests/inspector-protocol/runtime-getProperties.html. * platform/efl/TestExpectations: * platform/gtk-wk1/TestExpectations: * platform/gtk/TestExpectations: * platform/mac/TestExpectations: * platform/qt/TestExpectations: * platform/win/TestExpectations: * platform/wincairo/TestExpectations: Canonical link: https://commits.webkit.org/138459@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@154829 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2013-08-29 18:58:45 +00:00
frame.src = "resources/blank.html";
[Inspector] Add events for tracking page loads and scheduled navigations. https://bugs.webkit.org/show_bug.cgi?id=104168 Patch by Ken Kania <kkania@chromium.org> on 2013-01-23 Reviewed by Pavel Feldman. These events are needed for clients who need to be aware of when a page is navigating or about to navigate. Some clients may wish to prevent interaction with the page during this time. Two of the new events track loading start and stop, as measured by the ProgressTracker. The other two events track when a page has a new scheduled navigation and when it no longer has a scheduled navigation. These latter two events won't allow the client to determine if a load is going to happen in all circumstances, but is sufficient for many cases. Make sure we hold a reference to the frame in NavigationScheduler::timerFired in case the redirect causes the frame to be detached. Also, minor update to InspectorInputAgent::dispatchMouseEvent to reorder params to match dispatchKeyEvent. Source/WebCore: Tests: inspector-protocol/page/frameScheduledNavigation.html inspector-protocol/page/frameStartedLoading.html * inspector/Inspector.json: * inspector/InspectorInputAgent.cpp: (WebCore::InspectorInputAgent::dispatchMouseEvent): * inspector/InspectorInputAgent.h: (InspectorInputAgent): * inspector/InspectorInstrumentation.cpp: (WebCore): (WebCore::InspectorInstrumentation::frameStartedLoadingImpl): (WebCore::InspectorInstrumentation::frameStoppedLoadingImpl): (WebCore::InspectorInstrumentation::frameScheduledNavigationImpl): (WebCore::InspectorInstrumentation::frameClearedScheduledNavigationImpl): * inspector/InspectorInstrumentation.h: (InspectorInstrumentation): (WebCore::InspectorInstrumentation::frameStartedLoading): (WebCore): (WebCore::InspectorInstrumentation::frameStoppedLoading): (WebCore::InspectorInstrumentation::frameScheduledNavigation): (WebCore::InspectorInstrumentation::frameClearedScheduledNavigation): * inspector/InspectorPageAgent.cpp: (WebCore::InspectorPageAgent::frameStartedLoading): (WebCore): (WebCore::InspectorPageAgent::frameStoppedLoading): (WebCore::InspectorPageAgent::frameScheduledNavigation): (WebCore::InspectorPageAgent::frameClearedScheduledNavigation): * inspector/InspectorPageAgent.h: * inspector/front-end/ResourceTreeModel.js: (WebInspector.PageDispatcher.prototype.frameDetached): (WebInspector.PageDispatcher.prototype.frameStartedLoading): (WebInspector.PageDispatcher.prototype.frameStoppedLoading): (WebInspector.PageDispatcher.prototype.frameScheduledNavigation): (WebInspector.PageDispatcher.prototype.frameClearedScheduledNavigation): * loader/NavigationScheduler.cpp: (WebCore::NavigationScheduler::clear): (WebCore::NavigationScheduler::timerFired): (WebCore::NavigationScheduler::startTimer): (WebCore::NavigationScheduler::cancel): * loader/ProgressTracker.cpp: (WebCore::ProgressTracker::progressStarted): (WebCore::ProgressTracker::finalProgressComplete): LayoutTests: * inspector-protocol/page/frameScheduledNavigation-expected.txt: Added. * inspector-protocol/page/frameScheduledNavigation.html: Added. * inspector-protocol/page/frameStartedLoading-expected.txt: Added. * inspector-protocol/page/frameStartedLoading.html: Added. * platform/chromium/TestExpectations: Canonical link: https://commits.webkit.org/125980@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140649 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2013-01-24 05:42:33 +00:00
document.body.appendChild(frame);
}
function test()
{
Web Inspector: use different namespaces in test fixtures for protocol tests and frontend tests https://bugs.webkit.org/show_bug.cgi?id=147787 Patch by Brian Burg <bburg@apple.com> on 2015-08-11 Reviewed by Timothy Hatcher. Refactor test methods to use three distinct namespaces to reflect their implementation: - InspectorProtocol contains commands that are only used from within protocol tests. This includes sending and receiving protocol messages and checking message errors. - InspectorTest contains test methods for full inspector frontend tests. - ProtocolTest contains test methods for protocol tests. In a subsequent patch, most methods in InspectorTest and ProtocolTest namespaces will be unified so that implementations of log, assert, etc. are no longer duplicated. For now, at least make it obvious at each callsite what code is being invoked. * http/tests/inspector/console/access-inspected-object.html: * http/tests/inspector/dom/resources/InspectorDOMListener.js: * http/tests/inspector/page/loading-iframe-document-node.html: * http/tests/inspector/resources/ProtocolTestStub.js: * http/tests/inspector/resources/console-test.js: * http/tests/inspector/resources/probe-test.js: * inspector/console/console-message.html: * inspector/console/css-source-locations.html: * inspector/console/js-source-locations.html: * inspector/console/x-frame-options-message.html: * inspector/css/getSupportedCSSProperties.html: * inspector/debugger/breakpoint-action-detach.html: * inspector/debugger/breakpoint-action-with-exception.html: * inspector/debugger/breakpoint-condition-detach.html: * inspector/debugger/breakpoint-condition-with-bad-script.html: * inspector/debugger/breakpoint-condition-with-exception.html: * inspector/debugger/breakpoint-eval-with-exception.html: * inspector/debugger/breakpoint-inside-conditons-and-actions.html: * inspector/debugger/call-frame-function-name.html: * inspector/debugger/call-frame-this-host.html: * inspector/debugger/call-frame-this-nonstrict.html: * inspector/debugger/call-frame-this-strict.html: * inspector/debugger/debugger-statement.html: * inspector/debugger/didSampleProbe-multiple-probes.html: * inspector/debugger/hit-breakpoint-from-console.html: * inspector/debugger/nested-inspectors.html: * inspector/debugger/pause-dedicated-worker.html: * inspector/debugger/pause-on-assert.html: * inspector/debugger/regress-133182.html: * inspector/debugger/removeBreakpoint.html: * inspector/debugger/searchInContent-linebreaks.html: * inspector/debugger/setBreakpoint-actions.html: * inspector/debugger/setBreakpoint-autoContinue.html: * inspector/debugger/setBreakpoint-column.html: * inspector/debugger/setBreakpoint-condition.html: * inspector/debugger/setBreakpoint-dfg-and-modify-local.html: * inspector/debugger/setBreakpoint-dfg-callee-and-examine-dfg-local.html: * inspector/debugger/setBreakpoint-dfg.html: * inspector/debugger/setBreakpoint-options-exception.html: * inspector/debugger/setBreakpoint.html: * inspector/debugger/setBreakpointByUrl-sourceURL.html: * inspector/debugger/setPauseOnExceptions-all.html: * inspector/debugger/setPauseOnExceptions-none.html: * inspector/debugger/setPauseOnExceptions-uncaught.html: * inspector/debugger/setVariableValue.html: * inspector/debugger/terminate-dedicated-worker-while-paused.html: * inspector/dom-debugger/node-removed.html: * inspector/dom/dom-remove-events.html: * inspector/dom/dom-search-crash.html: * inspector/dom/dom-search-with-context.html: * inspector/dom/dom-search.html: * inspector/dom/focus.html: * inspector/dom/getAccessibilityPropertiesForNode.html: * inspector/dom/getAccessibilityPropertiesForNode_liveRegion.html: * inspector/dom/getAccessibilityPropertiesForNode_mouseEventNodeId.html: * inspector/dom/highlight-flow-with-no-region.html: * inspector/dom/remove-multiple-nodes.html: * inspector/dom/request-child-nodes-depth.html: * inspector/layers/layers-anonymous.html: * inspector/layers/layers-blending-compositing-reasons.html: * inspector/layers/layers-compositing-reasons.html: * inspector/layers/layers-for-node.html: * inspector/layers/layers-generated-content.html: * inspector/layers/layers-reflected-content.html: * inspector/page/archive.html: * inspector/page/frameScheduledNavigation.html: * inspector/page/frameStartedLoading.html: * inspector/page/javascriptDialogEvents.html: * inspector/page/setEmulatedMedia.html: * inspector/runtime/getProperties.html: * inspector/unit-tests/async-test-suite.html: * inspector/unit-tests/sync-test-suite.html: Canonical link: https://commits.webkit.org/165990@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@188267 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2015-08-11 18:28:31 +00:00
InspectorProtocol.eventHandler["Page.frameStartedLoading"] = onStart;
InspectorProtocol.eventHandler["Page.frameStoppedLoading"] = onStop;
Web Inspector: Page: re-add enable/disable after r248454 https://bugs.webkit.org/show_bug.cgi?id=200947 Reviewed by Joseph Pecoraro. Source/JavaScriptCore: We shouldn't design the agent system with only Web Inspector in mind. Other clients may want to have different functionality, not being told about frames creation/updates/destruction. In these cases, we should have graceful error message failures for other agents that rely on the Page agent. * inspector/protocol/Page.json: Source/WebCore: We shouldn't design the agent system with only Web Inspector in mind. Other clients may want to have different functionality, not being told about frames creation/updates/destruction. In these cases, we should have graceful error message failures for other agents that rely on the Page agent. * inspector/agents/InspectorPageAgent.h: * inspector/agents/InspectorPageAgent.cpp: (WebCore::InspectorPageAgent::didCreateFrontendAndBackend): (WebCore::InspectorPageAgent::willDestroyFrontendAndBackend): (WebCore::InspectorPageAgent::enable): Added. (WebCore::InspectorPageAgent::disable): Added. * inspector/agents/InspectorApplicationCacheAgent.cpp: (WebCore::InspectorApplicationCacheAgent::updateApplicationCacheStatus): (WebCore::InspectorApplicationCacheAgent::getFramesWithManifests): (WebCore::InspectorApplicationCacheAgent::assertFrameWithDocumentLoader): * inspector/agents/InspectorCSSAgent.cpp: (WebCore::InspectorCSSAgent::createStyleSheet): * inspector/agents/InspectorDOMAgent.cpp: (WebCore::InspectorDOMAgent::highlightSelector): (WebCore::InspectorDOMAgent::highlightFrame): (WebCore::InspectorDOMAgent::buildObjectForNode): * inspector/agents/InspectorTimelineAgent.cpp: (WebCore::InspectorTimelineAgent::setFrameIdentifier): * inspector/agents/page/PageNetworkAgent.cpp: (WebCore::PageNetworkAgent::loaderIdentifier): (WebCore::PageNetworkAgent::frameIdentifier): (WebCore::PageNetworkAgent::scriptExecutionContext): * inspector/agents/page/PageRuntimeAgent.cpp: (WebCore::PageRuntimeAgent::didCreateMainWorldContext): (WebCore::PageRuntimeAgent::reportExecutionContextCreation): Source/WebInspectorUI: We shouldn't design the agent system with only Web Inspector in mind. Other clients may want to have different functionality, not being told about frames creation/updates/destruction. In these cases, we should have graceful error message failures for other agents that rely on the Page agent. * UserInterface/Controllers/NetworkManager.js: (WI.NetworkManager.prototype.initializeTarget): LayoutTests: * http/tests/inspector/page/loading-iframe-document-node.html: * inspector/css/getMatchedStylesForNode.html: * inspector/css/getMatchedStylesForNode-expected.txt: * inspector/page/archive.html: * inspector/page/frameScheduledNavigation.html: * inspector/page/frameScheduledNavigation-async-delegates.html: * inspector/page/frameStartedLoading.html: * inspector/page/media-query-list-listener-exception.html: * inspector/timeline/line-column.html: Canonical link: https://commits.webkit.org/214690@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@248943 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-08-21 16:50:14 +00:00
InspectorProtocol.sendCommand("Page.enable", {});
[Inspector] Add events for tracking page loads and scheduled navigations. https://bugs.webkit.org/show_bug.cgi?id=104168 Patch by Ken Kania <kkania@chromium.org> on 2013-01-23 Reviewed by Pavel Feldman. These events are needed for clients who need to be aware of when a page is navigating or about to navigate. Some clients may wish to prevent interaction with the page during this time. Two of the new events track loading start and stop, as measured by the ProgressTracker. The other two events track when a page has a new scheduled navigation and when it no longer has a scheduled navigation. These latter two events won't allow the client to determine if a load is going to happen in all circumstances, but is sufficient for many cases. Make sure we hold a reference to the frame in NavigationScheduler::timerFired in case the redirect causes the frame to be detached. Also, minor update to InspectorInputAgent::dispatchMouseEvent to reorder params to match dispatchKeyEvent. Source/WebCore: Tests: inspector-protocol/page/frameScheduledNavigation.html inspector-protocol/page/frameStartedLoading.html * inspector/Inspector.json: * inspector/InspectorInputAgent.cpp: (WebCore::InspectorInputAgent::dispatchMouseEvent): * inspector/InspectorInputAgent.h: (InspectorInputAgent): * inspector/InspectorInstrumentation.cpp: (WebCore): (WebCore::InspectorInstrumentation::frameStartedLoadingImpl): (WebCore::InspectorInstrumentation::frameStoppedLoadingImpl): (WebCore::InspectorInstrumentation::frameScheduledNavigationImpl): (WebCore::InspectorInstrumentation::frameClearedScheduledNavigationImpl): * inspector/InspectorInstrumentation.h: (InspectorInstrumentation): (WebCore::InspectorInstrumentation::frameStartedLoading): (WebCore): (WebCore::InspectorInstrumentation::frameStoppedLoading): (WebCore::InspectorInstrumentation::frameScheduledNavigation): (WebCore::InspectorInstrumentation::frameClearedScheduledNavigation): * inspector/InspectorPageAgent.cpp: (WebCore::InspectorPageAgent::frameStartedLoading): (WebCore): (WebCore::InspectorPageAgent::frameStoppedLoading): (WebCore::InspectorPageAgent::frameScheduledNavigation): (WebCore::InspectorPageAgent::frameClearedScheduledNavigation): * inspector/InspectorPageAgent.h: * inspector/front-end/ResourceTreeModel.js: (WebInspector.PageDispatcher.prototype.frameDetached): (WebInspector.PageDispatcher.prototype.frameStartedLoading): (WebInspector.PageDispatcher.prototype.frameStoppedLoading): (WebInspector.PageDispatcher.prototype.frameScheduledNavigation): (WebInspector.PageDispatcher.prototype.frameClearedScheduledNavigation): * loader/NavigationScheduler.cpp: (WebCore::NavigationScheduler::clear): (WebCore::NavigationScheduler::timerFired): (WebCore::NavigationScheduler::startTimer): (WebCore::NavigationScheduler::cancel): * loader/ProgressTracker.cpp: (WebCore::ProgressTracker::progressStarted): (WebCore::ProgressTracker::finalProgressComplete): LayoutTests: * inspector-protocol/page/frameScheduledNavigation-expected.txt: Added. * inspector-protocol/page/frameScheduledNavigation.html: Added. * inspector-protocol/page/frameStartedLoading-expected.txt: Added. * inspector-protocol/page/frameStartedLoading.html: Added. * platform/chromium/TestExpectations: Canonical link: https://commits.webkit.org/125980@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140649 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2013-01-24 05:42:33 +00:00
function onStart()
{
Web Inspector: use different namespaces in test fixtures for protocol tests and frontend tests https://bugs.webkit.org/show_bug.cgi?id=147787 Patch by Brian Burg <bburg@apple.com> on 2015-08-11 Reviewed by Timothy Hatcher. Refactor test methods to use three distinct namespaces to reflect their implementation: - InspectorProtocol contains commands that are only used from within protocol tests. This includes sending and receiving protocol messages and checking message errors. - InspectorTest contains test methods for full inspector frontend tests. - ProtocolTest contains test methods for protocol tests. In a subsequent patch, most methods in InspectorTest and ProtocolTest namespaces will be unified so that implementations of log, assert, etc. are no longer duplicated. For now, at least make it obvious at each callsite what code is being invoked. * http/tests/inspector/console/access-inspected-object.html: * http/tests/inspector/dom/resources/InspectorDOMListener.js: * http/tests/inspector/page/loading-iframe-document-node.html: * http/tests/inspector/resources/ProtocolTestStub.js: * http/tests/inspector/resources/console-test.js: * http/tests/inspector/resources/probe-test.js: * inspector/console/console-message.html: * inspector/console/css-source-locations.html: * inspector/console/js-source-locations.html: * inspector/console/x-frame-options-message.html: * inspector/css/getSupportedCSSProperties.html: * inspector/debugger/breakpoint-action-detach.html: * inspector/debugger/breakpoint-action-with-exception.html: * inspector/debugger/breakpoint-condition-detach.html: * inspector/debugger/breakpoint-condition-with-bad-script.html: * inspector/debugger/breakpoint-condition-with-exception.html: * inspector/debugger/breakpoint-eval-with-exception.html: * inspector/debugger/breakpoint-inside-conditons-and-actions.html: * inspector/debugger/call-frame-function-name.html: * inspector/debugger/call-frame-this-host.html: * inspector/debugger/call-frame-this-nonstrict.html: * inspector/debugger/call-frame-this-strict.html: * inspector/debugger/debugger-statement.html: * inspector/debugger/didSampleProbe-multiple-probes.html: * inspector/debugger/hit-breakpoint-from-console.html: * inspector/debugger/nested-inspectors.html: * inspector/debugger/pause-dedicated-worker.html: * inspector/debugger/pause-on-assert.html: * inspector/debugger/regress-133182.html: * inspector/debugger/removeBreakpoint.html: * inspector/debugger/searchInContent-linebreaks.html: * inspector/debugger/setBreakpoint-actions.html: * inspector/debugger/setBreakpoint-autoContinue.html: * inspector/debugger/setBreakpoint-column.html: * inspector/debugger/setBreakpoint-condition.html: * inspector/debugger/setBreakpoint-dfg-and-modify-local.html: * inspector/debugger/setBreakpoint-dfg-callee-and-examine-dfg-local.html: * inspector/debugger/setBreakpoint-dfg.html: * inspector/debugger/setBreakpoint-options-exception.html: * inspector/debugger/setBreakpoint.html: * inspector/debugger/setBreakpointByUrl-sourceURL.html: * inspector/debugger/setPauseOnExceptions-all.html: * inspector/debugger/setPauseOnExceptions-none.html: * inspector/debugger/setPauseOnExceptions-uncaught.html: * inspector/debugger/setVariableValue.html: * inspector/debugger/terminate-dedicated-worker-while-paused.html: * inspector/dom-debugger/node-removed.html: * inspector/dom/dom-remove-events.html: * inspector/dom/dom-search-crash.html: * inspector/dom/dom-search-with-context.html: * inspector/dom/dom-search.html: * inspector/dom/focus.html: * inspector/dom/getAccessibilityPropertiesForNode.html: * inspector/dom/getAccessibilityPropertiesForNode_liveRegion.html: * inspector/dom/getAccessibilityPropertiesForNode_mouseEventNodeId.html: * inspector/dom/highlight-flow-with-no-region.html: * inspector/dom/remove-multiple-nodes.html: * inspector/dom/request-child-nodes-depth.html: * inspector/layers/layers-anonymous.html: * inspector/layers/layers-blending-compositing-reasons.html: * inspector/layers/layers-compositing-reasons.html: * inspector/layers/layers-for-node.html: * inspector/layers/layers-generated-content.html: * inspector/layers/layers-reflected-content.html: * inspector/page/archive.html: * inspector/page/frameScheduledNavigation.html: * inspector/page/frameStartedLoading.html: * inspector/page/javascriptDialogEvents.html: * inspector/page/setEmulatedMedia.html: * inspector/runtime/getProperties.html: * inspector/unit-tests/async-test-suite.html: * inspector/unit-tests/sync-test-suite.html: Canonical link: https://commits.webkit.org/165990@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@188267 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2015-08-11 18:28:31 +00:00
ProtocolTest.log("Started loading");
[Inspector] Add events for tracking page loads and scheduled navigations. https://bugs.webkit.org/show_bug.cgi?id=104168 Patch by Ken Kania <kkania@chromium.org> on 2013-01-23 Reviewed by Pavel Feldman. These events are needed for clients who need to be aware of when a page is navigating or about to navigate. Some clients may wish to prevent interaction with the page during this time. Two of the new events track loading start and stop, as measured by the ProgressTracker. The other two events track when a page has a new scheduled navigation and when it no longer has a scheduled navigation. These latter two events won't allow the client to determine if a load is going to happen in all circumstances, but is sufficient for many cases. Make sure we hold a reference to the frame in NavigationScheduler::timerFired in case the redirect causes the frame to be detached. Also, minor update to InspectorInputAgent::dispatchMouseEvent to reorder params to match dispatchKeyEvent. Source/WebCore: Tests: inspector-protocol/page/frameScheduledNavigation.html inspector-protocol/page/frameStartedLoading.html * inspector/Inspector.json: * inspector/InspectorInputAgent.cpp: (WebCore::InspectorInputAgent::dispatchMouseEvent): * inspector/InspectorInputAgent.h: (InspectorInputAgent): * inspector/InspectorInstrumentation.cpp: (WebCore): (WebCore::InspectorInstrumentation::frameStartedLoadingImpl): (WebCore::InspectorInstrumentation::frameStoppedLoadingImpl): (WebCore::InspectorInstrumentation::frameScheduledNavigationImpl): (WebCore::InspectorInstrumentation::frameClearedScheduledNavigationImpl): * inspector/InspectorInstrumentation.h: (InspectorInstrumentation): (WebCore::InspectorInstrumentation::frameStartedLoading): (WebCore): (WebCore::InspectorInstrumentation::frameStoppedLoading): (WebCore::InspectorInstrumentation::frameScheduledNavigation): (WebCore::InspectorInstrumentation::frameClearedScheduledNavigation): * inspector/InspectorPageAgent.cpp: (WebCore::InspectorPageAgent::frameStartedLoading): (WebCore): (WebCore::InspectorPageAgent::frameStoppedLoading): (WebCore::InspectorPageAgent::frameScheduledNavigation): (WebCore::InspectorPageAgent::frameClearedScheduledNavigation): * inspector/InspectorPageAgent.h: * inspector/front-end/ResourceTreeModel.js: (WebInspector.PageDispatcher.prototype.frameDetached): (WebInspector.PageDispatcher.prototype.frameStartedLoading): (WebInspector.PageDispatcher.prototype.frameStoppedLoading): (WebInspector.PageDispatcher.prototype.frameScheduledNavigation): (WebInspector.PageDispatcher.prototype.frameClearedScheduledNavigation): * loader/NavigationScheduler.cpp: (WebCore::NavigationScheduler::clear): (WebCore::NavigationScheduler::timerFired): (WebCore::NavigationScheduler::startTimer): (WebCore::NavigationScheduler::cancel): * loader/ProgressTracker.cpp: (WebCore::ProgressTracker::progressStarted): (WebCore::ProgressTracker::finalProgressComplete): LayoutTests: * inspector-protocol/page/frameScheduledNavigation-expected.txt: Added. * inspector-protocol/page/frameScheduledNavigation.html: Added. * inspector-protocol/page/frameStartedLoading-expected.txt: Added. * inspector-protocol/page/frameStartedLoading.html: Added. * platform/chromium/TestExpectations: Canonical link: https://commits.webkit.org/125980@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140649 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2013-01-24 05:42:33 +00:00
}
function onStop()
{
Web Inspector: use different namespaces in test fixtures for protocol tests and frontend tests https://bugs.webkit.org/show_bug.cgi?id=147787 Patch by Brian Burg <bburg@apple.com> on 2015-08-11 Reviewed by Timothy Hatcher. Refactor test methods to use three distinct namespaces to reflect their implementation: - InspectorProtocol contains commands that are only used from within protocol tests. This includes sending and receiving protocol messages and checking message errors. - InspectorTest contains test methods for full inspector frontend tests. - ProtocolTest contains test methods for protocol tests. In a subsequent patch, most methods in InspectorTest and ProtocolTest namespaces will be unified so that implementations of log, assert, etc. are no longer duplicated. For now, at least make it obvious at each callsite what code is being invoked. * http/tests/inspector/console/access-inspected-object.html: * http/tests/inspector/dom/resources/InspectorDOMListener.js: * http/tests/inspector/page/loading-iframe-document-node.html: * http/tests/inspector/resources/ProtocolTestStub.js: * http/tests/inspector/resources/console-test.js: * http/tests/inspector/resources/probe-test.js: * inspector/console/console-message.html: * inspector/console/css-source-locations.html: * inspector/console/js-source-locations.html: * inspector/console/x-frame-options-message.html: * inspector/css/getSupportedCSSProperties.html: * inspector/debugger/breakpoint-action-detach.html: * inspector/debugger/breakpoint-action-with-exception.html: * inspector/debugger/breakpoint-condition-detach.html: * inspector/debugger/breakpoint-condition-with-bad-script.html: * inspector/debugger/breakpoint-condition-with-exception.html: * inspector/debugger/breakpoint-eval-with-exception.html: * inspector/debugger/breakpoint-inside-conditons-and-actions.html: * inspector/debugger/call-frame-function-name.html: * inspector/debugger/call-frame-this-host.html: * inspector/debugger/call-frame-this-nonstrict.html: * inspector/debugger/call-frame-this-strict.html: * inspector/debugger/debugger-statement.html: * inspector/debugger/didSampleProbe-multiple-probes.html: * inspector/debugger/hit-breakpoint-from-console.html: * inspector/debugger/nested-inspectors.html: * inspector/debugger/pause-dedicated-worker.html: * inspector/debugger/pause-on-assert.html: * inspector/debugger/regress-133182.html: * inspector/debugger/removeBreakpoint.html: * inspector/debugger/searchInContent-linebreaks.html: * inspector/debugger/setBreakpoint-actions.html: * inspector/debugger/setBreakpoint-autoContinue.html: * inspector/debugger/setBreakpoint-column.html: * inspector/debugger/setBreakpoint-condition.html: * inspector/debugger/setBreakpoint-dfg-and-modify-local.html: * inspector/debugger/setBreakpoint-dfg-callee-and-examine-dfg-local.html: * inspector/debugger/setBreakpoint-dfg.html: * inspector/debugger/setBreakpoint-options-exception.html: * inspector/debugger/setBreakpoint.html: * inspector/debugger/setBreakpointByUrl-sourceURL.html: * inspector/debugger/setPauseOnExceptions-all.html: * inspector/debugger/setPauseOnExceptions-none.html: * inspector/debugger/setPauseOnExceptions-uncaught.html: * inspector/debugger/setVariableValue.html: * inspector/debugger/terminate-dedicated-worker-while-paused.html: * inspector/dom-debugger/node-removed.html: * inspector/dom/dom-remove-events.html: * inspector/dom/dom-search-crash.html: * inspector/dom/dom-search-with-context.html: * inspector/dom/dom-search.html: * inspector/dom/focus.html: * inspector/dom/getAccessibilityPropertiesForNode.html: * inspector/dom/getAccessibilityPropertiesForNode_liveRegion.html: * inspector/dom/getAccessibilityPropertiesForNode_mouseEventNodeId.html: * inspector/dom/highlight-flow-with-no-region.html: * inspector/dom/remove-multiple-nodes.html: * inspector/dom/request-child-nodes-depth.html: * inspector/layers/layers-anonymous.html: * inspector/layers/layers-blending-compositing-reasons.html: * inspector/layers/layers-compositing-reasons.html: * inspector/layers/layers-for-node.html: * inspector/layers/layers-generated-content.html: * inspector/layers/layers-reflected-content.html: * inspector/page/archive.html: * inspector/page/frameScheduledNavigation.html: * inspector/page/frameStartedLoading.html: * inspector/page/javascriptDialogEvents.html: * inspector/page/setEmulatedMedia.html: * inspector/runtime/getProperties.html: * inspector/unit-tests/async-test-suite.html: * inspector/unit-tests/sync-test-suite.html: Canonical link: https://commits.webkit.org/165990@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@188267 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2015-08-11 18:28:31 +00:00
ProtocolTest.log("Stopped loading");
ProtocolTest.completeTest();
[Inspector] Add events for tracking page loads and scheduled navigations. https://bugs.webkit.org/show_bug.cgi?id=104168 Patch by Ken Kania <kkania@chromium.org> on 2013-01-23 Reviewed by Pavel Feldman. These events are needed for clients who need to be aware of when a page is navigating or about to navigate. Some clients may wish to prevent interaction with the page during this time. Two of the new events track loading start and stop, as measured by the ProgressTracker. The other two events track when a page has a new scheduled navigation and when it no longer has a scheduled navigation. These latter two events won't allow the client to determine if a load is going to happen in all circumstances, but is sufficient for many cases. Make sure we hold a reference to the frame in NavigationScheduler::timerFired in case the redirect causes the frame to be detached. Also, minor update to InspectorInputAgent::dispatchMouseEvent to reorder params to match dispatchKeyEvent. Source/WebCore: Tests: inspector-protocol/page/frameScheduledNavigation.html inspector-protocol/page/frameStartedLoading.html * inspector/Inspector.json: * inspector/InspectorInputAgent.cpp: (WebCore::InspectorInputAgent::dispatchMouseEvent): * inspector/InspectorInputAgent.h: (InspectorInputAgent): * inspector/InspectorInstrumentation.cpp: (WebCore): (WebCore::InspectorInstrumentation::frameStartedLoadingImpl): (WebCore::InspectorInstrumentation::frameStoppedLoadingImpl): (WebCore::InspectorInstrumentation::frameScheduledNavigationImpl): (WebCore::InspectorInstrumentation::frameClearedScheduledNavigationImpl): * inspector/InspectorInstrumentation.h: (InspectorInstrumentation): (WebCore::InspectorInstrumentation::frameStartedLoading): (WebCore): (WebCore::InspectorInstrumentation::frameStoppedLoading): (WebCore::InspectorInstrumentation::frameScheduledNavigation): (WebCore::InspectorInstrumentation::frameClearedScheduledNavigation): * inspector/InspectorPageAgent.cpp: (WebCore::InspectorPageAgent::frameStartedLoading): (WebCore): (WebCore::InspectorPageAgent::frameStoppedLoading): (WebCore::InspectorPageAgent::frameScheduledNavigation): (WebCore::InspectorPageAgent::frameClearedScheduledNavigation): * inspector/InspectorPageAgent.h: * inspector/front-end/ResourceTreeModel.js: (WebInspector.PageDispatcher.prototype.frameDetached): (WebInspector.PageDispatcher.prototype.frameStartedLoading): (WebInspector.PageDispatcher.prototype.frameStoppedLoading): (WebInspector.PageDispatcher.prototype.frameScheduledNavigation): (WebInspector.PageDispatcher.prototype.frameClearedScheduledNavigation): * loader/NavigationScheduler.cpp: (WebCore::NavigationScheduler::clear): (WebCore::NavigationScheduler::timerFired): (WebCore::NavigationScheduler::startTimer): (WebCore::NavigationScheduler::cancel): * loader/ProgressTracker.cpp: (WebCore::ProgressTracker::progressStarted): (WebCore::ProgressTracker::finalProgressComplete): LayoutTests: * inspector-protocol/page/frameScheduledNavigation-expected.txt: Added. * inspector-protocol/page/frameScheduledNavigation.html: Added. * inspector-protocol/page/frameStartedLoading-expected.txt: Added. * inspector-protocol/page/frameStartedLoading.html: Added. * platform/chromium/TestExpectations: Canonical link: https://commits.webkit.org/125980@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140649 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2013-01-24 05:42:33 +00:00
}
Web Inspector: use different namespaces in test fixtures for protocol tests and frontend tests https://bugs.webkit.org/show_bug.cgi?id=147787 Patch by Brian Burg <bburg@apple.com> on 2015-08-11 Reviewed by Timothy Hatcher. Refactor test methods to use three distinct namespaces to reflect their implementation: - InspectorProtocol contains commands that are only used from within protocol tests. This includes sending and receiving protocol messages and checking message errors. - InspectorTest contains test methods for full inspector frontend tests. - ProtocolTest contains test methods for protocol tests. In a subsequent patch, most methods in InspectorTest and ProtocolTest namespaces will be unified so that implementations of log, assert, etc. are no longer duplicated. For now, at least make it obvious at each callsite what code is being invoked. * http/tests/inspector/console/access-inspected-object.html: * http/tests/inspector/dom/resources/InspectorDOMListener.js: * http/tests/inspector/page/loading-iframe-document-node.html: * http/tests/inspector/resources/ProtocolTestStub.js: * http/tests/inspector/resources/console-test.js: * http/tests/inspector/resources/probe-test.js: * inspector/console/console-message.html: * inspector/console/css-source-locations.html: * inspector/console/js-source-locations.html: * inspector/console/x-frame-options-message.html: * inspector/css/getSupportedCSSProperties.html: * inspector/debugger/breakpoint-action-detach.html: * inspector/debugger/breakpoint-action-with-exception.html: * inspector/debugger/breakpoint-condition-detach.html: * inspector/debugger/breakpoint-condition-with-bad-script.html: * inspector/debugger/breakpoint-condition-with-exception.html: * inspector/debugger/breakpoint-eval-with-exception.html: * inspector/debugger/breakpoint-inside-conditons-and-actions.html: * inspector/debugger/call-frame-function-name.html: * inspector/debugger/call-frame-this-host.html: * inspector/debugger/call-frame-this-nonstrict.html: * inspector/debugger/call-frame-this-strict.html: * inspector/debugger/debugger-statement.html: * inspector/debugger/didSampleProbe-multiple-probes.html: * inspector/debugger/hit-breakpoint-from-console.html: * inspector/debugger/nested-inspectors.html: * inspector/debugger/pause-dedicated-worker.html: * inspector/debugger/pause-on-assert.html: * inspector/debugger/regress-133182.html: * inspector/debugger/removeBreakpoint.html: * inspector/debugger/searchInContent-linebreaks.html: * inspector/debugger/setBreakpoint-actions.html: * inspector/debugger/setBreakpoint-autoContinue.html: * inspector/debugger/setBreakpoint-column.html: * inspector/debugger/setBreakpoint-condition.html: * inspector/debugger/setBreakpoint-dfg-and-modify-local.html: * inspector/debugger/setBreakpoint-dfg-callee-and-examine-dfg-local.html: * inspector/debugger/setBreakpoint-dfg.html: * inspector/debugger/setBreakpoint-options-exception.html: * inspector/debugger/setBreakpoint.html: * inspector/debugger/setBreakpointByUrl-sourceURL.html: * inspector/debugger/setPauseOnExceptions-all.html: * inspector/debugger/setPauseOnExceptions-none.html: * inspector/debugger/setPauseOnExceptions-uncaught.html: * inspector/debugger/setVariableValue.html: * inspector/debugger/terminate-dedicated-worker-while-paused.html: * inspector/dom-debugger/node-removed.html: * inspector/dom/dom-remove-events.html: * inspector/dom/dom-search-crash.html: * inspector/dom/dom-search-with-context.html: * inspector/dom/dom-search.html: * inspector/dom/focus.html: * inspector/dom/getAccessibilityPropertiesForNode.html: * inspector/dom/getAccessibilityPropertiesForNode_liveRegion.html: * inspector/dom/getAccessibilityPropertiesForNode_mouseEventNodeId.html: * inspector/dom/highlight-flow-with-no-region.html: * inspector/dom/remove-multiple-nodes.html: * inspector/dom/request-child-nodes-depth.html: * inspector/layers/layers-anonymous.html: * inspector/layers/layers-blending-compositing-reasons.html: * inspector/layers/layers-compositing-reasons.html: * inspector/layers/layers-for-node.html: * inspector/layers/layers-generated-content.html: * inspector/layers/layers-reflected-content.html: * inspector/page/archive.html: * inspector/page/frameScheduledNavigation.html: * inspector/page/frameStartedLoading.html: * inspector/page/javascriptDialogEvents.html: * inspector/page/setEmulatedMedia.html: * inspector/runtime/getProperties.html: * inspector/unit-tests/async-test-suite.html: * inspector/unit-tests/sync-test-suite.html: Canonical link: https://commits.webkit.org/165990@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@188267 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2015-08-11 18:28:31 +00:00
InspectorProtocol.sendCommand("Runtime.evaluate", { "expression": "load()" });
[Inspector] Add events for tracking page loads and scheduled navigations. https://bugs.webkit.org/show_bug.cgi?id=104168 Patch by Ken Kania <kkania@chromium.org> on 2013-01-23 Reviewed by Pavel Feldman. These events are needed for clients who need to be aware of when a page is navigating or about to navigate. Some clients may wish to prevent interaction with the page during this time. Two of the new events track loading start and stop, as measured by the ProgressTracker. The other two events track when a page has a new scheduled navigation and when it no longer has a scheduled navigation. These latter two events won't allow the client to determine if a load is going to happen in all circumstances, but is sufficient for many cases. Make sure we hold a reference to the frame in NavigationScheduler::timerFired in case the redirect causes the frame to be detached. Also, minor update to InspectorInputAgent::dispatchMouseEvent to reorder params to match dispatchKeyEvent. Source/WebCore: Tests: inspector-protocol/page/frameScheduledNavigation.html inspector-protocol/page/frameStartedLoading.html * inspector/Inspector.json: * inspector/InspectorInputAgent.cpp: (WebCore::InspectorInputAgent::dispatchMouseEvent): * inspector/InspectorInputAgent.h: (InspectorInputAgent): * inspector/InspectorInstrumentation.cpp: (WebCore): (WebCore::InspectorInstrumentation::frameStartedLoadingImpl): (WebCore::InspectorInstrumentation::frameStoppedLoadingImpl): (WebCore::InspectorInstrumentation::frameScheduledNavigationImpl): (WebCore::InspectorInstrumentation::frameClearedScheduledNavigationImpl): * inspector/InspectorInstrumentation.h: (InspectorInstrumentation): (WebCore::InspectorInstrumentation::frameStartedLoading): (WebCore): (WebCore::InspectorInstrumentation::frameStoppedLoading): (WebCore::InspectorInstrumentation::frameScheduledNavigation): (WebCore::InspectorInstrumentation::frameClearedScheduledNavigation): * inspector/InspectorPageAgent.cpp: (WebCore::InspectorPageAgent::frameStartedLoading): (WebCore): (WebCore::InspectorPageAgent::frameStoppedLoading): (WebCore::InspectorPageAgent::frameScheduledNavigation): (WebCore::InspectorPageAgent::frameClearedScheduledNavigation): * inspector/InspectorPageAgent.h: * inspector/front-end/ResourceTreeModel.js: (WebInspector.PageDispatcher.prototype.frameDetached): (WebInspector.PageDispatcher.prototype.frameStartedLoading): (WebInspector.PageDispatcher.prototype.frameStoppedLoading): (WebInspector.PageDispatcher.prototype.frameScheduledNavigation): (WebInspector.PageDispatcher.prototype.frameClearedScheduledNavigation): * loader/NavigationScheduler.cpp: (WebCore::NavigationScheduler::clear): (WebCore::NavigationScheduler::timerFired): (WebCore::NavigationScheduler::startTimer): (WebCore::NavigationScheduler::cancel): * loader/ProgressTracker.cpp: (WebCore::ProgressTracker::progressStarted): (WebCore::ProgressTracker::finalProgressComplete): LayoutTests: * inspector-protocol/page/frameScheduledNavigation-expected.txt: Added. * inspector-protocol/page/frameScheduledNavigation.html: Added. * inspector-protocol/page/frameStartedLoading-expected.txt: Added. * inspector-protocol/page/frameStartedLoading.html: Added. * platform/chromium/TestExpectations: Canonical link: https://commits.webkit.org/125980@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140649 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2013-01-24 05:42:33 +00:00
}
</script>
</head>
<body onload="runTest()">
</body>
</html>