tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit a83174d40498952fbde4af9e632da07742e9ab8f
parent 99003e227fe913e32e77ac49a0bf06344a81bbcb
Author: Rob Wu <rob@robwu.nl>
Date:   Mon, 15 Dec 2025 11:36:17 +0000

Bug 2005158 - Remove obsolete test from browser_ext_popup_corners.js r=willdurand

See https://bugzilla.mozilla.org/show_bug.cgi?id=2005158#c2

Differential Revision: https://phabricator.services.mozilla.com/D276175

Diffstat:
Mbrowser/components/extensions/test/browser/browser_ext_popup_corners.js | 54------------------------------------------------------
1 file changed, 0 insertions(+), 54 deletions(-)

diff --git a/browser/components/extensions/test/browser/browser_ext_popup_corners.js b/browser/components/extensions/test/browser/browser_ext_popup_corners.js @@ -2,12 +2,6 @@ /* vim: set sts=2 sw=2 et tw=80: */ "use strict"; -add_setup(async function () { - await SpecialPowers.pushPrefEnv({ - set: [["browser.urlbar.trustPanel.featureGate", false]], - }); -}); - add_task(async function testPopupBorderRadius() { let extension = ExtensionTestUtils.loadExtension({ background() { @@ -107,54 +101,6 @@ add_task(async function testPopupBorderRadius() { } { - info("Test overflowed browserAction popup"); - const kForceOverflowWidthPx = 500; - // As of bug 1960002, overflowing the navbar also requires adding an - // extra button. - CustomizableUI.addWidgetToArea( - "history-panelmenu", - CustomizableUI.AREA_NAVBAR - ); - - let overflowPanel = document.getElementById("widget-overflow"); - - let originalWindowWidth = window.outerWidth; - let navbar = document.getElementById(CustomizableUI.AREA_NAVBAR); - ok( - !navbar.hasAttribute("overflowing"), - "Should start with a non-overflowing toolbar." - ); - window.resizeTo(kForceOverflowWidthPx, window.outerHeight); - - await TestUtils.waitForCondition(() => navbar.hasAttribute("overflowing")); - ok( - navbar.hasAttribute("overflowing"), - "Should have an overflowing toolbar." - ); - - await window.gUnifiedExtensions.togglePanel(); - - clickBrowserAction(extension); - let browser = await awaitExtensionPanel(extension); - - is( - overflowPanel.state, - "closed", - "The widget overflow panel should not be open." - ); - - await testPanel(browser, false); - await closeBrowserAction(extension); - - window.resizeTo(originalWindowWidth, window.outerHeight); - await TestUtils.waitForCondition(() => !navbar.hasAttribute("overflowing")); - ok( - !navbar.hasAttribute("overflowing"), - "Should not have an overflowing toolbar." - ); - } - - { info("Test menu panel browserAction popup"); CustomizableUI.addWidgetToArea(widget.id, getCustomizableUIPanelID());