diff --git a/browser/base/content/test/performance/browser.ini b/browser/base/content/test/performance/browser.ini index 4907e925fbd0c..57cc5be25c730 100644 --- a/browser/base/content/test/performance/browser.ini +++ b/browser/base/content/test/performance/browser.ini @@ -24,9 +24,6 @@ support-files = [browser_appmenu.js] skip-if = asan || debug || (os == 'win' && bits == 32) || (os == 'win' && processor == 'aarch64') # Bug 1382809, bug 1369959, Win32 because of intermittent OOM failures, bug 1533141 for aarch64 -[browser_panel_vsync.js] -support-files = - !/browser/components/downloads/test/browser/head.js [browser_preferences_usage.js] https_first_disabled = true skip-if = diff --git a/browser/base/content/test/performance/browser_panel_vsync.js b/browser/base/content/test/performance/browser_panel_vsync.js deleted file mode 100644 index 0be2f45758937..0000000000000 --- a/browser/base/content/test/performance/browser_panel_vsync.js +++ /dev/null @@ -1,51 +0,0 @@ -/* Any copyright is dedicated to the Public Domain. - http://creativecommons.org/publicdomain/zero/1.0/ */ -/* import-globals-from ../../../../components/downloads/test/browser/head.js */ - -"use strict"; - -Services.scriptloader.loadSubScript( - "chrome://mochitests/content/browser/browser/components/downloads/test/browser/head.js", - this -); - -add_task( - async function test_opening_panel_and_closing_should_not_leave_vsync() { - await SpecialPowers.pushPrefEnv({ - set: [["browser.download.autohideButton", false]], - }); - await promiseButtonShown("downloads-button"); - - const downloadsButton = document.getElementById("downloads-button"); - const shownPromise = promisePanelOpened(); - EventUtils.synthesizeNativeMouseEvent({ - type: "click", - target: downloadsButton, - atCenter: true, - }); - await shownPromise; - - is(DownloadsPanel.panel.state, "open", "Check that panel state is 'open'"); - - await TestUtils.waitForCondition( - () => !ChromeUtils.vsyncEnabled(), - "Make sure vsync disabled" - ); - // Should not already be using vsync - ok(!ChromeUtils.vsyncEnabled(), "vsync should be off initially"); - - EventUtils.synthesizeNativeMouseEvent({ - type: "click", - target: downloadsButton, - atCenter: true, - }); - - await TestUtils.waitForCondition(() => !ChromeUtils.vsyncEnabled()); - ok(!ChromeUtils.vsyncEnabled(), "vsync should still be off"); - is( - DownloadsPanel.panel.state, - "closed", - "Check that panel state is 'closed'" - ); - } -); diff --git a/layout/xul/nsMenuPopupFrame.cpp b/layout/xul/nsMenuPopupFrame.cpp index 1f842e0495529..fa173f88bcae9 100644 --- a/layout/xul/nsMenuPopupFrame.cpp +++ b/layout/xul/nsMenuPopupFrame.cpp @@ -1088,10 +1088,6 @@ void nsMenuPopupFrame::HidePopup(bool aDeselectMenu, nsPopupState aNewState) { if (menuFrame) { menuFrame->PopupClosed(aDeselectMenu); } - - if (auto* widget = GetWidget()) { - widget->ClearCachedWebrenderResources(); - } } nsIFrame::ReflowChildFlags nsMenuPopupFrame::GetXULLayoutFlags() {