Backed out changeset 1f75e9bdff0c (bug 1898217) for causing mochitest-chrome failures on test_largemenu.html. CLOSED TREE

This commit is contained in:
Iulian Moraru 2024-05-28 02:13:19 +03:00
parent 373f26828d
commit 8de63d6524
2 changed files with 3 additions and 7 deletions

View file

@ -336,7 +336,7 @@ function testPopupMovement()
var marginTop = parseFloat(getComputedStyle(popup).marginTop);
var panelIsTop = SpecialPowers.getBoolPref("ui.panel.default_level_parent");
var overlapOSChrome = canOverlapOSChrome() && (!isPanelTest || panelIsTop);
var overlapOSChrome = !platformIsMac() && (!isPanelTest || panelIsTop);
popup.moveTo(1, 1);
[screenX, screenY] = getScreenXY(popup);
@ -398,11 +398,6 @@ function platformIsMac()
return navigator.platform.indexOf("Mac") > -1;
}
function canOverlapOSChrome()
{
return navigator.platform.startsWith("Win");
}
window.arguments[0].SimpleTest.waitForFocus(runTests, window);
]]>

View file

@ -904,7 +904,8 @@ nsresult nsLookAndFeel::NativeGetInt(IntID aID, int32_t& aResult) {
break;
}
case IntID::MenusCanOverlapOSBar:
aResult = 0;
// we want XUL popups to be able to overlap the task bar.
aResult = 1;
break;
case IntID::SkipNavigatingDisabledMenuItem:
aResult = 1;