зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1577616 [wpt PR 18757] - Fix CSP frame-ancestors wpt tests., a=testonly
Automatic update from web-platform-tests
Fix CSP frame-ancestors wpt tests.
These tests were broken by
38be30e734
.
Bug: 759184
Change-Id: I39a9bc3da1d5a955975ce35a3201613c4efba010
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1776600
Reviewed-by: Robert Ma <robertma@chromium.org>
Commit-Queue: Lucas Gadani <lfg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#691836}
--
wpt-commits: df282228c4a063651299131cb246b71d8c71b3d6
wpt-pr: 18757
This commit is contained in:
Родитель
a1021505d3
Коммит
d309278598
|
@ -26,7 +26,7 @@ window.addEventListener("message", function (e) {
|
|||
window.parent.postMessage(e.data, "*");
|
||||
else
|
||||
if (e.data.type === 'test_result')
|
||||
endTest(e.data.failed, "Inner IFrame msg: " + e.data.msg);
|
||||
endTest(e.data.failed, "Inner IFrame msg: " + e.data.message);
|
||||
});
|
||||
|
||||
function injectNestedIframe(policy, parent, child, expectation, isSandboxed) {
|
||||
|
@ -67,6 +67,7 @@ function iframeLoaded(expectBlock) {
|
|||
var failed = true;
|
||||
var message = "";
|
||||
try {
|
||||
ev.target.contentWindow.location.href;
|
||||
if (expectBlock) {
|
||||
message = "The IFrame should have been blocked (or cross-origin). It wasn't.";
|
||||
failed = true;
|
||||
|
|
Загрузка…
Ссылка в новой задаче