When openDatabase() fails, the "New note" button should be disabled. Otherwise, the user can create new notes (no DB calls), but cannot delete them (call to db.transaction() fails).
Also, according to the spec, openDatabase() can throw a SECURITY_ERR if the database could not be opened -- an alert should be displayed in this case.
Created attachment 55064 [details]
Landed as r58795.