Skip to content

Commit

Permalink
Disallow displaying PDFs in sandboxed iframes.
Browse files Browse the repository at this point in the history
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
farre authored and moz-wptsync-bot committed Nov 13, 2024
1 parent 7402d36 commit d060b07
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
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>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<iframe src="sandbox.pdf"></iframe>

0 comments on commit d060b07

Please sign in to comment.