Bug 1499397 - ServiceWorker tests should run with cookiePolicy 0, r=ehsan
authorAndrea Marchesini <amarchesini@mozilla.com>
Wed, 17 Oct 2018 07:37:53 +0200
changeset 500092 525a441d5dd383b2c106cfd7c8282249f9259aff
parent 500091 84f5f337b0a35c89ccc0dd7ac6735e873a2613f2
child 500093 3e2b52df8b24f0faf0b1a1f7a32cd8040e53e240
push id1864
push userffxbld-merge
push dateMon, 03 Dec 2018 15:51:40 +0000
treeherdermozilla-release@f040763d99ad [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersehsan
bugs1499397
milestone64.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1499397 - ServiceWorker tests should run with cookiePolicy 0, r=ehsan
dom/serviceworkers/test/mochitest.ini
--- a/dom/serviceworkers/test/mochitest.ini
+++ b/dom/serviceworkers/test/mochitest.ini
@@ -1,10 +1,16 @@
 [DEFAULT]
-
+# Mochitests are executed in iframes. Several ServiceWorker tests use iframes
+# too. The result is that we have nested iframes. CookieBehavior 4
+# (BEHAVIOR_REJECT_TRACKER) doesn't grant storage access permission to nested
+# iframes because trackers could use them to follow users across sites. Let's
+# use cookieBehavior 0 (BEHAVIOR_ACCEPT) here.
+prefs =
+  network.cookie.cookieBehavior=0
 skip-if = serviceworker_e10s
 support-files =
   worker.js
   worker2.js
   worker3.js
   fetch_event_worker.js
   parse_error_worker.js
   activate_event_error_worker.js