-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disallow displaying PDFs in sandboxed iframes.
Differential Revision: https://phabricator.services.mozilla.com/D227826 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1724924 gecko-commit: 7eaef5ce1448a299b5b778eb1b2c74f6cd974c47 gecko-reviewers: dom-core, sefeng
- Loading branch information
1 parent
7402d36
commit d060b07
Showing
2 changed files
with
14 additions
and
0 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
html/semantics/embedded-content/the-iframe-element/iframe_sandbox_iframe_pdf_viewer.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,13 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<meta charset="utf-8"> | ||
<title>Sandbox: Block plugins inside iframe with sandbox attribute</title> | ||
|
||
<!-- | ||
https://github.com/whatwg/html/issues/3958 | ||
https://github.com/whatwg/html/pull/6946 | ||
--> | ||
|
||
<link rel="mismatch" href="support/iframe_sandbox_iframe_pdf_viewer.html"> | ||
<iframe sandbox src="support/sandbox.pdf"></iframe> | ||
</html> |
1 change: 1 addition & 0 deletions
1
...mantics/embedded-content/the-iframe-element/support/iframe_sandbox_iframe_pdf_viewer.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 @@ | ||
<iframe src="sandbox.pdf"></iframe> |