Bug 38550

Summary: The sticky-notes example misbehaves when openDatabase() fails
Product: WebKit Reporter: Dumitru Daniliuc <dumi>
Component: New BugsAssignee: Dumitru Daniliuc <dumi>
Status: RESOLVED FIXED    
Severity: Normal CC: dglazkov, ericu, michaeln
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
patch darin: review+, dumi: commit-queue-

Dumitru Daniliuc
Reported 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.
Attachments
patch (2.43 KB, patch)
2010-05-04 15:41 PDT, Dumitru Daniliuc
darin: review+
dumi: commit-queue-
Dumitru Daniliuc
Comment 1 2010-05-04 15:41:31 PDT
Dumitru Daniliuc
Comment 2 2010-05-04 18:22:50 PDT
Landed as r58795.
Note You need to log in before you can comment on or make changes to this bug.