Bug 1309699 - Turn on the new pref in browser_thumbnails_bg_no_cookies_stored.js. r=ehsan, a=jcristau
☠☠ backed out by 688d16cc31ad ☠ ☠
authorJonathan Hao <jhao@mozilla.com>
Thu, 13 Oct 2016 08:10:00 -0400
changeset 428838 2a05cc73a28ad6b6ce4e4f87b83a9cc3c0a94396
parent 428837 b4314d810229e959aad4afc84e61b2d5ae21bc74
child 428839 fef39b29f34f5a247532f42563b245b30c94319e
push id33416
push userpaul@paul.cx
push dateMon, 24 Oct 2016 16:26:20 +0000
reviewersehsan, jcristau
bugs1309699
milestone50.0
Bug 1309699 - Turn on the new pref in browser_thumbnails_bg_no_cookies_stored.js. r=ehsan, a=jcristau
toolkit/components/thumbnails/test/browser_thumbnails_bg_no_cookies_stored.js
--- a/toolkit/components/thumbnails/test/browser_thumbnails_bg_no_cookies_stored.js
+++ b/toolkit/components/thumbnails/test/browser_thumbnails_bg_no_cookies_stored.js
@@ -1,14 +1,18 @@
 /* Any copyright is dedicated to the Public Domain.
  * http://creativecommons.org/publicdomain/zero/1.0/ */
 
 // check that if a page captured in the background attempts to set a cookie,
 // that cookie is not saved for subsequent requests.
 function* runTests() {
+  yield SpecialPowers.pushPrefEnv({
+    set: [["privacy.about_newtab_segragation.enabled", true]]
+  });
+
   let url = bgTestPageURL({
     setRedCookie: true,
     iframe: bgTestPageURL({ setRedCookie: true}),
     xhr: bgTestPageURL({ setRedCookie: true})
   });
   ok(!thumbnailExists(url), "Thumbnail file should not exist before capture.");
   yield bgCapture(url);
   ok(thumbnailExists(url), "Thumbnail file should exist after capture.");