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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sdk/ResourceTreeModel.js

Issue 2939503002: [DevTools] Clear console on GlobalObjectCleared (Closed)
Patch Set: Created 3 years, 6 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 | « third_party/WebKit/Source/devtools/front_end/console_model/ConsoleModel.js ('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/devtools/front_end/sdk/ResourceTreeModel.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/ResourceTreeModel.js b/third_party/WebKit/Source/devtools/front_end/sdk/ResourceTreeModel.js
index 5e0b1f65b2355d522e464a93b74abe197a30e11d..a7a6b816556c7549951b0b629b9b52ea392dee38 100644
--- a/third_party/WebKit/Source/devtools/front_end/sdk/ResourceTreeModel.js
+++ b/third_party/WebKit/Source/devtools/front_end/sdk/ResourceTreeModel.js
@@ -230,19 +230,6 @@ SDK.ResourceTreeModel = class extends SDK.SDKModel {
this._updateSecurityOrigins();
}
- /**
- * @param {!Protocol.Page.FrameId} frameId
- */
- _frameStartedLoading(frameId) {
- // Do nothing unless cached resource tree is processed - it will overwrite everything.
- if (!this._cachedResourcesProcessed)
- return;
-
- var frame = this._frames.get(frameId);
- if (!frame || frame.isMainFrame())
- this.dispatchEventToListeners(SDK.ResourceTreeModel.Events.MainFrameStartedLoading);
- }
-
/**
* @param {!Common.Event} event
*/
@@ -491,7 +478,6 @@ SDK.ResourceTreeModel.Events = {
FrameResized: Symbol('FrameResized'),
FrameWillNavigate: Symbol('FrameWillNavigate'),
MainFrameNavigated: Symbol('MainFrameNavigated'),
- MainFrameStartedLoading: Symbol('MainFrameStartedLoading'),
ResourceAdded: Symbol('ResourceAdded'),
WillLoadCachedResources: Symbol('WillLoadCachedResources'),
CachedResourcesLoaded: Symbol('CachedResourcesLoaded'),
@@ -813,7 +799,6 @@ SDK.PageDispatcher = class {
* @param {!Protocol.Page.FrameId} frameId
*/
frameStartedLoading(frameId) {
- this._resourceTreeModel._frameStartedLoading(frameId);
}
/**
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/console_model/ConsoleModel.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698