Use same icons as Console for errors in the request list
Categories
(DevTools :: Netmonitor, enhancement, P3)
Tracking
(firefox71 fixed)
Tracking | Status | |
---|---|---|
firefox71 | --- | fixed |
People
(Reporter: fvsch, Assigned: fvsch)
References
Details
(Keywords: good-first-bug)
Attachments
(4 files)
We're moving the Console's error, warning and info icons to more generic names and locations, so they can be reused by other panels easily. Work done in bug 1552067.
Once landed, we can probably remove a couple icons used by Netmonitor. For instance:
- Open devtools on Network tab
- Load https://wrong.host.badssl.com/
In the "Domain" column, you will see a 16px gray icon. We should replace it with the round Error icon at 12px size. Changes:
.security-state-broken {
- background-image: url(chrome://devtools/skin/images/security-state-broken.svg);
+ background-image: url(chrome://devtools/skin/images/error-small.svg);
}
.requests-security-state-icon {
- width: 16px;
+ width: 12px;
- height: 16px;
+ height: 12px;
- vertical-align: text-bottom;
+ vertical-align: middle;
+ margin-inline-end: 2px;
}
Comment 1•5 years ago
|
||
Yep, that make sense. Thanks for the report!
@Florens since you basically provided a patch already, do you want to take this bug :-)
Honza
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 2•5 years ago
|
||
I tweaked all icons slightly in my patch, so let's include a SVG export here.
Figma document:
https://www.figma.com/file/FolCW5GWzsp94lK8gh4JqD/Network-security-state-icons
Assignee | ||
Comment 3•5 years ago
|
||
Here's the result I'm getting in the dark theme.
Assignee | ||
Comment 4•5 years ago
|
||
Same for the light theme.
Assignee | ||
Comment 5•5 years ago
|
||
- Use the shared error.svg icon for security errors.
- Make the Netmonitor's padlock icons accept colors from CSS, and use the same colors as Console for errors and warnings.
- Turn all security state icons white in selected rows.
- Tweak some icons, e.g. make the shield icon's strokes a full 1px instead a slightly thinner strokes which made
Assignee | ||
Comment 6•5 years ago
|
||
Hi Victoria, want to do a tiny visual review?
See the two screenshots above. Note: each screenshot is a composite to show all visual permutations, not a real situation with 4 selected rows.
Pushed by florens@fvsch.com: https://hg.mozilla.org/integration/autoland/rev/577cd174fedb Use shared error icon and icon colors for Network security state icons; r=Honza,Harald
Comment 10•5 years ago
|
||
bugherder |
Updated•5 years ago
|
Description
•