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

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

Issue 2250473002: DevTools: Repick execution context when frames are loaded (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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/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 16ae06915694389bb3173a5bac61c8ebde1acfb5..7407dc7f3f7376be09c2187403bb67f68cd5b443 100644
--- a/third_party/WebKit/Source/devtools/front_end/sdk/ResourceTreeModel.js
+++ b/third_party/WebKit/Source/devtools/front_end/sdk/ResourceTreeModel.js
@@ -55,6 +55,7 @@ WebInspector.ResourceTreeModel = function(target, networkManager, securityOrigin
this._pendingReloadOptions = null;
this._reloadSuspensionCount = 0;
+ this._resortExecutionContexts = target.runtimeModel.resortExecutionContexts.bind(target.runtimeModel);
target.runtimeModel.setExecutionContextComparator(this._executionContextComparator.bind(this));
}
@@ -132,6 +133,7 @@ WebInspector.ResourceTreeModel.prototype = {
this.target().setInspectedURL(mainFramePayload.frame.url);
}
this._cachedResourcesProcessed = true;
+ this._resortExecutionContexts();
this.dispatchEventToListeners(WebInspector.ResourceTreeModel.EventTypes.CachedResourcesLoaded);
},

Powered by Google App Engine
This is Rietveld 408576698