Pier Angelo Vendrame pushed to branch base-browser-128.8.0esr-14.5-1 at The Tor 
Project / Applications / Tor Browser


Commits:
9492cb87 by Julian Descottes at 2025-03-06T10:46:29+01:00
Bug 1917556 - [marionette] Fix Mn tests with Python 3.12 
r=webdriver-reviewers,whimboo

Differential Revision: https://phabricator.services.mozilla.com/D221448
- - - - -
29861015 by Beatriz Rizental at 2025-03-06T10:47:06+01:00
fixup! Base Browser's .mozconfigs.

- - - - -
63d64ecc by Beatriz Rizental at 2025-03-06T10:47:15+01:00
BB 43535: Enable tests

- - - - -


5 changed files:

- mozconfig-linux-aarch64-dev
- mozconfig-linux-x86_64-dev
- mozconfig-macos-dev
- testing/marionette/harness/marionette_harness/runner/base.py
- testing/specialpowers/api.js


Changes:

=====================================
mozconfig-linux-aarch64-dev
=====================================
@@ -16,3 +16,5 @@ ac_add_options --disable-install-strip
 
 ac_add_options --with-base-browser-version=dev-build
 ac_add_options --disable-base-browser-update
+
+ac_add_options --enable-tests


=====================================
mozconfig-linux-x86_64-dev
=====================================
@@ -19,3 +19,5 @@ ac_add_options --disable-base-browser-update
 
 # Let's make sure no preference is enabling either Adobe's or Google's CDM.
 ac_add_options --disable-eme
+
+ac_add_options --enable-tests


=====================================
mozconfig-macos-dev
=====================================
@@ -19,3 +19,5 @@ ac_add_options --disable-update-agent
 
 # Let's make sure no preference is enabling either Adobe's or Google's CDM.
 ac_add_options --disable-eme
+
+ac_add_options --enable-tests


=====================================
testing/marionette/harness/marionette_harness/runner/base.py
=====================================
@@ -222,7 +222,7 @@ class MarionetteTestResult(StructuredTestResult, 
TestResultCollection):
                 self.logger.info("END LOG:")
 
     def stopTest(self, *args, **kwargs):
-        unittest._TextTestResult.stopTest(self, *args, **kwargs)
+        unittest.TextTestResult.stopTest(self, *args, **kwargs)
         if self.marionette.check_for_crash():
             # this tells unittest.TestSuite not to continue running tests
             self.shouldStop = True


=====================================
testing/specialpowers/api.js
=====================================
@@ -40,6 +40,18 @@ this.specialpowers = class extends ExtensionAPI {
         uri,
         resProto.ALLOW_CONTENT_ACCESS
       );
+    } else {
+      // This is a hack!
+      // For some reason, this specific substituion has an extra `/` in the 
path.
+      // This is a workaround to fix it.
+      //
+      // TODO (#43545): Remove this once we have a proper fix.
+      let uri = resProto.getSubstitution("testing-common");
+      resProto.setSubstitution(
+        "testing-common",
+        Services.io.newURI(uri.spec.replace("file:////", "file:///")),
+        resProto.ALLOW_CONTENT_ACCESS
+      );
     }
 
     SpecialPowersParent.registerActor();



View it on GitLab: 
https://gitlab.torproject.org/tpo/applications/tor-browser/-/compare/cb0e9508413765ae7e4fcc006c434a4e20085ebf...63d64ecc1c469b7b3aa8679162af0cad6fa559f3

-- 
View it on GitLab: 
https://gitlab.torproject.org/tpo/applications/tor-browser/-/compare/cb0e9508413765ae7e4fcc006c434a4e20085ebf...63d64ecc1c469b7b3aa8679162af0cad6fa559f3
You're receiving this email because of your account on gitlab.torproject.org.


_______________________________________________
tbb-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to