Title: [190246] trunk/Source/WebInspectorUI
- Revision
- 190246
- Author
- [email protected]
- Date
- 2015-09-25 10:51:28 -0700 (Fri, 25 Sep 2015)
Log Message
Web Inspector: Reloading the page causes the inspector tab to switch back to "Resources" tab
https://bugs.webkit.org/show_bug.cgi?id=148732
Patch by Joseph Pecoraro <[email protected]> on 2015-09-25
Reviewed by Darin Adler.
* UserInterface/Views/ResourceSidebarPanel.js:
(WebInspector.ResourceSidebarPanel.prototype._scriptsCleared):
Suppress selection of sibiling tree elements when removing extra folders.
Modified Paths
Diff
Modified: trunk/Source/WebInspectorUI/ChangeLog (190245 => 190246)
--- trunk/Source/WebInspectorUI/ChangeLog 2015-09-25 17:48:12 UTC (rev 190245)
+++ trunk/Source/WebInspectorUI/ChangeLog 2015-09-25 17:51:28 UTC (rev 190246)
@@ -1,3 +1,14 @@
+2015-09-25 Joseph Pecoraro <[email protected]>
+
+ Web Inspector: Reloading the page causes the inspector tab to switch back to "Resources" tab
+ https://bugs.webkit.org/show_bug.cgi?id=148732
+
+ Reviewed by Darin Adler.
+
+ * UserInterface/Views/ResourceSidebarPanel.js:
+ (WebInspector.ResourceSidebarPanel.prototype._scriptsCleared):
+ Suppress selection of sibiling tree elements when removing extra folders.
+
2015-09-24 Ryosuke Niwa <[email protected]>
Ran sort-Xcode-project-file.
Modified: trunk/Source/WebInspectorUI/UserInterface/Views/ResourceSidebarPanel.js (190245 => 190246)
--- trunk/Source/WebInspectorUI/UserInterface/Views/ResourceSidebarPanel.js 2015-09-25 17:48:12 UTC (rev 190245)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/ResourceSidebarPanel.js 2015-09-25 17:51:28 UTC (rev 190246)
@@ -311,21 +311,24 @@
_scriptsCleared(event)
{
+ const suppressOnDeselect = true;
+ const suppressSelectSibling = true;
+
if (this._extensionScriptsFolderTreeElement) {
if (this._extensionScriptsFolderTreeElement.parent)
- this._extensionScriptsFolderTreeElement.parent.removeChild(this._extensionScriptsFolderTreeElement);
+ this._extensionScriptsFolderTreeElement.parent.removeChild(this._extensionScriptsFolderTreeElement, suppressOnDeselect, suppressSelectSibling);
this._extensionScriptsFolderTreeElement = null;
}
if (this._extraScriptsFolderTreeElement) {
if (this._extraScriptsFolderTreeElement.parent)
- this._extraScriptsFolderTreeElement.parent.removeChild(this._extraScriptsFolderTreeElement);
+ this._extraScriptsFolderTreeElement.parent.removeChild(this._extraScriptsFolderTreeElement, suppressOnDeselect, suppressSelectSibling);
this._extraScriptsFolderTreeElement = null;
}
if (this._anonymousScriptsFolderTreeElement) {
if (this._anonymousScriptsFolderTreeElement.parent)
- this._anonymousScriptsFolderTreeElement.parent.removeChild(this._anonymousScriptsFolderTreeElement);
+ this._anonymousScriptsFolderTreeElement.parent.removeChild(this._anonymousScriptsFolderTreeElement, suppressOnDeselect, suppressSelectSibling);
this._anonymousScriptsFolderTreeElement = null;
}
}
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes