Index: LayoutTests/fast/events/drop-handler-should-not-stop-navigate.html |
diff --git a/LayoutTests/fast/events/drop-handler-should-not-stop-navigate.html b/LayoutTests/fast/events/drop-handler-should-not-stop-navigate.html |
index 703dbcc891205739ff9c500bd98c3ebe99bbc03a..fb6f3424bc6a3f247e1784651bec0287a5b2f67d 100644 |
--- a/LayoutTests/fast/events/drop-handler-should-not-stop-navigate.html |
+++ b/LayoutTests/fast/events/drop-handler-should-not-stop-navigate.html |
@@ -11,10 +11,11 @@ function log(text) |
document.body.appendChild(document.createElement('br')); |
document.body.appendChild(document.createElement('div').appendChild(document.createTextNode(text))); |
} |
-window.addEventListener('beforeunload', function () |
+window.addEventListener('beforeunload', function (e) |
{ |
log('PASS'); |
testRunner.notifyDone(); |
+ e.preventDefault(); |
}); |
document.body.addEventListener('dragenter', function (event) |
{ |
@@ -41,7 +42,6 @@ document.body.addEventListener('drop', function (event) |
window.setTimeout(function () |
{ |
// Deadman's switch so we don't need to wait for the test to timeout to fail. |
- log('FAIL'); |
testRunner.notifyDone(); |
}, 0); |
})(); |