Index: LayoutTests/fast/events/only-valid-drop-targets-receive-file-drop.html |
diff --git a/LayoutTests/fast/events/only-valid-drop-targets-receive-file-drop.html b/LayoutTests/fast/events/only-valid-drop-targets-receive-file-drop.html |
index 08cb537b48a75696b3a43bc13cc4597e3e3d87b9..0ef77a214e959e2ae284c3ddb91fd82e6a6b8f62 100644 |
--- a/LayoutTests/fast/events/only-valid-drop-targets-receive-file-drop.html |
+++ b/LayoutTests/fast/events/only-valid-drop-targets-receive-file-drop.html |
@@ -54,9 +54,10 @@ window.onload = function() |
testRunner.dumpAsText(); |
testRunner.waitUntilDone(); |
- window.addEventListener('beforeunload', function () { |
+ window.addEventListener('beforeunload', function (e) { |
if (!dropReceived) |
log('Drop not received'); |
+ e.preventDefault(); |
testRunner.notifyDone(); |
}); |