Bug 1909163 - mark select dropdown as tabspecific, a=RyanVM

Original Revision: https://phabricator.services.mozilla.com/D217232

Differential Revision: https://phabricator.services.mozilla.com/D219917
This commit is contained in:
Gijs Kruitbosch 2024-08-22 23:13:19 +00:00
parent 86c87fdd04
commit 7fb38dfb81
2 changed files with 3 additions and 2 deletions

View file

@ -3604,9 +3604,9 @@ var XULBrowserWindow = {
};
// If the location is changed due to switching tabs,
// ensure we close any open tabspecific panels.
// ensure we close any open tabspecific popups.
if (aIsSimulated) {
closeOpenPanels("panel[tabspecific='true']");
closeOpenPanels(":is(panel, menupopup)[tabspecific='true']");
}
// Ensure we close any remaining open locationspecific panels

View file

@ -750,6 +750,7 @@ export class SelectParent extends JSWindowActorParent {
popup.setAttribute("id", "ContentSelectDropdownPopup");
popup.setAttribute("activateontab", "true");
popup.setAttribute("position", "after_start");
popup.setAttribute("tabspecific", "true");
popup.setAttribute("level", "parent");
if (AppConstants.platform == "win") {
popup.setAttribute("consumeoutsideclicks", "false");