Bug 1647894 - Fixed TypeError on HiddenFrame Set. r=robwu
authorCas Verploegen <casverploegen@live.nl>
Sun, 02 Aug 2020 19:31:30 +0000
changeset 543036 4b30578a98809b44d7ed8bdbba264d3ed1ed8c6d
parent 543035 5295aa971bf7a330364daa1f54299b495efdd9ac
child 543037 13fe46663222c174ae60555240b4017e2466bb55
child 543038 26ff1a25028d7c202d4ab56009b004d1425aaac3
push id37660
push userapavel@mozilla.com
push dateSun, 02 Aug 2020 21:48:43 +0000
treeherdermozilla-central@4b30578a9880 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersrobwu
bugs1647894
milestone81.0a1
first release with
nightly linux32
4b30578a9880 / 81.0a1 / 20200802214843 / files
nightly linux64
4b30578a9880 / 81.0a1 / 20200802214843 / files
nightly mac
4b30578a9880 / 81.0a1 / 20200802214843 / files
nightly win32
4b30578a9880 / 81.0a1 / 20200802214843 / files
nightly win64
4b30578a9880 / 81.0a1 / 20200802214843 / files
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
releases
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1647894 - Fixed TypeError on HiddenFrame Set. r=robwu Differential Revision: https://phabricator.services.mozilla.com/D85690
toolkit/modules/HiddenFrame.jsm
--- a/toolkit/modules/HiddenFrame.jsm
+++ b/toolkit/modules/HiddenFrame.jsm
@@ -15,19 +15,17 @@ const XUL_PAGE = "chrome://global/conten
 
 const gAllHiddenFrames = new Set();
 
 let cleanupRegistered = false;
 function ensureCleanupRegistered() {
   if (!cleanupRegistered) {
     cleanupRegistered = true;
     Services.obs.addObserver(function() {
-      for (let hiddenFrame of ChromeUtils.nondeterministicGetWeakSetKeys(
-        gAllHiddenFrames
-      )) {
+      for (let hiddenFrame of gAllHiddenFrames) {
         hiddenFrame.destroy();
       }
     }, "xpcom-shutdown");
   }
 }
 
 /**
  * An hidden frame object. It takes care of creating a windowless browser and