Index: LayoutTests/storage/indexeddb/resources/transaction-complete-workers.js |
diff --git a/LayoutTests/storage/indexeddb/resources/transaction-complete-workers.js b/LayoutTests/storage/indexeddb/resources/transaction-complete-workers.js |
index 48f5731c1209131dce32b02d6bbd86beefcd5665..883667c95dc36f1574785978446b01775f94dca2 100644 |
--- a/LayoutTests/storage/indexeddb/resources/transaction-complete-workers.js |
+++ b/LayoutTests/storage/indexeddb/resources/transaction-complete-workers.js |
@@ -105,6 +105,11 @@ function errorHandler(e) |
transaction.onerror = unexpectedErrorCallback; |
transaction.onabort = unexpectedAbortCallback; |
transaction.oncomplete = errorTransactionCompleted; |
+ // We will cancel the error event here itself, |
+ // this will allow the transaction to complete. |
+ // Thus the event.preventDefault in the worker.onerror |
+ // is no longer required in this scenario. |
+ return true; |
} |
function errorTransactionCompleted() |