Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(244)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/plugins/update-plugin-after-detachment-crash.html

Issue 2560803002: Don't assume a FrameHost from FrameView. (Closed)
Patch Set: Patch Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <script src = "../../resources/testharness.js"></script>
2 <script src = "../../resources/testharnessreport.js"></script>
3 <script>
4 function bodyLoaded() {
5 // This will run post layout tasks synchronously from
6 // HTMLPluginElement::layoutPartForJSBindings() which will cause us to load
7 // the detached <embed> element. This test passes if it doesn't crash.
8 var element = document.createElement("object");
9 element.setCustomValidity("");
10
11 // Use testharness.js to prevent an -expected file.
12 test(function () {}, "Make sure we didn't crash");
13 }
14 function embedLoaded() {
15 var video = document.createElement("video");
16 video.poster = "foo";
17 iframe.srcdoc = "data:text/html,bar";
18 setTimeout(clearBody, 0);
19 }
20 function clearBody() {
21 embed.align = "right";
22 embed.height = "28";
23 embed.type = "foo";
24
25 // This will cause the iframe and embeds to detach and in doing so,
26 // reevaluate whether the parent document has finished loading, and since
27 // it has, call its load handler.
28 body.innerText = "";
29 }
30 </script>
31 <body onload="bodyLoaded()" id="body">
32 <embed id="embed" onload="embedLoaded()" src="foo"></embed>
33 <iframe id="iframe"></iframe>
34 </body>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/FrameView.cpp » ('j') | third_party/WebKit/Source/core/frame/FrameView.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698