Open Bug 1404855 Opened 7 years ago Updated 2 years ago

Theming API - Add tests for windowId parameter on the browser UI

Categories

(WebExtensions :: Themes, defect, P3)

defect

Tracking

(Not tracked)

People

(Reporter: ntim, Unassigned)

References

(Blocks 2 open bugs)

Details

      No description provided.
Priority: -- → P5
Bug 1349944 tests whether the windowId parameter works well on the WebExtension side of things.

What's left to add are tests for whether the properties are properly applied on the browser UI itself.
Summary: Theming API - Add tests for windowId parameter → Theming API - Add tests for windowId parameter on the browser UI
Blocks: 1342712, themingapi-polish
No longer blocks: themingapi
Assignee: ntim.bugs → nobody
Assignee: nobody → mdeboer
Status: NEW → ASSIGNED
P5's clearly the wrong value; we need a stable base to expand the Theming API from, so a regression test like this is essential.

We can also ensure that bug 1387737 won't happen again.
Priority: P5 → P2
Hmm, seems like https://searchfox.org/mozilla-central/source/toolkit/components/extensions/test/browser/browser_ext_themes_dynamic_onUpdated.js is already what we need.
Thanks, Tim!
Assignee: mdeboer → ntim.bugs
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
(In reply to Mike de Boer [:mikedeboer] from comment #3)
> Hmm, seems like
> https://searchfox.org/mozilla-central/source/toolkit/components/extensions/
> test/browser/browser_ext_themes_dynamic_onUpdated.js is already what we need.
> Thanks, Tim!

This only tests whether `windowId` works well on the WebExtension side, but not on the browser UI side. There are actually absolutely no tests testing whether the CSS variables are set correctly per-window, or that those per-window CSS variables are in sync with the WebExtension getCurrent() method.
Flags: needinfo?(mdeboer)
Ah, thanks for the note Tim! I'll work on those tests then.
Status: RESOLVED → REOPENED
Flags: needinfo?(mdeboer)
Resolution: FIXED → ---
Assignee: ntim.bugs → mdeboer
Status: REOPENED → ASSIGNED
Welp, this just bit us in bug 1451586.
Product: Toolkit → WebExtensions
No longer blocks: dark-theme-darkening
Blocks: 1486592
https://searchfox.org/mozilla-central/source/toolkit/components/extensions/test/browser/browser_ext_themes_ntp_colors_perwindow.js

is an example of per-window theme test for the new tab page.

It can easily be adjusted for basic accentcolor/textcolor testing.

Not actively working on this, please feel free to take it when interested.

Assignee: mdeboer → nobody
Status: ASSIGNED → NEW
Priority: P2 → P3
Component: General → Themes
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.