⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 245696 in webkit


Ignore:
Timestamp:
May 23, 2019, 11:04:49 AM (7 years ago)
Author:
Devin Rousso
Message:

Web Inspector: clicking a source link should never open the Network tab
https://bugs.webkit.org/show_bug.cgi?id=197951

Reviewed by Timothy Hatcher.

The preview panel in the Network tab is really meant to be just that; a preview.

Opening resources in the preview panel is not a great experience, as the Network tab doesn't
have as much of the information one would expect when viewing a resource (namely the
Resource details sidebar panel).

Navigating within the Network tab also completely wipes out the current "state" of what
you're looking at (e.g. which panel), which could be unexpected.

The only way this could happen previously was if the Resources/Debugger/Sources tabs had
never been active at any point in the past. Selecting one of those tabs and then clicking on
an initiator link in the Network tab would re-select that other tab.

  • UserInterface/Base/Main.js:

(WI.dialogWasDismissedWithRepresentedObject):

  • UserInterface/Views/ResourceHeadersContentView.js:

(WI.ResourceHeadersContentView.prototype._refreshSummarySection):

Location:
trunk/Source/WebInspectorUI
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r245665 r245696  
     12019-05-23  Devin Rousso  <drousso@apple.com>
     2
     3        Web Inspector: clicking a source link should never open the Network tab
     4        https://bugs.webkit.org/show_bug.cgi?id=197951
     5
     6        Reviewed by Timothy Hatcher.
     7
     8        The preview panel in the Network tab is really meant to be just that; a preview.
     9
     10        Opening resources in the preview panel is not a great experience, as the Network tab doesn't
     11        have as much of the information one would expect when viewing a resource (namely the
     12        Resource details sidebar panel).
     13
     14        Navigating within the Network tab also completely wipes out the current "state" of what
     15        you're looking at (e.g. which panel), which could be unexpected.
     16
     17        The only way this could happen previously was if the Resources/Debugger/Sources tabs had
     18        never been active at any point in the past. Selecting one of those tabs and then clicking on
     19        an initiator link in the Network tab would re-select that other tab.
     20
     21        * UserInterface/Base/Main.js:
     22        (WI.dialogWasDismissedWithRepresentedObject):
     23
     24        * UserInterface/Views/ResourceHeadersContentView.js:
     25        (WI.ResourceHeadersContentView.prototype._refreshSummarySection):
     26
    1272019-05-22  Nikita Vasilyev  <nvasilyev@apple.com>
    228
  • trunk/Source/WebInspectorUI/UserInterface/Base/Main.js

    r245165 r245696  
    32363236        return;
    32373237
    3238     WI.showRepresentedObject(representedObject, dialog.cookie);
     3238    WI.showRepresentedObject(representedObject, dialog.cookie, {
     3239        ignoreSearchTab: true,
     3240        ignoreNetworkTab: true,
     3241    });
    32393242};
    32403243
  • trunk/Source/WebInspectorUI/UserInterface/Views/ResourceHeadersContentView.js

    r243614 r245696  
    271271                dontFloat: true,
    272272                ignoreSearchTab: true,
     273                ignoreNetworkTab: true,
    273274            };
    274275            let link = WI.createSourceCodeLocationLink(initiatorLocation, options);
     
    284285                    if (!this._popover) {
    285286                        this._popover = new WI.Popover(this);
    286                         this._popover.windowResizeHandler = () => { this._presentPopoverBelowCallStackElement() };
     287                        this._popover.windowResizeHandler = () => { this._presentPopoverBelowCallStackElement(); };
    287288                    }
    288289
Note: See TracChangeset for help on using the changeset viewer.