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

Issue 2660853002: DevTools: fix search across all files in case of "file:" prefix (Closed)

Created:
3 years, 10 months ago by lushnikov
Modified:
3 years, 10 months ago
Reviewers:
dgozman
CC:
chromium-reviews, caseq+blink_chromium.org, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, apavlov+blink_chromium.org, devtools-reviews_chromium.org, blink-reviews, pfeldman, kozyatinskiy+blink_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

DevTools: fix search across all files in case of "file:" prefix Search across files supports narrowing of the search scope with the "file:" pattern. For example: [1] file:front_end QUERY [2] QUERY file:front_end The bug happens only in the [1] case, when the query is prefixed with "file:" pattern. In this case, we currently consider the query to be " foobar" instead of "foobar" (e.g. containing excessive space in front). This patch swallows all the whitespaces around the "file:" pattern so that they are not included in the actual search queries. BUG=686359 R=dgozman Review-Url: https://codereview.chromium.org/2660853002 Cr-Commit-Position: refs/heads/master@{#447196} Committed: https://chromium.googlesource.com/chromium/src/+/0dee95e08944e4ca548b5bf874d34a3695fc7a93

Patch Set 1 #

Total comments: 6

Patch Set 2 : use \s instead of space #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -12 lines) Patch
M third_party/WebKit/LayoutTests/inspector/sources/search-config.html View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/sources/search-config-expected.txt View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/workspace/SearchConfig.js View 1 3 chunks +15 lines, -12 lines 0 comments Download

Messages

Total messages: 13 (8 generated)
lushnikov
please, take a look https://codereview.chromium.org/2660853002/diff/1/third_party/WebKit/Source/devtools/front_end/workspace/SearchConfig.js File third_party/WebKit/Source/devtools/front_end/workspace/SearchConfig.js (right): https://codereview.chromium.org/2660853002/diff/1/third_party/WebKit/Source/devtools/front_end/workspace/SearchConfig.js#newcode62 third_party/WebKit/Source/devtools/front_end/workspace/SearchConfig.js:62: var quotedPattern = /"([^\\"]|\\.)+"/; these ...
3 years, 10 months ago (2017-01-30 10:03:42 UTC) #1
dgozman
lgtm https://codereview.chromium.org/2660853002/diff/1/third_party/WebKit/Source/devtools/front_end/workspace/SearchConfig.js File third_party/WebKit/Source/devtools/front_end/workspace/SearchConfig.js (right): https://codereview.chromium.org/2660853002/diff/1/third_party/WebKit/Source/devtools/front_end/workspace/SearchConfig.js#newcode65 third_party/WebKit/Source/devtools/front_end/workspace/SearchConfig.js:65: var unquotedPattern = unquotedWordPattern.source + '( +' + ...
3 years, 10 months ago (2017-01-30 16:54:43 UTC) #4
lushnikov
https://codereview.chromium.org/2660853002/diff/1/third_party/WebKit/Source/devtools/front_end/workspace/SearchConfig.js File third_party/WebKit/Source/devtools/front_end/workspace/SearchConfig.js (right): https://codereview.chromium.org/2660853002/diff/1/third_party/WebKit/Source/devtools/front_end/workspace/SearchConfig.js#newcode65 third_party/WebKit/Source/devtools/front_end/workspace/SearchConfig.js:65: var unquotedPattern = unquotedWordPattern.source + '( +' + unquotedWordPattern.source ...
3 years, 10 months ago (2017-01-31 02:47:21 UTC) #7
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/2660853002/20001
3 years, 10 months ago (2017-01-31 02:48:08 UTC) #10
commit-bot: I haz the power
3 years, 10 months ago (2017-01-31 05:48:27 UTC) #13
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/0dee95e08944e4ca548b5bf874d3...

Powered by Google App Engine
This is Rietveld 408576698