43 let prefBranch =
Cc[
"@mozilla.org/preferences-service;1"].
45 prefBranch.setBoolPref(
"browser.privatebrowsing.keep_current_session",
true);
46 let
pb =
Cc[
"@mozilla.org/privatebrowsing;1"].
49 const kTestURL =
"https://example.com/";
52 let
tab = gBrowser.addTab();
53 gBrowser.selectedTab =
tab;
54 let
browser = gBrowser.getBrowserForTab(tab);
55 browser.addEventListener(
"load",
function() {
56 browser.removeEventListener(
"load",
arguments.callee,
true);
58 pb.privateBrowsingEnabled =
true;
59 pb.privateBrowsingEnabled =
false;
62 browser.addEventListener(
"load",
function() {
63 browser.removeEventListener(
"load",
arguments.callee,
true);
65 is(browser.contentWindow.location, kTestURL,
66 "The original SSL page should be loaded at this stage");
68 gBrowser.removeTab(tab);
69 prefBranch.clearUserPref(
"browser.privatebrowsing.keep_current_session");
73 executeSoon(
function(){
74 browser.contentWindow.location = kTestURL;
77 browser.contentWindow.location = kTestURL;
getService(Ci.sbIFaceplateManager)
return!aWindow arguments!aWindow arguments[0]