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

Issue 2180743002: [Devtools] Fixed regex filtering in the Network panel for Negative lookaheads (Closed)

Created:
4 years, 5 months ago by gjpyzer
Modified:
4 years, 4 months ago
Reviewers:
lushnikov, allada
CC:
apavlov+blink_chromium.org, blink-reviews, caseq+blink_chromium.org, chromium-reviews, devtools-reviews_chromium.org, kozyatinskiy+blink_chromium.org, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, pfeldman, sergeyv+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Devtools] Fixed regex filtering in the Network panel for Negative lookaheads Fixed regex filtering in the Network panel as ORing two regex tests breaks in some situatons, such as negative lookaheads. For example, if you are to filter out "foo", and you have the request Name property as "bob.js" and the Path as "/path/foo", then the regex is true for Name and false for Path. This results in: true || false === true. It would only filter out if both contained "foo" in them. We now concatenate the Path and Name together, with a "/" to join. This is also more intuitive, as it will allow first character matching on Path. BUG=630852 Committed: https://crrev.com/c002b266f83798e8c652a641f74b381f7fb82171 Cr-Commit-Position: refs/heads/master@{#411252}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Remove redundant brackets and avoided variable use for test function #

Total comments: 1

Patch Set 3 : Fixed function name to reflect functional changes #

Total comments: 1

Patch Set 4 : Made function name shorter #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -4 lines) Patch
M AUTHORS View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/network/NetworkLogView.js View 1 2 3 3 chunks +7 lines, -4 lines 0 comments Download

Messages

Total messages: 31 (11 generated)
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2180743002/1
4 years, 5 months ago (2016-07-23 18:36:39 UTC) #3
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. CQ run can only be started by full ...
4 years, 5 months ago (2016-07-23 18:36:41 UTC) #5
gjpyzer
4 years, 5 months ago (2016-07-23 18:36:43 UTC) #6
gjpyzer
4 years, 5 months ago (2016-07-23 18:40:55 UTC) #7
allada
Thanks very much, it looks good, just a few things. https://codereview.chromium.org/2180743002/diff/1/third_party/WebKit/Source/devtools/front_end/network/NetworkLogView.js File third_party/WebKit/Source/devtools/front_end/network/NetworkLogView.js (right): https://codereview.chromium.org/2180743002/diff/1/third_party/WebKit/Source/devtools/front_end/network/NetworkLogView.js#newcode999 ...
4 years, 4 months ago (2016-08-08 17:54:01 UTC) #10
allada
I will write a test for this and commit it after yours is published. (per: ...
4 years, 4 months ago (2016-08-08 18:00:34 UTC) #12
gjpyzer
On 2016/08/08 at 18:00:34, allada wrote: > I will write a test for this and ...
4 years, 4 months ago (2016-08-08 18:07:12 UTC) #13
gjpyzer
On 2016/08/08 at 18:07:12, gjpyzer wrote: > On 2016/08/08 at 18:00:34, allada wrote: > > ...
4 years, 4 months ago (2016-08-08 19:19:09 UTC) #14
allada
lgtm bringing lushnikov@ for final review.
4 years, 4 months ago (2016-08-08 20:53:16 UTC) #15
lushnikov
let's add a test https://codereview.chromium.org/2180743002/diff/20001/third_party/WebKit/Source/devtools/front_end/network/NetworkLogView.js File third_party/WebKit/Source/devtools/front_end/network/NetworkLogView.js (right): https://codereview.chromium.org/2180743002/diff/20001/third_party/WebKit/Source/devtools/front_end/network/NetworkLogView.js#newcode1478 third_party/WebKit/Source/devtools/front_end/network/NetworkLogView.js:1478: WebInspector.NetworkLogView._requestNameOrPathFilter = function(regex, request) _requestPathFilter ...
4 years, 4 months ago (2016-08-08 21:07:58 UTC) #16
lushnikov
as per offline discussion, Blaise is going to write a test for this in a ...
4 years, 4 months ago (2016-08-08 21:16:29 UTC) #17
gjpyzer
On 2016/08/08 at 21:16:29, lushnikov wrote: > as per offline discussion, Blaise is going to ...
4 years, 4 months ago (2016-08-08 22:48:39 UTC) #18
lushnikov
https://codereview.chromium.org/2180743002/diff/40001/third_party/WebKit/Source/devtools/front_end/network/NetworkLogView.js File third_party/WebKit/Source/devtools/front_end/network/NetworkLogView.js (right): https://codereview.chromium.org/2180743002/diff/40001/third_party/WebKit/Source/devtools/front_end/network/NetworkLogView.js#newcode1478 third_party/WebKit/Source/devtools/front_end/network/NetworkLogView.js:1478: WebInspector.NetworkLogView._requestNameAndPathFilter = function(regex, request) Can we name it _requestPathFilter? ...
4 years, 4 months ago (2016-08-08 23:13:20 UTC) #19
gjpyzer
On 2016/08/08 at 23:13:20, lushnikov wrote: > https://codereview.chromium.org/2180743002/diff/40001/third_party/WebKit/Source/devtools/front_end/network/NetworkLogView.js > File third_party/WebKit/Source/devtools/front_end/network/NetworkLogView.js (right): > > https://codereview.chromium.org/2180743002/diff/40001/third_party/WebKit/Source/devtools/front_end/network/NetworkLogView.js#newcode1478 ...
4 years, 4 months ago (2016-08-08 23:20:01 UTC) #20
lushnikov
thank you, lgtm
4 years, 4 months ago (2016-08-08 23:31:05 UTC) #21
allada
Just as an FYI you need to click "commit" checkbox in order for the changes ...
4 years, 4 months ago (2016-08-10 22:14:06 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2180743002/60001
4 years, 4 months ago (2016-08-10 22:17:33 UTC) #25
gjpyzer
On 2016/08/10 at 22:14:06, allada wrote: > Just as an FYI you need to click ...
4 years, 4 months ago (2016-08-10 22:18:17 UTC) #26
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 4 months ago (2016-08-11 03:35:16 UTC) #28
commit-bot: I haz the power
4 years, 4 months ago (2016-08-11 03:38:10 UTC) #30
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/c002b266f83798e8c652a641f74b381f7fb82171
Cr-Commit-Position: refs/heads/master@{#411252}

Powered by Google App Engine
This is Rietveld 408576698