From 65f2fbb9ff845a61793cafb05d8133be3aa8ed42 Mon Sep 17 00:00:00 2001 From: Frederik Braun Date: Mon, 13 Dec 2021 12:57:10 +0000 Subject: [PATCH] Bug 1744924 - Part 2: Adjust iframe sandbox test r=ckerschb Differential Revision: https://phabricator.services.mozilla.com/D133626 --- .../iframesandbox/test_top_navigation_by_user_activation.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docshell/test/iframesandbox/test_top_navigation_by_user_activation.html b/docshell/test/iframesandbox/test_top_navigation_by_user_activation.html index e34bba637d77..b462c54d7b34 100644 --- a/docshell/test/iframesandbox/test_top_navigation_by_user_activation.html +++ b/docshell/test/iframesandbox/test_top_navigation_by_user_activation.html @@ -45,7 +45,7 @@ function waitForMessage(aCallback) { let url = "file_top_navigation_by_user_activation.html"; if (sameOrigin) { - url = "http://example.org/tests/docshell/test/iframesandbox/" + url; + url = `${location.origin}/tests/docshell/test/iframesandbox/${url}`; } let promise = waitForMessage((e) => {