Closed Bug 1563291 Opened 5 years ago Closed 5 years ago

Use same icons as Console for errors in the request list

Categories

(DevTools :: Netmonitor, enhancement, P3)

enhancement

Tracking

(firefox71 fixed)

RESOLVED FIXED
Firefox 71
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:

  1. Open devtools on Network tab
  2. 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;
}

Yep, that make sense. Thanks for the report!

@Florens since you basically provided a patch already, do you want to take this bug :-)

Honza

Flags: needinfo?(florens)
Keywords: good-first-bug
Priority: -- → P3
Assignee: nobody → florens
Status: NEW → ASSIGNED
Flags: needinfo?(florens)

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

Here's the result I'm getting in the dark theme.

Same for the light theme.

  • 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

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.

Flags: needinfo?(victoria)

These icons look fantastic! Thanks Florens!

Flags: needinfo?(victoria)
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
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 71
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: