Open Bug 1441015 Opened 6 years ago Updated 2 years ago

Moving an element from a hiding panel to a new panel may result in the element not being displayed

Categories

(Core :: XUL, defect, P5)

defect

Tracking

()

People

(Reporter: Paolo, Unassigned)

References

Details

This issue appears when the PanelMultiView code closes an open panel, then synchronously moves a PanelView from the panel that is being closed to the new one. The new panel will appear empty for a while, probably until a layout flush is triggered. In some cases, the element will apparently stay hidden forever, but highlighting it using the Inspector of the Browser Toolbox makes it appear. This is variable, so the issue may be intermittent.

Bug 1440333 works around this by waiting for a layout flush right after this line in PanelMultiView.jsm:

PanelMultiView.forNode(oldPanelMultiViewNode).hidePopup();

This bug can still be reproduced after removing the line that waits for the layout flush. The tests added in bug 1440358 will fail, and the Library panel will be empty if it is opened using the toolbar button while the Library subview is visible in the main menu.
Moving to Core:XUL per https://bugzilla.mozilla.org/show_bug.cgi?id=1455336
Component: XP Toolkit/Widgets: XUL → XUL
Priority: -- → P5
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.