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

Unified Diff: third_party/WebKit/LayoutTests/storage/indexeddb/resources/persistence.js

Issue 1362953003: Fire window.onerror for uncaught IndexedDB errors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 3 years, 11 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: third_party/WebKit/LayoutTests/storage/indexeddb/resources/persistence.js
diff --git a/third_party/WebKit/LayoutTests/storage/indexeddb/resources/persistence.js b/third_party/WebKit/LayoutTests/storage/indexeddb/resources/persistence.js
index c3f278097355156c743b4fd804d5b0d25cd1f79a..50edc571cdca3b434fbcd0c29e642845b8ea6a74 100644
--- a/third_party/WebKit/LayoutTests/storage/indexeddb/resources/persistence.js
+++ b/third_party/WebKit/LayoutTests/storage/indexeddb/resources/persistence.js
@@ -12,7 +12,8 @@ function prepareDatabase()
var db = request.result;
var trans = request.transaction;
trans.abort();
- request.onerror = function() {
+ request.onerror = function(evt) {
+ evt.preventDefault();
db.close();
first();
};

Powered by Google App Engine
This is Rietveld 408576698