43 let
pb =
Cc[
"@mozilla.org/privatebrowsing;1"].
45 let
ww =
Cc[
"@mozilla.org/embedcomp/window-watcher;1"].
47 let cp =
Cc[
"@mozilla.org/embedcomp/cookieprompt-service;1"].
52 function checkRememberOption(expectedDisabled,
callback) {
55 if (aTopic ===
"domwindowopened") {
56 ww.unregisterNotification(
this);
57 let
win = aSubject.QueryInterface(
Ci.nsIDOMWindow);
58 win.addEventListener(
"load",
function onLoad(
event) {
59 win.removeEventListener(
"load",
onLoad,
false);
61 executeSoon(
function() {
62 let
doc = win.document;
63 let remember = doc.getElementById(
"persistDomainAcceptance");
64 ok(remember,
"The remember checkbox should exist");
67 is(remember.getAttribute(
"disabled"),
"true",
68 "The checkbox should be disabled");
70 ok(!remember.hasAttribute(
"disabled"),
71 "The checkbox should not be disabled");
80 ww.registerNotification(observer);
83 const time = (
new Date(
"Jan 1, 2030")).getTime() / 1000;
98 const validIIDs = [Components.interfaces.nsISupports,
99 Components.interfaces.nsICookie,
100 Components.interfaces.nsICookie2];
101 for (var
i = 0;
i < validIIDs.length; ++
i)
102 if (iid == validIIDs[
i])
104 throw Components.results.NS_ERROR_NO_INTERFACE;
107 cp.cookieDialog(
window, cookie,
"mozilla.org", 10,
false, remember);
110 checkRememberOption(
false,
function() {
111 pb.privateBrowsingEnabled =
true;
112 checkRememberOption(
true,
function() {
113 pb.privateBrowsingEnabled =
false;
114 checkRememberOption(
false, finish);
function doc() browser.contentDocument
sbOSDControlService prototype QueryInterface
getService(Ci.sbIFaceplateManager)
_getSelectedPageStyle s i
_updateTextAndScrollDataForFrame aData
sbDeviceFirmwareAutoCheckForUpdate prototype observe