[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor-browser/tor-browser-78.6.0esr-10.5-1] fixup! Bug 16620: Clear window.name when no referrer sent



commit 0523caa5191c3d976ff034c9ef621096079d89bf
Author: Alex Catarineu <acat@xxxxxxxxxxxxxx>
Date:   Fri Apr 3 21:23:10 2020 +0200

    fixup! Bug 16620: Clear window.name when no referrer sent
---
 docshell/test/mochitest/test_tor_bug16620.html | 5 ++---
 docshell/test/mochitest/tor_bug16620.html      | 2 +-
 docshell/test/mochitest/tor_bug16620_form.html | 2 +-
 3 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/docshell/test/mochitest/test_tor_bug16620.html b/docshell/test/mochitest/test_tor_bug16620.html
index f60a06711c17..46fff5a04711 100644
--- a/docshell/test/mochitest/test_tor_bug16620.html
+++ b/docshell/test/mochitest/test_tor_bug16620.html
@@ -13,8 +13,7 @@
 </head>
 <body>
 <a target="_blank" href="https://trac.torproject.org/projects/tor/ticket/16620";>Tor Bug 16620</a>
-<script type="application/javascript;version=1.7">
-
+<script>
 // ## Test constants
 const kTestPath = "/tests/docshell/test/mochitest/";
 const kLinkFile = "tor_bug16620.html";
@@ -156,7 +155,7 @@ window.addEventListener("message", function(aEvent) {
                                   noReferrerOnLink: noReferrerOnLink,
                                   noReferrerInMetaTag: noReferrerInMetaTag,
                                   resetInUnload: resetInUnload },
-                                aEvent.origin);
+                                  "*");
     } else if ("secondDocLoaded" == state) {
       // Process response from step two of the link-based tests.
       if (curTest.expectIsolation) {
diff --git a/docshell/test/mochitest/tor_bug16620.html b/docshell/test/mochitest/tor_bug16620.html
index a8e90502f1d1..26b8e406bbff 100644
--- a/docshell/test/mochitest/tor_bug16620.html
+++ b/docshell/test/mochitest/tor_bug16620.html
@@ -11,7 +11,7 @@
 <body>
 <a id="link" href="">secondDoc</a>
 
-<script type="application/javascript;version=1.7">
+<script>
 // Extract test state from our query string, defaulting to
 // "secondDocLoaded" to support use of this HTML content within
 // a data URI (where query strings are not supported).
diff --git a/docshell/test/mochitest/tor_bug16620_form.html b/docshell/test/mochitest/tor_bug16620_form.html
index 3b6e6c72cfc9..279f62e63fab 100644
--- a/docshell/test/mochitest/tor_bug16620_form.html
+++ b/docshell/test/mochitest/tor_bug16620_form.html
@@ -12,7 +12,7 @@
 </head>
 <body>
 
-<script type="application/javascript;version=1.7">
+<script>
 document.addEventListener("DOMContentLoaded", function () {
   addPostTarget();
 }, false);



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits