Bug 202020 - Web Inspector: searching in overrides doesn't work
Summary: Web Inspector: searching in overrides doesn't work
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: Safari Technology Preview
Hardware: All All
: P2 Normal
Assignee: Joseph Pecoraro
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2019-09-19 19:20 PDT by Konrad Dzwinel
Modified: 2019-09-19 20:37 PDT (History)
5 users (show)

See Also:


Attachments
no results for searching for 'Duck' within a document containing 'Duck' string (417.71 KB, image/png)
2019-09-19 19:20 PDT, Konrad Dzwinel
no flags Details
[PATCH] Proposed Fix (1.51 KB, patch)
2019-09-19 19:38 PDT, Joseph Pecoraro
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Konrad Dzwinel 2019-09-19 19:20:24 PDT
Created attachment 379187 [details]
no results for searching for 'Duck' within a document containing 'Duck' string

Steps to reproduce:
1. Open Web Inspector
2. Make sure that 'sources tab' is enabled in experiments
3. Use local overrides to override any text file (e.g. html) 
4. Open that file in 'Sources > Local Overrides'
5. Try searching with cmd+f for a string that exists within that text

Expected result:
Searched string is highlighted in text.

Actual result:
No search results are found.
Comment 1 Joseph Pecoraro 2019-09-19 19:38:44 PDT
Created attachment 379194 [details]
[PATCH] Proposed Fix
Comment 2 Devin Rousso 2019-09-19 19:43:45 PDT
Comment on attachment 379194 [details]
[PATCH] Proposed Fix

View in context: https://bugs.webkit.org/attachment.cgi?id=379194&action=review

r=me

> Source/WebInspectorUI/UserInterface/Views/SourceCodeTextEditor.js:253
> +        if (this._sourceCode instanceof WI.LocalResource)

This is better than `isLocalResourceOverride` right?  Since it covers other local resources loaded via things like HAR as well, right?
Comment 3 Joseph Pecoraro 2019-09-19 19:51:18 PDT
(In reply to Devin Rousso from comment #2)
> Comment on attachment 379194 [details]
> [PATCH] Proposed Fix
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=379194&action=review
> 
> r=me
> 
> > Source/WebInspectorUI/UserInterface/Views/SourceCodeTextEditor.js:253
> > +        if (this._sourceCode instanceof WI.LocalResource)
> 
> This is better than `isLocalResourceOverride` right?  Since it covers other
> local resources loaded via things like HAR as well, right?

Correct
Comment 4 WebKit Commit Bot 2019-09-19 20:36:22 PDT
Comment on attachment 379194 [details]
[PATCH] Proposed Fix

Clearing flags on attachment: 379194

Committed r250118: <https://trac.webkit.org/changeset/250118>
Comment 5 WebKit Commit Bot 2019-09-19 20:36:24 PDT
All reviewed patches have been landed.  Closing bug.
Comment 6 Radar WebKit Bug Importer 2019-09-19 20:37:18 PDT
<rdar://problem/55546309>