Bug 177774 - Web Inspector: After enabling the new Network Tab in experimental settings, the network tab disappears
Summary: Web Inspector: After enabling the new Network Tab in experimental settings, t...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Joseph Pecoraro
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2017-10-02 13:45 PDT by Joseph Pecoraro
Modified: 2017-10-04 11:30 PDT (History)
6 users (show)

See Also:


Attachments
[PATCH] Proposed Fix (2.53 KB, patch)
2017-10-02 13:47 PDT, Joseph Pecoraro
no flags Details | Formatted Diff | Diff
[PATCH] Proposed Fix (2.67 KB, patch)
2017-10-03 18:03 PDT, Joseph Pecoraro
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Joseph Pecoraro 2017-10-02 13:45:54 PDT
After enabling the new Network Tab in experimental settings, the network tab disappears.

Steps to reproduce:
1. Open Web Inspector
2. Click the gear for settings
3. Click Experimental
4. Check New Network Tab
5. Reload the inspector with the button that appears

Result:
Network Tab disappears.

Expected:
Network Tab to be there just different.

Note:
It is possible to add it back with New Tab however.
Comment 1 Joseph Pecoraro 2017-10-02 13:46:02 PDT
<rdar://problem/34771647>
Comment 2 Joseph Pecoraro 2017-10-02 13:47:03 PDT
Created attachment 322425 [details]
[PATCH] Proposed Fix
Comment 3 Devin Rousso 2017-10-02 17:00:03 PDT
Comment on attachment 322425 [details]
[PATCH] Proposed Fix

View in context: https://bugs.webkit.org/attachment.cgi?id=322425&action=review

> Source/WebInspectorUI/UserInterface/Views/SettingsTabContentView.js:259
> +                if (!WI.settings.experimentalEnableNewNetworkTab.value)

Shouldn't the reverse also be done (replace WI.NetworkTabContentView with WI.LEgacyNetworkTabContentView) if the setting changes to off?  Also, doesn't a warning appear when you toggle this setting that you have to refresh to see the effects?  Maybe a better solution would be to force a refresh if the user switches off the settings tab without clicking that button :|
Comment 4 Joseph Pecoraro 2017-10-02 17:41:23 PDT
Comment on attachment 322425 [details]
[PATCH] Proposed Fix

View in context: https://bugs.webkit.org/attachment.cgi?id=322425&action=review

>> Source/WebInspectorUI/UserInterface/Views/SettingsTabContentView.js:259
>> +                if (!WI.settings.experimentalEnableNewNetworkTab.value)
> 
> Shouldn't the reverse also be done (replace WI.NetworkTabContentView with WI.LEgacyNetworkTabContentView) if the setting changes to off?  Also, doesn't a warning appear when you toggle this setting that you have to refresh to see the effects?  Maybe a better solution would be to force a refresh if the user switches off the settings tab without clicking that button :|

Sure I can do this for the legacy direction.
Comment 5 Joseph Pecoraro 2017-10-03 18:03:26 PDT
Created attachment 322622 [details]
[PATCH] Proposed Fix
Comment 6 Devin Rousso 2017-10-03 18:30:28 PDT
Comment on attachment 322622 [details]
[PATCH] Proposed Fix

r=me
Comment 7 WebKit Commit Bot 2017-10-04 11:30:41 PDT
Comment on attachment 322622 [details]
[PATCH] Proposed Fix

Clearing flags on attachment: 322622

Committed r222860: <http://trac.webkit.org/changeset/222860>
Comment 8 WebKit Commit Bot 2017-10-04 11:30:42 PDT
All reviewed patches have been landed.  Closing bug.