| Index: third_party/WebKit/LayoutTests/fast/events/before-unload-returnValue.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/events/before-unload-returnValue.html b/third_party/WebKit/LayoutTests/fast/events/before-unload-returnValue.html
|
| index 979567c439a00997a5675087c56071152abe65f0..190cbc40530ec06e8ecc91aed681f4474806d511 100644
|
| --- a/third_party/WebKit/LayoutTests/fast/events/before-unload-returnValue.html
|
| +++ b/third_party/WebKit/LayoutTests/fast/events/before-unload-returnValue.html
|
| @@ -6,6 +6,13 @@
|
| if (window.testRunner)
|
| testRunner.setShouldStayOnPageAfterHandlingBeforeUnload(true);
|
|
|
| +// JavaScript onbeforeunload dialogs require a user gesture.
|
| +if (window.eventSender) {
|
| + eventSender.mouseMoveTo(5, 5);
|
| + eventSender.mouseDown();
|
| + eventSender.mouseUp();
|
| +}
|
| +
|
| window.onload = function() {
|
| window.location.href = "resources/does-not-exist.html";
|
| setTimeout(finishJSTest, 0);
|
|
|