Commit 6a83d811 authored by Emilio Cobos Álvarez's avatar Emilio Cobos Álvarez
Browse files

Bug 1729477 - BrowserTestUtils.openNewWindowWithFlushedXULCacheForMozSupports...

Bug 1729477 - BrowserTestUtils.openNewWindowWithFlushedXULCacheForMozSupports should now clear the stylesheet cache.

MANUAL PUSH: Trivial orange fix CLOSED TREE
parent 12c9670c
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1036,7 +1036,8 @@ var BrowserTestUtils = {
   * @returns {Promise} Resolves with the new window once it is loaded.
   */
  async openNewWindowWithFlushedXULCacheForMozSupports(options) {
    //
    ChromeUtils.clearStyleSheetCache();

    Services.obs.notifyObservers(null, "chrome-flush-caches");
    await TestUtils.waitForTick();