Closed Bug 1702034 Opened 3 years ago Closed 3 years ago

Extension buttons in the location bar are very hard to see with the Proton Dark theme

Categories

(Firefox :: Toolbars and Customization, defect, P2)

defect

Tracking

()

RESOLVED FIXED
89 Branch
Tracking Status
firefox89 --- fixed

People

(Reporter: bytesized, Assigned: mak)

References

(Blocks 1 open bug)

Details

(Whiteboard: [proton-address-bar][priority:2a])

Attachments

(2 files)

Attached image location bar icons.PNG

The screen shot attached contains shows the "Reader Mode" button, the "In-Page Pop-up Reporter" button, the "Always open this in a Container" button, and the Bookmark button. The "Reader Mode" and Bookmark buttons look fine, but the other two buttons are extremely hard to see.

Drew pointed out this code in svg that disables context paint for add-ons that are not mozilla-signed:
https://searchfox.org/mozilla-central/rev/acafeda74c3b263264ddb9fb21c45bb67d0de267/layout/svg/SVGContextPaint.cpp#52-56

Jared, Dholbert, do you have additional insight about that disabling?
It seems to make things worse, could we provide some kind of opt-in add-on authors can use in the file itself, rather than completely disabling it?

Flags: needinfo?(jaws)
Flags: needinfo?(dholbert)

Caitlin offered to notify add-on authors about changes they could make to improve the situation.
In the worst case we should workaround this somehow, maybe adding a lighter background to these icons.

(In reply to Marco Bonardo [:mak] from comment #1)

Drew pointed out this code in svg that disables context paint for add-ons that are not mozilla-signed:
[...]
Jared, Dholbert, do you have additional insight about that disabling?

Sure -- SVG "context paint" is not in any standard; it's intended as a temporary proprietary hack that we'll unsupport in the future. As such, it's not something that we want to expose to any code/content that we don't ourselves have the power to rewrite.

We're anticipating that a better solution will be standardized in the future (as part of SVG and/or CSS), at which point we fully intend to rip out support for context-paint and rewrite all of our code that uses it to use the new thing instead. If we broaden it to work in third-party add-ons, then we won't be able to do that without breaking a bunch of add-ons.

It doesn't help to give add-on authors a way to "opt-in"; if they use it at all, we'd kinda be blocked from unsupporting it as long as any add-ons are actively depending on it.

Flags: needinfo?(jaws)
Flags: needinfo?(dholbert)

(See bug 1379464 comment 3 where jwatt said basically the same thing.)

Note that we're not intending to "privilege" Mozilla's own add-ons here, even if that's kind of the current state of things. The context-paint feature/hack was only really meant to be used by our built-in UI; and some pieces of our built-in UI happen to be packaged as WebExtensions (e.g. Firefox Screenshots apparently was); that's the only reason this works in any extensions at all. (And of course, Mozilla-authored WebExtensions trivially fall into the bucket of "stuff that we can immediately rewrite as soon as a better solution is available, so that we can unsupport context paint", which is why we were kinda-OK allowing this hack to work for them.)

Priority: -- → P2
Whiteboard: [proton-address-bar] → [proton-address-bar][priority:2a]

In Slack, ntim suggested applying a slight brightness filter to these icons in brighttext. Maybe filter: brightness(120%)? Marco also suggested we could style them as chiclets to set them off from the background, but that might be distracting.

I don't think this is a Proton regression and as such we should remove it from blocking proton-address-bars (or at least make this non-regression obvious).

While not technically a regression, this bug is actually caused by Proton Dark, that will be a commonly used theme.

I'll experiment a bit and see how we can improve the situation.

Assignee: nobody → mak
Status: NEW → ASSIGNED
Severity: -- → S2
Pushed by mak77@bonardo.net:
https://hg.mozilla.org/integration/autoland/rev/1e9779538e94
Extension buttons in the location bar are very hard to see with the Proton Dark theme. r=harry,desktop-theme-reviewers,rpl
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 89 Branch
See Also: → 1714852
See Also: → 1774107
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: