Closed Bug 1434570 Opened 8 years ago Closed 5 years ago

Port Bug 1434401 to SeaMonkey "Remove the "root-element" binding"

Categories

(SeaMonkey :: General, enhancement)

enhancement
Not set
normal

Tracking

(seamonkey2.57esr? affected)

RESOLVED FIXED
seamonkey 2.84
Tracking Status
seamonkey2.57esr ? affected

People

(Reporter: frg, Assigned: frg)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

I think just changing nsSuiteglue.js is it. Also see TB bug 1434547. +++ This bug was initially created as a clone of Bug #1434401 +++ We have a binding "root-element" (https://bgrins.github.io/xbl-analysis/tree/#root-element), which gets bound onto the :root XUL element in minimal-xul.css (https://dxr.mozilla.org/mozilla-central/rev/474d58c9137360c0fa1c85cdd11e3313b33b7cad/toolkit/content/minimal-xul.css#33). The binding basically looks for the "lightweightthemes" attribute on the root element and if it exists it sets up LightweightThemeConsumer instance. I think there’s a pretty good alternative to doing this via XBL which is listen for the "chrome-document-global-created" notification and do the same check / setup from there. Or sticking it in browser.js, given that's the only window we currently use this feature on in Firefox. This binding is also extended by "dialog" "wizard" bindings, but I can't find any time where anything other than a <window> element gets the "lightweightthemes" attr. In fact, in m-c the only instance of this is browser.xul (c-c does have quite a few hits but it's always applied to <window> elements so the same change should work there as well): * https://searchfox.org/mozilla-central/search?q=lightweightthemes%3D&path= * https://searchfox.org/comm-central/search?q=lightweightthemes%3D&path=
Assignee: nobody → frgrahl
Status: NEW → ASSIGNED

Patch from Bill r/a+ from me.

Attachment #9199393 - Flags: review+
Attachment #9199393 - Flags: approval-comm-esr60+

Pushed by frgrahl@gmx.net:
https://hg.mozilla.org/comm-central/rev/01c883bca53a
Fix Lightweight themes in suite. r=frg

Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Future
Target Milestone: Future → seamonkey 2.84
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: