Bug 179233 - Web Inspector: Network Table - Include a secure lock indicator in the domain column
Summary: Web Inspector: Network Table - Include a secure lock indicator in the domain ...
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-11-02 23:14 PDT by Joseph Pecoraro
Modified: 2017-11-03 03:00 PDT (History)
5 users (show)

See Also:


Attachments
[IMAGE] Before (222.21 KB, image/png)
2017-11-02 23:14 PDT, Joseph Pecoraro
no flags Details
[IMAGE] After (225.25 KB, image/png)
2017-11-02 23:15 PDT, Joseph Pecoraro
no flags Details
[IMAGE] Mixed Content (200.32 KB, image/png)
2017-11-02 23:15 PDT, Joseph Pecoraro
no flags Details
[PATCH] Proposed Fix (3.14 KB, patch)
2017-11-02 23:15 PDT, Joseph Pecoraro
no flags Details | Formatted Diff | Diff
[IMAGE] Edge Case - Failure on https (186.79 KB, image/png)
2017-11-02 23:18 PDT, Joseph Pecoraro
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joseph Pecoraro 2017-11-02 23:14:00 PDT
Include a secure lock indicator in the domain column

This keeps the data in the table relatively compact but provides a useful indicator (was the request secure (https/wss) / insecure).
Comment 1 Joseph Pecoraro 2017-11-02 23:14:09 PDT
<rdar://problem/34070883>
Comment 2 Joseph Pecoraro 2017-11-02 23:14:57 PDT
Created attachment 325860 [details]
[IMAGE] Before
Comment 3 Joseph Pecoraro 2017-11-02 23:15:07 PDT
Created attachment 325861 [details]
[IMAGE] After
Comment 4 Joseph Pecoraro 2017-11-02 23:15:20 PDT
Created attachment 325862 [details]
[IMAGE] Mixed Content
Comment 5 Joseph Pecoraro 2017-11-02 23:15:34 PDT
Created attachment 325863 [details]
[PATCH] Proposed Fix
Comment 6 Joseph Pecoraro 2017-11-02 23:18:47 PDT
Created attachment 325864 [details]
[IMAGE] Edge Case - Failure on https

Adding an image for a failure to show that the lock icon is still gray and not red. I think a red lock would be bad, since it might indicate something else.

I do think we will might eventually want a green/gray/red lock when we have more information about the actual details per-request. Weak algorithms could be called out in such a way. But until we have that data, a gray lock or nothing seems the right thing to do.
Comment 7 Devin Rousso 2017-11-02 23:24:44 PDT
Comment on attachment 325863 [details]
[PATCH] Proposed Fix

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

r=me

> Source/WebInspectorUI/UserInterface/Views/NetworkTableContentView.js:412
> +        console.assert(!cell.firstChild, "We expect the cell to be empty.", cell, cell.firstChild);

I'm not sure of the usefulness of this assertion.  I understand that it will help catch edge cases, but it also seems to include quite a lot of detail.  I personally think that just the check and message is enough, but it's your call.
Comment 8 Joseph Pecoraro 2017-11-03 02:42:31 PDT
The goal of the assertion is for the future. If we ever make Table.js reissue cells then this code could be improved. There is also only 1 column that does an in place update (waterfall) and it lacking the assertion helps make that known.
Comment 9 WebKit Commit Bot 2017-11-03 03:00:26 PDT
Comment on attachment 325863 [details]
[PATCH] Proposed Fix

Clearing flags on attachment: 325863

Committed r224391: <https://trac.webkit.org/changeset/224391>
Comment 10 WebKit Commit Bot 2017-11-03 03:00:28 PDT
All reviewed patches have been landed.  Closing bug.