-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix "blocked-iframe-are-cross-origin.html".
Reported by antoniosartori@, there was an error in the test: "blocked_iframe-are-cross-origin.html" In Javascript, lambda capture is done by reference. The reference was the loop 'variable'. As a result the second test case was run twice. The first test case couldn't work, because embedded enforcement do not apply to same-origin iframes. The patch fixes the test. [email protected] Bug: 1041376 Change-Id: Id5f223aa138470cb263eea5b0af9f616a314a374 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2218049 Reviewed-by: Arthur Sonzogni <[email protected]> Commit-Queue: Arthur Sonzogni <[email protected]> Cr-Commit-Position: refs/heads/master@{#774065}
- Loading branch information
1 parent
5cf5c99
commit 2e45d16
Showing
2 changed files
with
46 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
content-security-policy/embedded-enforcement/support/executor.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<script> | ||
window.onmessage = event => eval(event.data); | ||
</script> |