[tbb-commits] [tor-browser/tor-browser-45.4.0esr-6.5-1] squash! Bug #13749.2: Regression tests for first-party isolation of cache

gk at torproject.org gk at torproject.org
Thu Oct 6 07:44:20 UTC 2016


commit cb2bd1de68d3ad252c665958616a53cb5aa35e38
Author: Arthur Edelstein <arthuredelstein at gmail.com>
Date:   Thu Sep 22 05:57:07 2016 +0000

    squash! Bug #13749.2: Regression tests for first-party isolation of cache
    
    Also regression tests for Bug 20043: Isolate SharedWorker script requests to first party
---
 netwerk/test/browser/browser.ini                     | 1 +
 netwerk/test/browser/browser_cacheFirstParty.js      | 2 +-
 netwerk/test/browser/thirdPartyChild.iframe.html     | 1 +
 netwerk/test/browser/thirdPartyChild.sharedworker.js | 1 +
 4 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/netwerk/test/browser/browser.ini b/netwerk/test/browser/browser.ini
index a78557b..93f05ed 100644
--- a/netwerk/test/browser/browser.ini
+++ b/netwerk/test/browser/browser.ini
@@ -15,6 +15,7 @@ support-files =
   thirdPartyChild.script.js
   thirdPartyChild.track.vtt
   thirdPartyChild.video.ogv
+  thirdPartyChild.sharedworker.js
   thirdPartyChild.worker.fetch.html
   thirdPartyChild.worker.js
   thirdPartyChild.worker.request.html
diff --git a/netwerk/test/browser/browser_cacheFirstParty.js b/netwerk/test/browser/browser_cacheFirstParty.js
index 7e66726..a5d7376 100644
--- a/netwerk/test/browser/browser_cacheFirstParty.js
+++ b/netwerk/test/browser/browser_cacheFirstParty.js
@@ -116,7 +116,7 @@ let privacyPref = "privacy.thirdparty.isolate",
                 "video.ogv", "track.vtt", "favicon.ico",
                 "fetch.html", "worker.fetch.html",
                 "request.html", "worker.request.html",
-                "import.js"];
+                "import.js", "worker.js", "sharedworker.js"];
 
 // __checkCachePopulation(isolate, numberOfDomains)__.
 // Check if the number of entries found in the cache for each
diff --git a/netwerk/test/browser/thirdPartyChild.iframe.html b/netwerk/test/browser/thirdPartyChild.iframe.html
index 56f6df2..7ff2be3 100644
--- a/netwerk/test/browser/thirdPartyChild.iframe.html
+++ b/netwerk/test/browser/thirdPartyChild.iframe.html
@@ -9,6 +9,7 @@
   xhr.open("GET", "http://example.net/browser/netwerk/test/browser/thirdPartyChild.xhr.html", true);
   xhr.send();
   var worker = new Worker("http://example.net/browser/netwerk/test/browser/thirdPartyChild.worker.js");
+  var sharedWorker = new SharedWorker("http://example.net/browser/netwerk/test/browser/thirdPartyChild.sharedworker.js");
 
   fetch("thirdPartyChild.fetch.html", {cache: "force-cache"} );
   fetch(new Request("thirdPartyChild.request.html"), {cache: "force-cache"} );
diff --git a/netwerk/test/browser/thirdPartyChild.sharedworker.js b/netwerk/test/browser/thirdPartyChild.sharedworker.js
new file mode 100644
index 0000000..b262fa1
--- /dev/null
+++ b/netwerk/test/browser/thirdPartyChild.sharedworker.js
@@ -0,0 +1 @@
+// dummy file



More information about the tbb-commits mailing list