Changeset 235242 in webkit


Ignore:
Timestamp:
Aug 23, 2018, 1:20:15 PM (7 years ago)
Author:
Devin Rousso
Message:

Web Inspector: console.inspect(sessionStorage) first time does not show Session Storage content view if Storage tab was previously unvisited
https://bugs.webkit.org/show_bug.cgi?id=188801

Reviewed by Matt Baker.

  • UserInterface/Base/Main.js:

(WI.tabContentViewClassForRepresentedObject):
(WI._storageWasInspected):
Since the WI.StorageSidebarPanel is not created until the WI.StorageTabContentView is
created, the WI.StorageManager.Event.DOMStorageObjectWasInspected and
WI.StorageManager.Event.DatabaseWasInspected events do not reach the sidebar. We should
follow what WI._domNodeWasInspected does and additionally call WI.showRepresentedObject
on the inspected object.

Location:
trunk/Source/WebInspectorUI
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r235240 r235242  
     12018-08-23  Devin Rousso  <drousso@apple.com>
     2
     3        Web Inspector: `console.inspect(sessionStorage)` first time does not show Session Storage content view if Storage tab was previously unvisited
     4        https://bugs.webkit.org/show_bug.cgi?id=188801
     5
     6        Reviewed by Matt Baker.
     7
     8        * UserInterface/Base/Main.js:
     9        (WI.tabContentViewClassForRepresentedObject):
     10        (WI._storageWasInspected):
     11        Since the `WI.StorageSidebarPanel` is not created until the `WI.StorageTabContentView` is
     12        created, the `WI.StorageManager.Event.DOMStorageObjectWasInspected` and
     13        `WI.StorageManager.Event.DatabaseWasInspected` events do not reach the sidebar. We should
     14        follow what `WI._domNodeWasInspected` does and additionally call `WI.showRepresentedObject`
     15        on the inspected object.
     16
    1172018-08-23  Devin Rousso  <drousso@apple.com>
    218
  • trunk/Source/WebInspectorUI/UserInterface/Base/Main.js

    r235147 r235242  
    11221122        return WI.ResourcesTabContentView;
    11231123
    1124     // FIXME: Move these to a Storage tab.
    11251124    if (representedObject instanceof WI.DOMStorageObject || representedObject instanceof WI.CookieStorageObject ||
    11261125        representedObject instanceof WI.DatabaseTableObject || representedObject instanceof WI.DatabaseObject ||
    11271126        representedObject instanceof WI.ApplicationCacheFrame || representedObject instanceof WI.IndexedDatabaseObjectStore ||
    1128         representedObject instanceof WI.IndexedDatabaseObjectStoreIndex)
    1129         return WI.ResourcesTabContentView;
     1127        representedObject instanceof WI.IndexedDatabase || representedObject instanceof WI.IndexedDatabaseObjectStoreIndex)
     1128        return WI.StorageTabContentView;
    11301129
    11311130    if (representedObject instanceof WI.CanvasCollection)
     
    18161815{
    18171816    this.showStorageTab();
     1817    this.showRepresentedObject(event.data.domStorage, null, {ignoreSearchTab: true});
    18181818};
    18191819
Note: See TracChangeset for help on using the changeset viewer.