Remove the extra <panel> from Report Broken Panel's xhtml
Categories
(Firefox :: General, enhancement)
Tracking
()
People
(Reporter: twisniewski, Assigned: twisniewski)
References
Details
Attachments
(1 file)
Report Broken Site has an extra <panel> in reportBrokenSitePanel.inc.xhtml:
<panel id="report-broken-main-menu-panel"
class="cui-widget-panel panel-no-padding">
<panelmultiview mainViewId="report-broken-site-popup-mainView"/>
</panel>
This shouldn't be needed, we should be able to use this code to show the popup from the Help menu:
ownerGlobal.PanelUI.showSubView(
ReportBrokenSite.MAIN_PANELVIEW_ID,
ownerGlobal.PanelUI.menuButton
);
But the panel popup that is called up when using the above code will dismissed the popup if the user selects a drop-down item while using it (for instance, the optional reason drop-down on the Report Broken Site popup, which is implemented as a <menulist>
). I've found that using this extra panel with this code instead prevents that:
ownerGlobal.PanelMultiView.openPopup(
document.getElementById("report-broken-main-menu-panel"),
document.getElementById("PanelUI-menu-button"),
{ position: "bottomright topright" }
);
But we shouldn't really need to do that instead of using the showSubView
method. Gijs suspects the popup dismissal may be caused by the isOnInteractiveElement
check here:
https://searchfox.org/mozilla-central/rev/7e60ac48dc5b3e3f06c1baf2a9a6e0352bd85c01/browser/components/customizableui/CustomizableUI.sys.mjs#2305
Comment 1•2 years ago
|
||
It doesn't look like it is that JS code but I've not yet had a chance to work out what is closing the panel in this case.
Comment 2•2 years ago
|
||
I put up a patch in bug 1866503 that fixes the blocking issue here.
Assignee | ||
Comment 3•2 years ago
|
||
Updated•2 years ago
|
Comment 5•2 years ago
|
||
bugherder |
Updated•2 years ago
|
Description
•