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

Unified Diff: third_party/WebKit/Source/devtools/front_end/network/NetworkDataGridNode.js

Issue 2914033002: [Devtools] NetworkLogView now uses NetworkLog as source of truth. (Closed)
Patch Set: Merge branch 'master' into MOVE_NETWORK_STUFF_AROUND 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
Index: third_party/WebKit/Source/devtools/front_end/network/NetworkDataGridNode.js
diff --git a/third_party/WebKit/Source/devtools/front_end/network/NetworkDataGridNode.js b/third_party/WebKit/Source/devtools/front_end/network/NetworkDataGridNode.js
index b2c8e893b90c9c230474023c36f223ecaf6e84d9..7ed8b30423be3b80b3a89766b9c64061e4ec162d 100644
--- a/third_party/WebKit/Source/devtools/front_end/network/NetworkDataGridNode.js
+++ b/third_party/WebKit/Source/devtools/front_end/network/NetworkDataGridNode.js
@@ -681,13 +681,8 @@ Network.NetworkRequestNode = class extends Network.NetworkNode {
* @return {boolean}
*/
isNavigationRequest() {
- return this._isNavigationRequest;
- }
-
- markAsNavigationRequest() {
- this._isNavigationRequest = true;
- this.refresh();
- this._updateBackgroundColor();
+ var pageLoad = NetworkLog.networkLog.pageLoadForRequest(this._request);
+ return pageLoad ? pageLoad.mainRequest === this._request : false;
}
/**

Powered by Google App Engine
This is Rietveld 408576698