Closed Bug 1451586 Opened 7 years ago Closed 5 years ago

WebExtension themes do not apply on new Firefox window

Categories

(WebExtensions :: Themes, defect, P2)

61 Branch
defect

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: noxphasma, Unassigned)

References

(Blocks 1 open bug)

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0 Build ID: 20180404100127 Steps to reproduce: Install a WebExtension Theme, I'm using this (https://addons.mozilla.org/de/firefox/addon/arc-dark-theme-webextension/). Then open a new Firefox window. Actual results: The WebExtension Theme does not apply to the new Firefox window. Expected results: The WebExtension Theme should apply to the new Firefox window.
Component: Untriaged → WebExtensions: Themes
Product: Firefox → Toolkit
Assignee: nobody → ntim.bugs
Status: UNCONFIRMED → NEW
Ever confirmed: true
Thanks for filing this bug. I can only reproduce this when you have a lightweight theme or the dark/light theme selected in the add-ons manager. I can't reproduce this with the default theme selected in the add-ons manager. noxphasma, what theme do you have selected in the "Themes" section when this happens?
Flags: needinfo?(noxphasma)
I found a quick and dirty fix if my assumption in comment 1 is correct (that a theme different than the default is selected in the add-ons manager). Adding: LightweightThemeManager.currentTheme = null; after this line: https://searchfox.org/mozilla-central/source/toolkit/components/extensions/parent/ext-theme.js#98 fixes the issue.
Blocks: themingapi-ux
No longer blocks: themingapi-polish
(In reply to Tim Nguyen :ntim from comment #1) > noxphasma, what theme do you have selected in the "Themes" section when this > happens? I have the dark theme activated, which is needed for that specific WebExtension, otherwise the Text is too dark. I was trying with the light theme as well, which showed the same behaviour. I haven't tried the default theme probably.
Flags: needinfo?(noxphasma)
I've checked it with the default theme and you are right it seems to works with the default theme.
Thanks for confirming!
Assignee: ntim.bugs → nobody
Priority: -- → P2
Product: Toolkit → WebExtensions

Let's try to repro 2 years later.

Flags: needinfo?(rob)

Works for me in Fx 71.

Status: NEW → RESOLVED
Closed: 5 years ago
Flags: needinfo?(rob)
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.