/*
* Test for Bug 809290.
*
* This test used to check that the referrer was the entry settings object.
* Due to spec changes, we now need to check that the referrer is the incumbent
* settings object.
*/
SimpleTest.waitForExplicitFinish();
var gNotifyCount = 0; varbase = window.location.href.replace(/test_bug.*/, '');
function notifyReferrer(referrer) {
++gNotifyCount;
if (gNotifyCount == 1) {
is(referrer, base + 'file_bug809290_b1.html', "Referrer should come from the incumbent script settings object (1)");
document.getElementById('ifr').setAttribute('src', 'file_bug809290_b2.html');
} else {
is(gNotifyCount, 2, "notify count");
is(referrer, base + 'file_bug809290_b2.html', "Referrer should come from the the incumbent script settings object (2)");
SimpleTest.finish();
}
}
function go() { var ifr = document.getElementById('ifr');
ifr.onload = null;
ifr.contentWindow.innerLoad();
}
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.