40 let ss =
Cc[
"@mozilla.org/browser/sessionstore;1"].getService(
Ci.nsISessionStore);
42 let
tab = gBrowser.addTab();
43 let tabState =
JSON.parse(ss.getTabState(tab));
44 is(tabState.disallow ||
"",
"",
"Everything is allowed per default");
50 let
docShell = tab.linkedBrowser.docShell;
51 for (let attribute in docShell) {
52 if (/^allow([
A-Z].*)/.
test(attribute)) {
53 permissions.push(RegExp.$1);
54 docShell[attribute] =
false;
59 tabState =
JSON.parse(ss.getTabState(tab));
60 let
disallow = tabState.disallow.split(
",");
61 permissions.forEach(
function(
aName) {
62 ok(disallow.indexOf(
aName) > -1,
"Saved state of allow" +
aName);
67 gBrowser.removeTab(tab);