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 ] Fix for a renderer crash
HTMLPlugInElement::PluginWrapper() can be called for a plugin element that does not have a document node frame. This causes a crash in MimeHandlerViewContainerManager::Get() which expects the passed |render_frame_| to be nullptr. Bug: 966371 Change-Id: I6ba558efdf416f421d1a540f947d79203b0bc985 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1627267 Reviewed-by: Ehsan Karamad <ekaramad@chromium.org> Reviewed-by: James MacLean <wjmaclean@chromium.org> Commit-Queue: Ehsan Karamad <ekaramad@chromium.org> Cr-Commit-Position: refs/heads/master@{#662741}
- Loading branch information
1 parent
d36d34d
commit 1e1bf5b
Showing
3 changed files
with
31 additions
and
1 deletion.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
chrome/test/data/extensions/api_test/mime_handler_view/adopt_node_in_onload_no_crash.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,12 @@ | ||
<div id="container"> | ||
<object id="object" type="application/ecmascript" onload="load_handler()"><iframe id="iframe"></iframe></object> | ||
<script> | ||
function load_handler() { | ||
iframe.contentDocument.adoptNode(container); | ||
} | ||
function content_load_handler() { | ||
object.width = 50; | ||
} | ||
document.addEventListener("DOMContentLoaded", content_load_handler); | ||
</script> | ||
</div> |
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