Bug 1406278: Part 4 - Use subject principal as triggering principal in <iframe>/<frame> "src" attribute r=bz

MozReview-Commit-ID: AgxZmfRvfTR
This commit is contained in:
Kris Maglione
2017-10-04 22:59:44 -07:00
parent afc961cdba
commit c2386ba786
11 changed files with 98 additions and 28 deletions

View File

@@ -42,7 +42,7 @@ function runTest2() {
wrappedFrame.addEventListener("mozbrowserloadend", function onloadend(e) {
ok(wrappedFrame.contentWindow.document.location.href.endsWith(HTTP_URI),
"http: URI navigation should be allowed");
wrappedFrame.src = DATA_URI
frame.src = DATA_URI
// wait for 1000ms and check that the data: URI did not load
setTimeout(function () {
@@ -51,7 +51,7 @@ function runTest2() {
"data: URI navigation should be blocked");
SimpleTest.finish();
}, 1000);
});
}, {once: true});
}
addEventListener('testready', runTest1);