Title: [223164] trunk/Source/WebInspectorUI
Revision
223164
Author
bb...@apple.com
Date
2017-10-10 20:16:39 -0700 (Tue, 10 Oct 2017)

Log Message

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.

Modified Paths

Diff

Modified: trunk/Source/WebInspectorUI/ChangeLog (223163 => 223164)


--- trunk/Source/WebInspectorUI/ChangeLog	2017-10-11 02:57:12 UTC (rev 223163)
+++ trunk/Source/WebInspectorUI/ChangeLog	2017-10-11 03:16:39 UTC (rev 223164)
@@ -1,3 +1,16 @@
+2017-10-10  Brian Burg  <bb...@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  <pecor...@apple.com>
 
         Web Inspector: Network Tab - Set column initial widths to try allow waterfall column to expand more by default

Modified: trunk/Source/WebInspectorUI/UserInterface/Views/OpenResourceDialog.js (223163 => 223164)


--- trunk/Source/WebInspectorUI/UserInterface/Views/OpenResourceDialog.js	2017-10-11 02:57:12 UTC (rev 223163)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/OpenResourceDialog.js	2017-10-11 03:16:39 UTC (rev 223164)
@@ -265,6 +265,12 @@
         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;
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to