diff --git a/browser/base/content/browser-fullScreenAndPointerLock.js b/browser/base/content/browser-fullScreenAndPointerLock.js index 7873d912f3e9..a8927b907f40 100644 --- a/browser/base/content/browser-fullScreenAndPointerLock.js +++ b/browser/base/content/browser-fullScreenAndPointerLock.js @@ -636,8 +636,7 @@ var FullScreen = { } } - ToolbarIconColor.inferFromText("fullscreen", aEnterFS); - + ToolbarIconColor.inferFromText(); // For Lion fullscreen, all fullscreen controls are hidden, don't // bother to touch them. If we don't stop here, the following code diff --git a/browser/base/content/browser-tabsintitlebar.js b/browser/base/content/browser-tabsintitlebar.js index 1db4596b50e6..c696c64db05b 100644 --- a/browser/base/content/browser-tabsintitlebar.js +++ b/browser/base/content/browser-tabsintitlebar.js @@ -247,8 +247,7 @@ var TabsInTitlebar = { menubar.style.paddingBottom = ""; } - ToolbarIconColor.inferFromText("tabsintitlebar", TabsInTitlebar.enabled); - + ToolbarIconColor.inferFromText(); if (CustomizationHandler.isCustomizing()) { gCustomizeMode.updateLWTStyling(); } diff --git a/browser/base/content/test/windows/.eslintrc.js b/browser/base/content/test/windows/.eslintrc.js deleted file mode 100644 index b1c842d8a6db..000000000000 --- a/browser/base/content/test/windows/.eslintrc.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; - -module.exports = { - "extends": [ - "plugin:mozilla/browser-test" - ] -}; diff --git a/browser/base/content/test/windows/browser.ini b/browser/base/content/test/windows/browser.ini deleted file mode 100644 index 442cf06669b7..000000000000 --- a/browser/base/content/test/windows/browser.ini +++ /dev/null @@ -1,2 +0,0 @@ -[DEFAULT] -[browser_toolbariconcolor_restyles.js] diff --git a/browser/base/content/test/windows/browser_toolbariconcolor_restyles.js b/browser/base/content/test/windows/browser_toolbariconcolor_restyles.js deleted file mode 100644 index 74d1028e7968..000000000000 --- a/browser/base/content/test/windows/browser_toolbariconcolor_restyles.js +++ /dev/null @@ -1,44 +0,0 @@ -"use strict"; - -/** - * Ensure redundant style flushes are not triggered when switching between windows - */ -add_task(function* test_toolbar_element_restyles_on_activation() { - if (AppConstants.platform != "win" && AppConstants.version == 8) { - ok(true, "Skipping this test for windows 8"); - return; - } - - let restyles = { - win1: {}, - win2: {} - }; - - // create a window and snapshot the elementsStyled - let win1 = yield BrowserTestUtils.openNewBrowserWindow(); - let utils1 = SpecialPowers.getDOMWindowUtils(win1); - restyles.win1.initial = utils1.elementsRestyled; - - // create a 2nd window and snapshot the elementsStyled - let win2 = yield BrowserTestUtils.openNewBrowserWindow(); - let utils2 = SpecialPowers.getDOMWindowUtils(win2); - restyles.win2.initial = utils2.elementsRestyled; - - // switch back to 1st window, and snapshot elementsStyled - win1.focus(); - restyles.win1.activate = utils1.elementsRestyled; - restyles.win2.deactivate = utils2.elementsRestyled; - - // switch back to 2nd window, and snapshot elementsStyled - win2.focus(); - restyles.win2.activate = utils2.elementsRestyled; - restyles.win1.deactivate = utils1.elementsRestyled; - - is(restyles.win1.activate - restyles.win1.deactivate, 0, - "No elements restyled when re-activating/deactivating a window"); - is(restyles.win2.activate - restyles.win2.deactivate, 0, - "No elements restyled when re-activating/deactivating a window"); - - yield BrowserTestUtils.closeWindow(win1); - yield BrowserTestUtils.closeWindow(win2); -}); diff --git a/browser/base/moz.build b/browser/base/moz.build index 7ea5a78ff4e7..317460f329ca 100644 --- a/browser/base/moz.build +++ b/browser/base/moz.build @@ -35,7 +35,6 @@ BROWSER_CHROME_MANIFESTS += [ 'content/test/urlbar/browser.ini', 'content/test/webextensions/browser.ini', 'content/test/webrtc/browser.ini', - 'content/test/windows/browser.ini', ] if CONFIG['MOZ_UPDATER']: