| Index: LayoutTests/http/tests/misc/adopt-iframe-src-attr-after-remove.html
|
| diff --git a/LayoutTests/http/tests/misc/adopt-iframe-src-attr-after-remove.html b/LayoutTests/http/tests/misc/adopt-iframe-src-attr-after-remove.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..56a30ec5eef77d7cff8911a5b755f7f06e96e767
|
| --- /dev/null
|
| +++ b/LayoutTests/http/tests/misc/adopt-iframe-src-attr-after-remove.html
|
| @@ -0,0 +1,23 @@
|
| +<!DOCTYPE html>
|
| +We pass if we don't crash under ASAN.
|
| +<iframe id=iframe src="../navigation/resources/blank.txt"></iframe>
|
| +<script>
|
| +if (window.testRunner) {
|
| + testRunner.dumpAsText();
|
| + testRunner.waitUntilDone();
|
| +}
|
| +
|
| +window.onload = function()
|
| +{
|
| + iframe.remove();
|
| + gc();
|
| +}
|
| +
|
| +document.addEventListener("DOMContentLoaded", function() {
|
| + setTimeout(function() {
|
| + document.adoptNode(iframe.attributes["src"]);
|
| + if (window.testRunner)
|
| + testRunner.notifyDone();
|
| + }, 0);
|
| +}, false);
|
| +</script>
|
|
|