Skip to content

Commit

Permalink
DevTools: [Search] do not search inside binary files.
Browse files Browse the repository at this point in the history
This patch skips binary UISourceCodes so that we don't search in them.

BUG=585383
R=dgozman

Review-Url: https://codereview.chromium.org/2564733002
Cr-Commit-Position: refs/heads/master@{#437467}
  • Loading branch information
aslushnikov authored and Commit bot committed Dec 9, 2016
1 parent e3304e3 commit 11a0cd3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions front_end/sources/SourcesSearchScope.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@ Sources.SourcesSearchScope = class {
var uiSourceCodes = project.uiSourceCodes();
for (var i = 0; i < uiSourceCodes.length; ++i) {
var uiSourceCode = uiSourceCodes[i];
if (!uiSourceCode.contentType().isTextType())
continue;
var binding = Persistence.persistence.binding(uiSourceCode);
if (binding && binding.network === uiSourceCode)
continue;
Expand Down

0 comments on commit 11a0cd3

Please sign in to comment.