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

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: changes Created 3 years, 7 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 659c86b853a5c31bf84f5fd32498d35bee5923f3..2f77542a402c4abc44f9a1a190ae120313129282 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