Title: [235226] trunk/Source/WebInspectorUI
Revision
235226
Author
[email protected]
Date
2018-08-23 09:37:02 -0700 (Thu, 23 Aug 2018)

Log Message

JSContext Inspector: Scripts not showing up in Resources tab
https://bugs.webkit.org/show_bug.cgi?id=188814
<rdar://problem/43576117>

Patch by Joseph Pecoraro <[email protected]> on 2018-08-23
Reviewed by Brian Burg.

* UserInterface/Views/ResourceSidebarPanel.js:
(WI.ResourceSidebarPanel.prototype._addScript):
This path shouldn't apply to JSContext inspection which will
never have a pageTarget and but doesn't have a mainResource.

Modified Paths

Diff

Modified: trunk/Source/WebInspectorUI/ChangeLog (235225 => 235226)


--- trunk/Source/WebInspectorUI/ChangeLog	2018-08-23 15:51:14 UTC (rev 235225)
+++ trunk/Source/WebInspectorUI/ChangeLog	2018-08-23 16:37:02 UTC (rev 235226)
@@ -1,3 +1,16 @@
+2018-08-23  Joseph Pecoraro  <[email protected]>
+
+        JSContext Inspector: Scripts not showing up in Resources tab
+        https://bugs.webkit.org/show_bug.cgi?id=188814
+        <rdar://problem/43576117>
+
+        Reviewed by Brian Burg.
+
+        * UserInterface/Views/ResourceSidebarPanel.js:
+        (WI.ResourceSidebarPanel.prototype._addScript):
+        This path shouldn't apply to JSContext inspection which will
+        never have a pageTarget and but doesn't have a mainResource.
+
 2018-08-22  Devin Rousso  <[email protected]>
 
         Web Inspector: cannot delete multiple event breakpoints by repeatedly hitting delete

Modified: trunk/Source/WebInspectorUI/UserInterface/Views/ResourceSidebarPanel.js (235225 => 235226)


--- trunk/Source/WebInspectorUI/UserInterface/Views/ResourceSidebarPanel.js	2018-08-23 15:51:14 UTC (rev 235225)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/ResourceSidebarPanel.js	2018-08-23 16:37:02 UTC (rev 235226)
@@ -311,11 +311,13 @@
             return;
 
         // Target main resource.
-        if (script.target !== WI.pageTarget) {
-            if (script.isMainResource())
-                this._addTargetWithMainResource(script.target);
-            this.contentTreeOutline.disclosureButtons = true;
-            return;
+        if (WI.sharedApp.debuggableType !== WI.DebuggableType._javascript_) {
+            if (script.target !== WI.pageTarget) {
+                if (script.isMainResource())
+                    this._addTargetWithMainResource(script.target);
+                this.contentTreeOutline.disclosureButtons = true;
+                return;
+            }            
         }
 
         // If the script URL matches a resource we can assume it is part of that resource and does not need added.
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to