[tbb-commits] [tor-browser-bundle-testsuite/master] Fix dom_objects enumeration tests

gk at torproject.org gk at torproject.org
Fri Dec 11 21:30:52 UTC 2020


commit f88d60d95120eb969fe1a149527a9d03bb252425
Author: Alex Catarineu <acat at torproject.org>
Date:   Thu Dec 3 11:35:50 2020 +0100

    Fix dom_objects enumeration tests
    
    window.content is disabled in early betas since 77.
---
 marionette/tor_browser_tests/test_dom-objects-enumeration.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/marionette/tor_browser_tests/test_dom-objects-enumeration.py b/marionette/tor_browser_tests/test_dom-objects-enumeration.py
index c020fc0..66fc8be 100644
--- a/marionette/tor_browser_tests/test_dom-objects-enumeration.py
+++ b/marionette/tor_browser_tests/test_dom-objects-enumeration.py
@@ -753,9 +753,11 @@ class Test(testsuite.TorBrowserTest):
 
     def test_dom_objects_enumeration(self):
         expectedObjects = self.expectedObjects
+        if self.get_version() >= 77 and self.is_early_beta_or_earlier():
+            # https://bugzilla.mozilla.org/show_bug.cgi?id=1632143
+            expectedObjects.remove("content")
         if self.get_version() >= 80:
             expectedObjects = expectedObjects.union({"AggregateError", "FinalizationRegistry", "WeakRef"})
-            expectedObjects.remove("content")
         if self.get_version() >= 82:
             expectedObjects = expectedObjects.union({"MediaMetadata","MediaSession","Sanitizer"})
         if self.get_version() >= 83 and self.is_early_beta_or_earlier():





More information about the tbb-commits mailing list