67

1427071 - allow WebExtensions to override browser.display.background_color

 6 years ago
source link: https://bugzilla.mozilla.org/show_bug.cgi?id=1427071
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Details

(Whiteboard: [design-decision-denied])

For New Tab Override I would like the Option to override browser.display.background_color.

Reason: New Tab Override has an option to change the new tab page to a arbitrary background color. I can use browser.tabs.insertCSS, I can use document.body.style.background or even if I hard-code a color in the HTML file there is a really annoying flickering on every new tab from white to the new color. If I set browser.display.background_color to #ff0000 then it's a flickering from red to the new color. So what I really have to do for this option instead of the current approach is to override browser.display.background_color to a arbitrary color so that there is no longer a flickering.

Another use case:

It's also annoying to change every time browser.display.background_color if I want to open a white SVG image because it's invisible on the white background. I would like to write a small WebExtension to change browser.display.background_color via a browserAction button.

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK