+2017-08-03 Joseph Pecoraro <pecoraro@apple.com>
+
+ JSContext Inspector: Scripts sometimes do not show in resources tab
+ https://bugs.webkit.org/show_bug.cgi?id=175153
+ <rdar://problem/33708683>
+
+ Reviewed by Matt Baker.
+
+ * UserInterface/Views/ResourceSidebarPanel.js:
+ (WI.ResourceSidebarPanel.prototype.initialLayout):
+ When the ResourceSidebar is lazily created, be sure to add any scripts
+ to the sidebar that are not backed by Resources.
+
+ (WI.ResourceSidebarPanel.prototype._scriptWasAdded):
+ (WI.ResourceSidebarPanel.prototype._addScript):
+ Extract so it can be used outside of an event handler.
+
2017-08-03 Devin Rousso <drousso@apple.com>
Web Inspector: add button to open Inspector^2
if (WI.frameResourceManager.mainFrame)
this._mainFrameMainResourceDidChange(WI.frameResourceManager.mainFrame);
+
+ for (let script of WI.debuggerManager.knownNonResourceScripts) {
+ this._addScript(script);
+
+ if (script.sourceMaps.length && WI.debuggableType === WI.DebuggableType.JavaScript)
+ this.contentTreeOutline.disclosureButtons = true;
+ }
}
hasCustomFilters()
_scriptWasAdded(event)
{
- var script = event.data.script;
+ this._addScript(event.data.script);
+ }
+ _addScript(script)
+ {
// We don't add scripts without URLs here. Those scripts can quickly clutter the interface and
// are usually more transient. They will get added if/when they need to be shown in a content view.
if (!script.url && !script.sourceURL)