Changeset 190246 in webkit


Ignore:
Timestamp:
Sep 25, 2015 10:51:28 AM (9 years ago)
Author:
commit-queue@webkit.org
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 <Joseph Pecoraro> 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.

Location:
trunk/Source/WebInspectorUI
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r190201 r190246  
     12015-09-25  Joseph Pecoraro  <pecoraro@apple.com>
     2
     3        Web Inspector: Reloading the page causes the inspector tab to switch back to "Resources" tab
     4        https://bugs.webkit.org/show_bug.cgi?id=148732
     5
     6        Reviewed by Darin Adler.
     7
     8        * UserInterface/Views/ResourceSidebarPanel.js:
     9        (WebInspector.ResourceSidebarPanel.prototype._scriptsCleared):
     10        Suppress selection of sibiling tree elements when removing extra folders.
     11
    1122015-09-24  Ryosuke Niwa  <rniwa@webkit.org>
    213
  • trunk/Source/WebInspectorUI/UserInterface/Views/ResourceSidebarPanel.js

    r185485 r190246  
    312312    _scriptsCleared(event)
    313313    {
     314        const suppressOnDeselect = true;
     315        const suppressSelectSibling = true;
     316       
    314317        if (this._extensionScriptsFolderTreeElement) {
    315318            if (this._extensionScriptsFolderTreeElement.parent)
    316                 this._extensionScriptsFolderTreeElement.parent.removeChild(this._extensionScriptsFolderTreeElement);
     319                this._extensionScriptsFolderTreeElement.parent.removeChild(this._extensionScriptsFolderTreeElement, suppressOnDeselect, suppressSelectSibling);
    317320            this._extensionScriptsFolderTreeElement = null;
    318321        }
     
    320323        if (this._extraScriptsFolderTreeElement) {
    321324            if (this._extraScriptsFolderTreeElement.parent)
    322                 this._extraScriptsFolderTreeElement.parent.removeChild(this._extraScriptsFolderTreeElement);
     325                this._extraScriptsFolderTreeElement.parent.removeChild(this._extraScriptsFolderTreeElement, suppressOnDeselect, suppressSelectSibling);
    323326            this._extraScriptsFolderTreeElement = null;
    324327        }
     
    326329        if (this._anonymousScriptsFolderTreeElement) {
    327330            if (this._anonymousScriptsFolderTreeElement.parent)
    328                 this._anonymousScriptsFolderTreeElement.parent.removeChild(this._anonymousScriptsFolderTreeElement);
     331                this._anonymousScriptsFolderTreeElement.parent.removeChild(this._anonymousScriptsFolderTreeElement, suppressOnDeselect, suppressSelectSibling);
    329332            this._anonymousScriptsFolderTreeElement = null;
    330333        }
Note: See TracChangeset for help on using the changeset viewer.