forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ MimeHandlerView ] Do not load in sandboxed frame
This CL ensure that a frame-based MimeHandlerView does not load inside a sandboxed frame.; to this end, the following changes are made to the loading mechanism for MimeHandlerView: 1- Blink embedder is not asked for a MimeHandlerView if the document is sandboxed. 2- For frame navigation to MimeHandlerView MIME type where the HTML page is injected by the browser, MimeHandlerViewEmbedder will clear itself at commit time, if the embedder frame turns out to be sandboxed. 3- MimeHandlerViewContainerManager will load an empty page. Bug: 963641 Change-Id: Ib68be60042556a39e38d92f954201d0297631890 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1614282 Commit-Queue: Ehsan Karamad <ekaramad@chromium.org> Reviewed-by: James MacLean <wjmaclean@chromium.org> Reviewed-by: Kentaro Hara <haraken@chromium.org> Reviewed-by: Alex Moshchuk <alexmos@chromium.org> Reviewed-by: Ken Buchanan <kenrb@chromium.org> Cr-Commit-Position: refs/heads/master@{#664628}
- Loading branch information
1 parent
7697836
commit 71e3227
Showing
8 changed files
with
82 additions
and
8 deletions.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
chrome/test/data/extensions/api_test/mime_handler_view/test_sandboxed_frame.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,9 @@ | ||
<!doctype html> | ||
<iframe id="sandbox1" sandbox src="testEmbedded.csv"></iframe> | ||
<iframe id="sandbox2" sandbox src="test_embedded.html"></iframe> | ||
<iframe id="notsandboxed" src="testEmbedded.csv"></iframe> | ||
<script> | ||
function remove_frame(id) { | ||
document.getElementById(id).outerHTML = ""; | ||
} | ||
</script> |
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
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
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
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
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
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
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