From 827dbb1add2402e9dc2e5304b41eb43341ce0876 Mon Sep 17 00:00:00 2001 From: Andres Hernandez Date: Thu, 3 Jan 2013 11:54:03 -0600 Subject: [PATCH] Bug 823735 - Port test_cookies_privatebrowsing.js to the per-window PB APIs; r=jdm --- .../test/unit/test_cookies_privatebrowsing.js | 13 ------------- extensions/cookie/test/unit/xpcshell.ini | 1 - 2 files changed, 14 deletions(-) diff --git a/extensions/cookie/test/unit/test_cookies_privatebrowsing.js b/extensions/cookie/test/unit/test_cookies_privatebrowsing.js index 7a2852d384b3..27179f81700b 100644 --- a/extensions/cookie/test/unit/test_cookies_privatebrowsing.js +++ b/extensions/cookie/test/unit/test_cookies_privatebrowsing.js @@ -27,18 +27,6 @@ function do_run_test() { // Set up a profile. let profile = do_get_profile(); - // Make sure the private browsing service is available. - try { - Services.pb; - } catch (e) { - finish_test(); - return; - } - - // Tell the private browsing service to not attempt to restore window state. - Services.prefs.setBoolPref("browser.privatebrowsing.keep_current_session", - true); - // Test with cookies enabled. Services.prefs.setIntPref("network.cookie.cookieBehavior", 0); @@ -126,4 +114,3 @@ function do_run_test() { finish_test(); } - diff --git a/extensions/cookie/test/unit/xpcshell.ini b/extensions/cookie/test/unit/xpcshell.ini index dddb86842f97..a8c410fc6423 100644 --- a/extensions/cookie/test/unit/xpcshell.ini +++ b/extensions/cookie/test/unit/xpcshell.ini @@ -10,7 +10,6 @@ skip-if = perwindowprivatebrowsing [test_cookies_async_failure.js] [test_cookies_persistence.js] [test_cookies_privatebrowsing.js] -skip-if = perwindowprivatebrowsing [test_cookies_profile_close.js] [test_cookies_read.js] [test_cookies_sync_failure.js]