Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(213)

Unified Diff: LayoutTests/storage/indexeddb/resources/transaction-complete-workers.js

Issue 607513002: Onerror return value handling in workers fixed as per HTML5 spec. Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added new layout tests and rebaselined two of them. Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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()

Powered by Google App Engine
This is Rietveld 408576698