summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/forms/saved-state-adoptNode-crash.html
blob: 79f6ec470a757ae50e497360e32fff3cb60eacfb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<select id="select">
    <option>Truffles</option>
</select>
<textarea id="textarea">
Marshmallows
</textarea>
<iframe id="iframe" src="data:text/html,"></iframe>
<input type="password" id="password" value="seikooC">
<script>
    if (window.testRunner) {
        testRunner.dumpAsText();
        testRunner.waitUntilDone();
    }

    var newDoc = document.getElementById("iframe").contentDocument;
    newDoc.adoptNode(document.getElementById("select"));
    newDoc.adoptNode(document.getElementById("textarea"));
    newDoc.adoptNode(document.getElementById("password"));
    location.href="data:text/html,SUCCESS<script>if (window.testRunner) testRunner.notifyDone()</scr" + "ipt>";
</script>