/** Test for Bug 505915 **/
window.addEventListener("message", function () {
ok(false, "should not receive message");
});
function go() { var ifr = $('ifr');
try {
// NB: the contentDocument getter now returns null for cross-origin
// frames, so use SpecialPowers to get a security wrapper to the document. var xdoc = SpecialPowers.unwrap(SpecialPowers.wrap(ifr).contentDocument)
document.createTreeWalker(xdoc, 0, null);
ok(false, "should have thrown a security exception");
} catch (e) {
ok(/TypeError: Document.createTreeWalker: Argument 1 does not implement interface Node/.test(e), "threw a binding exception instead of an invalid child exception");
}
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.