function test_nested_frames() {
SpecialPowers.pushPrefEnv({"set": [["dom.disable_open_during_load", true]]}, test_nested_frames2);
}
function test_nested_frames2() {
// Grandchild will use this name to refer to the current window:
window.name = "parent260264";
if (tests[0]) {
tests[0].setup(function() {makeIframe(tests[0].event);});
} else {
ok(false, "There should have run 8 tests here");
SimpleTest.finish();
}
}
function should_have_blocked(popup) {
ok(!popup, "popup should have been blocked");
}
function should_not_have_blocked(popup) {
ok(popup, "popup should not have been blocked");
}
/**
* The example_priv (DENY_ACTION) parameter controls whether or not the child frame has
* popup clearance. Neither the top window nor the grandchild frame have
* this clearance. The point of these tests is to make sure the child's
* clearance (or lack thereof) is properly considered when opening a popup
* from the grandchild.
*/
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.