Chromium Code Reviews| Index: LayoutTests/editing/execCommand/window-open-insert-list-crash.html |
| diff --git a/LayoutTests/editing/execCommand/window-open-insert-list-crash.html b/LayoutTests/editing/execCommand/window-open-insert-list-crash.html |
| index c51bb88469d20a6fcae79475adbceef35f262dc2..10c71161984b96fae74dcbb987b815ab9776c26e 100644 |
| --- a/LayoutTests/editing/execCommand/window-open-insert-list-crash.html |
| +++ b/LayoutTests/editing/execCommand/window-open-insert-list-crash.html |
| @@ -18,8 +18,11 @@ document.body.appendChild(iframe); |
| function didReceiveMessage(event) |
| { |
| + if (iframe === null) |
| + return; |
| shouldBeEqualToString('event.data', 'FINISH'); |
| document.body.removeChild(iframe); |
| + iframe = null; |
|
dcheng
2014/10/20 18:35:14
Why is it important that this code only runs once
|
| testPassed('Did not crash.'); |
| window.finishJSTest(); |
| } |