Bug 38550 - The sticky-notes example misbehaves when openDatabase() fails
Summary: The sticky-notes example misbehaves when openDatabase() fails
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Dumitru Daniliuc
Depends on:
Reported: 2010-05-04 15:08 PDT by Dumitru Daniliuc
Modified: 2010-05-04 18:23 PDT (History)
3 users (show)

See Also:

patch (2.43 KB, patch)
2010-05-04 15:41 PDT, Dumitru Daniliuc
darin: review+
dumi: commit-queue-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dumitru Daniliuc 2010-05-04 15:08:59 PDT
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.
Comment 1 Dumitru Daniliuc 2010-05-04 15:41:31 PDT
Created attachment 55064 [details]
Comment 2 Dumitru Daniliuc 2010-05-04 18:22:50 PDT
Landed as r58795.