Inconsistency in network panel: connection is secure but displayed icon is the globe instead of the lock
Categories
(DevTools :: Netmonitor, defect, P3)
Tracking
(firefox68 fixed)
| Tracking | Status | |
|---|---|---|
| firefox68 | --- | fixed |
People
(Reporter: sole, Assigned: ns19041997)
Details
(Keywords: DevAdvocacy, good-first-bug, Whiteboard: [DevRel:P3])
Attachments
(3 files)
| Reporter | ||
Comment 1•9 years ago
|
||
| Reporter | ||
Updated•9 years ago
|
Updated•9 years ago
|
Updated•9 years ago
|
Updated•7 years ago
|
I have submitted a patch which replaces the "globe" icon with "lock" for security-state-local. Please review.
(Although I think that the lock icon is supposed to be there as it is a specific case for localhost).
Comment 4•6 years ago
|
||
Harald, quick summary for this.
-
We have special code path that uses the globe icon for requests coming from localhost
https://searchfox.org/mozilla-central/rev/44a212460990ffffecf50a8e972d3cbde2e7216b/devtools/client/netmonitor/src/components/RequestListColumnDomain.js#43 -
That code path above also sets this tooltip: "The connection used to fetch that resource was secure"
I don't know why we are actually having an extra icon for localhost connection. We could just remove the special codepath and treat local connections just like any other connection and use the current securityState to decide what icon & tooltip should be there (just like we do for any other connection).
Of course, we can still indicate localhost connections as well (not sure whether it's needed), but that could be independent from whether it's secure/insecure connection.
Thoughts?
Honza
Comment 5•6 years ago
|
||
One assumption for the lock would potentially be to represent secure context: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts#When_is_a_context_considered_secure . http://localhost and file:// paths are both considered secure.
We could just remove the special codepath and treat local connections just like any other connection and use the current securityState to decide what icon & tooltip should be there (just like we do for any other connection).
This seems a good simplification. Not sure why a globe matches localhost, as it implies an outgoing connection. With the statement above, should we still show a lock (not sure if that is what the platform returns)?
Comment 6•6 years ago
|
||
(In reply to :Harald Kirschner :digitarald from comment #5)
This seems a good simplification. Not sure why a globe matches localhost, as it implies an outgoing connection. With the statement above, should we still show a lock (not sure if that is what the platform returns)?
Since http://localhost and file:// paths are both considered secure let's use lock for them (and perhaps the platform already returns such state, which would simplify the code base).
Honza
Comment 7•6 years ago
|
||
@Neha: are you still working on this? Should I assign it to you?
Honza
@Honza: Yup, I would like to work on this.
It can be assigned to me.
Thanks!
Updated•6 years ago
|
Comment 9•6 years ago
|
||
@Neha, please see my comment in Phab. The patch is almost ready.
Honza
Comment 10•6 years ago
|
||
Comment 11•6 years ago
|
||
| bugherder | ||
Description
•