await waitForFinishedFrames(1);
isInaccessible(window0, "Should be able to navigate off-domain top by setting location.");
window0.close();
await cleanupWindows();
await waitForFinishedFrames(1);
isInaccessible(window1, "Should be able to navigate off-domain top by calling window.open.");
window1.close();
await cleanupWindows();
await waitForFinishedFrames(1);
isInaccessible(window2, "Should be able to navigate off-domain top by submitting form.");
window2.close();
await cleanupWindows();
await waitForFinishedFrames(1);
isInaccessible(window3, "Should be able to navigate off-domain top by targeted hyperlink.");
window3.close();
await cleanupWindows();
await testParent();
}
async function testParent() {
document.getElementById("frames").innerHTML = '';
await waitForFinishedFrames(1);
isAccessible(frames[0], "Should not be able to navigate off-domain parent by setting location.");
await cleanupWindows();
document.getElementById("frames").innerHTML = '';
await waitForFinishedFrames(1);
isAccessible(frames[0], "Should not be able to navigate off-domain parent by calling window.open.");
await cleanupWindows();
document.getElementById("frames").innerHTML = '';
await waitForFinishedFrames(1);
isAccessible(frames[0], "Should not be able to navigate off-domain parent by submitting form.");
await cleanupWindows();
document.getElementById("frames").innerHTML = '';
await waitForFinishedFrames(1);
isAccessible(frames[0], "Should not be able to navigate off-domain parent by targeted hyperlink.");
await cleanupWindows();
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 ist noch experimentell.