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

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

Issue 2523633003: [Devtools] Prepare network log view for grouping support (Closed)
Patch Set: fixed request === null and possible filter out issue Created 4 years 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 ebf5b7a00da2f0f5e577d87cf1260f2e95df8e19..34631b4d55ecf3d3efe2c25c71c11d7dc0ccd97e 100644
--- a/third_party/WebKit/Source/devtools/front_end/network/NetworkDataGridNode.js
+++ b/third_party/WebKit/Source/devtools/front_end/network/NetworkDataGridNode.js
@@ -266,9 +266,22 @@ Network.NetworkDataGridNode = class extends UI.SortableDataGridNode {
}
/**
+ * @return {!Array<!SDK.NetworkRequest>}
+ */
+ requests() {
+ var requests = [this._request];
+ for (var node of this.flattenChildren(true)) {
+ var request = node.request();
+ if (request)
+ requests.push(request);
+ }
+ return requests;
+ }
+
+ /**
* @return {boolean}
*/
- isNavigationRequest() {
+ hasNavigationRequest() {
return this._isNavigationRequest;
}

Powered by Google App Engine
This is Rietveld 408576698