| Index: third_party/WebKit/LayoutTests/fast/dom/Selection/selection-crash.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/dom/Selection/selection-crash.html b/third_party/WebKit/LayoutTests/fast/dom/Selection/selection-crash.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..c3af9c5eb5225f06d617a36ec9f0eea9228719a8
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/fast/dom/Selection/selection-crash.html
|
| @@ -0,0 +1,21 @@
|
| +<!DOCTYPE HTML>
|
| +<script src="../../../resources/testharness.js"></script>
|
| +<script src="../../../resources/testharnessreport.js"></script>
|
| +<button id="button"></button>
|
| +<iframe id="iframe"></iframe>
|
| +<script>
|
| +// This is a reproduction case for crbug.com/626750.
|
| +async_test((test) => {
|
| + button.addEventListener('focus', () => {
|
| + iframe.contentWindow.focus();
|
| + });
|
| +
|
| + button.addEventListener('blur', test.step_func_done(() => {
|
| + // This detaches <iframe>.
|
| + document.open();
|
| + assert_true(true, "Test did not crash.");
|
| + }));
|
| +
|
| + window.addEventListener('load', () => button.focus());
|
| +}, 'focusing on detached frame should not crash');
|
| +</script>
|
|
|