Closed Bug 252618 Opened 20 years ago Closed 15 years ago

Live theme switching: "Apply theme" menu broken

Categories

(SeaMonkey :: Themes, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: Biesinger, Unassigned)

References

Details

Attachments

(1 file)

ok, I played around with this a bit, in seamonkey

step 1: re-enable it live theme switching (I'll attach the patch to do that)

step 2: View|Apply theme|modern

Now, in this window, you can not get the apply theme submenu anymore. nothing
happens when hovering over it.

This works fine in new windows; but in the old window, it's still broken after
switching back to classic in a new window (not surprising).
For whatever reason submenus rely on setting the "open" attribute to open them.
No code that I know of actually depends on this, but there you go...

So of course submenus need the "open" attributes removed when you close them.
But switching themes forcibly destroys all menu frames. This makes the menus
think that the document has been deleted and don't bother removing attributes.

If you go into DOMI you'll see the "open" attribute on that submenu, and you can
safely delete it and go back into View/Apply again.
Should the frame destructors unset the open attributes?
Component: XP Toolkit/Widgets: Menus → XUL
QA Contact: xptoolkit.widgets
The patch is for navigator.js, which is only valid for SeaMonkey (nowadays).
Apply Theme works in SeaMonkey (but requires a restart, but that is a separate issue).
Status: NEW → RESOLVED
Closed: 15 years ago
Component: XUL → Themes
Product: Core → SeaMonkey
QA Contact: xptoolkit.widgets → themes
Resolution: --- → FIXED
Correct resolution, but entirely wrong reason.

Live theme switching from the Apply Theme menu was fixed as part of the switch to toolkit, although you have to turn on the preference in the Debug pane.

The bug about not being able to reopen the menu was fixed by bug 282359.
Depends on: 282359
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: