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

Issue 2692923013: DevTools: do not search in anonymous scripts unless specifically asked for. (Closed)

Created:
3 years, 10 months ago by lushnikov
Modified:
3 years, 10 months ago
Reviewers:
dgozman, pfeldman
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: do not search in anonymous scripts unless specifically asked for. Today, the "search across all files" searches not only all sources of the website, but also all ever-evaluated scripts. This helps in certain kind of investigations, e.g. to find anonymously-evaluated script which did some page modifications. Most of the time, however, the "search across all files" is used to search across the resources of the application. In this case, searching across all scripts might become slow, especially since certain websites generate a lot of scripts via eval(). This patch removes old "search in content scripts" setting and adds a new one: "Search in dynamic scripts and extensions". With this setting on, the "Search across all files" will search in both content scripts and dynamically-added anonymous scripts. Otherwise, only named resources will be searched. BUG=680205 R=pfeldman, dgozman Review-Url: https://codereview.chromium.org/2692923013 Cr-Commit-Position: refs/heads/master@{#452253} Committed: https://chromium.googlesource.com/chromium/src/+/ceabef6794ee9885b0a3f52f5c948a8bee079a2c

Patch Set 1 #

Total comments: 6

Patch Set 2 : address comments #

Messages

Total messages: 16 (8 generated)
lushnikov
please, take a look
3 years, 10 months ago (2017-02-18 00:44:22 UTC) #1
dgozman
Should we expose this in search view instead? For example, "search everywhere" button/checkbox with explanation ...
3 years, 10 months ago (2017-02-18 20:37:59 UTC) #6
lushnikov
Exposing this setting in the UI will surely bring more visibility, though I'm not sure ...
3 years, 10 months ago (2017-02-18 20:57:59 UTC) #7
lushnikov
(bumping this per @dgozman's request)
3 years, 10 months ago (2017-02-22 02:45:56 UTC) #8
dgozman
lgtm https://codereview.chromium.org/2692923013/diff/1/third_party/WebKit/Source/devtools/front_end/sources/SourcesSearchScope.js File third_party/WebKit/Source/devtools/front_end/sources/SourcesSearchScope.js (right): https://codereview.chromium.org/2692923013/diff/1/third_party/WebKit/Source/devtools/front_end/sources/SourcesSearchScope.js#newcode80 third_party/WebKit/Source/devtools/front_end/sources/SourcesSearchScope.js:80: .filter(project => project.type() !== Workspace.projectTypes.Service) I personally don't ...
3 years, 10 months ago (2017-02-22 20:17:06 UTC) #9
lushnikov
https://codereview.chromium.org/2692923013/diff/1/third_party/WebKit/Source/devtools/front_end/sources/SourcesSearchScope.js File third_party/WebKit/Source/devtools/front_end/sources/SourcesSearchScope.js (right): https://codereview.chromium.org/2692923013/diff/1/third_party/WebKit/Source/devtools/front_end/sources/SourcesSearchScope.js#newcode80 third_party/WebKit/Source/devtools/front_end/sources/SourcesSearchScope.js:80: .filter(project => project.type() !== Workspace.projectTypes.Service) On 2017/02/22 20:17:06, dgozman ...
3 years, 10 months ago (2017-02-22 21:22:37 UTC) #10
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/2692923013/20001
3 years, 10 months ago (2017-02-22 21:23:29 UTC) #13
commit-bot: I haz the power
3 years, 10 months ago (2017-02-22 22:57:48 UTC) #16
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/ceabef6794ee9885b0a3f52f5c94...

Powered by Google App Engine
This is Rietveld 408576698