XUL popup destroyed without "popuphidden" event when parent element changes styles
Categories
(Core :: XUL, enhancement, P3)
Tracking
()
People
(Reporter: maltejur, Unassigned)
References
()
Details
Attachments
(1 obsolete file)
This is something that came up in a custom userChrome theme here. There, a web extension is controlling some global styles. When the user interacts with a checkbox in a extension popup, the position
attribute of #nav-bar
is set to fixed
(among other things). This results in the XUL popup being "destroyed", but the javascript chrome code still thinking the popup is open, and thus breaking the extensions toolbar button.
While investigating this bug, this comment caught my eye:
XXX: Currently we don't fire popuphidden for these popups, that seems wrong but alas, also pre-existing.
And this indeed seems to be related to the problem. Since I am not at all familiar with the XUL code, I am not sure if I have understood the problem completely. But I have written a small generic testcase reproducing this problem, and a very simple patch for also sending the popuphidden
event when landing in this code path (which fixes the original bug with the userChrome theme). I will attach both.
Reporter | ||
Updated•10 months ago
|
Reporter | ||
Comment 1•10 months ago
|
||
Updated•10 months ago
|
Comment 2•9 months ago
|
||
The severity field is not set for this bug.
:enndeakin, could you have a look please?
For more information, please visit BugBot documentation.
Updated•9 months ago
|
Reporter | ||
Updated•2 months ago
|
Updated•2 months ago
|
Description
•