Closed Bug 1721651 Opened 3 years ago Closed 3 years ago

Display warning triangle as the favicon of certificate error pages

Categories

(Firefox :: Security, enhancement)

Desktop
All
enhancement
Points:
1

Tracking

()

VERIFIED FIXED
92 Branch
Tracking Status
firefox92 --- verified

People

(Reporter: Gijs, Assigned: Gijs)

References

Details

(Whiteboard: [proton-mr11])

Attachments

(4 files)

Attached image Spec

See attachment. We want to more clearly signal that these certificate error pages are warnings.

Whiteboard: [proton-mr11]
Points: --- → 1
Assignee: nobody → gijskruitbosch+bugs
Status: NEW → ASSIGNED

Johann, at one point we had separate markup for network and cert error pages. It now appears to me that despite its name, https://searchfox.org/mozilla-central/source/browser/base/content/certerror/aboutNetError.xhtml is used for both cert errors and network errors. Is that right? Is there a plan to stop doing that, or at least rename the confusing paths?

Flags: needinfo?(jhofmann)

On a completely different note... Katie, can you provide some clarity about the colours you envisaged here? The favicon in the spec has subtly different colours in dark and light mode. This isn't easily possible because the error page can only define 1 favicon. I can set it at runtime from within the code running inside the error page, but that code has no idea whether the user has a light or dark theme applied.

Finally, the icon is almost completely invisible in the alpenglow theme (see screenshot comparing light/dark/alpenglow backgrounds with the same icon). I expect there will be other custom themes where the favicon will be completely lost, colour-wise. Is that an acceptable trade-off, and/or how would you like to proceed here?

Flags: needinfo?(kcaldwell)

Thanks for the visuals and explanation. Updated UX Figma specs with the non-colour dark and light versions of the warning triangle in the tabs. (colour matches tab text values)

Flags: needinfo?(kcaldwell)
Pushed by gijskruitbosch@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/c7a8038bc730
show a warning triangle favicon on certificate error pages, r=pbz
Pushed by gijskruitbosch@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/4065d7740cec
show a warning triangle favicon on certificate error pages, r=pbz
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 92 Branch

Verified fixed using latest Nightly 92.0a1 under Win 10 64-bit, Ubuntu 18.04 64-bit and Mac OSX 10.14.

Status: RESOLVED → VERIFIED

To answer the question, we merged them a long time ago because they mostly shared the same code. Hard to say if that was the right decision :)

Flags: needinfo?(jhofmann)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: