Web Inspector: Quick Open: source mapped files are not shown as search results
authorbburg@apple.com <bburg@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 11 Oct 2017 03:16:39 +0000 (03:16 +0000)
committerbburg@apple.com <bburg@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 11 Oct 2017 03:16:39 +0000 (03:16 +0000)
https://bugs.webkit.org/show_bug.cgi?id=178151
<rdar://problem/31561718>

Reviewed by Joseph Pecoraro.

* UserInterface/Views/OpenResourceDialog.js:
(WI.OpenResourceDialog.prototype._addResource):
Also consider matching the query string against SourceMapResources
attached to a resource's source maps.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@223164 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebInspectorUI/ChangeLog
Source/WebInspectorUI/UserInterface/Views/OpenResourceDialog.js

index d66e94b..b7ead9e 100644 (file)
@@ -1,3 +1,16 @@
+2017-10-10  Brian Burg  <bburg@apple.com>
+
+        Web Inspector: Quick Open: source mapped files are not shown as search results
+        https://bugs.webkit.org/show_bug.cgi?id=178151
+        <rdar://problem/31561718>
+
+        Reviewed by Joseph Pecoraro.
+
+        * UserInterface/Views/OpenResourceDialog.js:
+        (WI.OpenResourceDialog.prototype._addResource):
+        Also consider matching the query string against SourceMapResources
+        attached to a resource's source maps.
+
 2017-10-10  Joseph Pecoraro  <pecoraro@apple.com>
 
         Web Inspector: Network Tab - Set column initial widths to try allow waterfall column to expand more by default
index 98d7068..e7aaed0 100644 (file)
@@ -265,6 +265,12 @@ WI.OpenResourceDialog = class OpenResourceDialog extends WI.Dialog
         if (!this.representedObjectIsValid(resource))
             return;
 
+        // Recurse on source maps if any exist.
+        for (let sourceMap of resource.sourceMaps) {
+            for (let sourceMapResource of sourceMap.resources)
+                this._addResource(sourceMapResource, suppressFilterUpdate);
+        }
+
         this._queryController.addResource(resource);
         if (suppressFilterUpdate)
             return;