commit 3d53db66e8166d817968c9c4b7d6f496b44ec595
parent 542f1227ad8223d3d9704a06c858fffb13e547d7
Author: Beatriz Rizental <brizental@torproject.org>
Date: Wed, 5 Mar 2025 10:26:08 +0100
BB 43535: Enable tests
Diffstat:
1 file changed, 12 insertions(+), 0 deletions(-)
diff --git a/testing/specialpowers/api.js b/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();