Changeset 235226 in webkit


Ignore:
Timestamp:
Aug 23, 2018, 9:37:02 AM (7 years ago)
Author:
commit-queue@webkit.org
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 <Joseph Pecoraro> 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.

Location:
trunk/Source/WebInspectorUI
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r235183 r235226  
     12018-08-23  Joseph Pecoraro  <pecoraro@apple.com>
     2
     3        JSContext Inspector: Scripts not showing up in Resources tab
     4        https://bugs.webkit.org/show_bug.cgi?id=188814
     5        <rdar://problem/43576117>
     6
     7        Reviewed by Brian Burg.
     8
     9        * UserInterface/Views/ResourceSidebarPanel.js:
     10        (WI.ResourceSidebarPanel.prototype._addScript):
     11        This path shouldn't apply to JSContext inspection which will
     12        never have a pageTarget and but doesn't have a mainResource.
     13
    1142018-08-22  Devin Rousso  <drousso@apple.com>
    215
  • trunk/Source/WebInspectorUI/UserInterface/Views/ResourceSidebarPanel.js

    r233686 r235226  
    312312
    313313        // Target main resource.
    314         if (script.target !== WI.pageTarget) {
    315             if (script.isMainResource())
    316                 this._addTargetWithMainResource(script.target);
    317             this.contentTreeOutline.disclosureButtons = true;
    318             return;
     314        if (WI.sharedApp.debuggableType !== WI.DebuggableType.JavaScript) {
     315            if (script.target !== WI.pageTarget) {
     316                if (script.isMainResource())
     317                    this._addTargetWithMainResource(script.target);
     318                this.contentTreeOutline.disclosureButtons = true;
     319                return;
     320            }           
    319321        }
    320322
Note: See TracChangeset for help on using the changeset viewer.