Bug 128096

Summary: IDB: Cannot open new databases with the default version
Product: WebKit Reporter: Brady Eidson <beidson>
Component: WebKit2Assignee: Brady Eidson <beidson>
Status: RESOLVED FIXED    
Severity: Normal CC: alecflett, commit-queue, jsbell, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Bug Depends on:    
Bug Blocks: 124521    
Attachments:
Description Flags
Patch v1
none
Patch v2 - Fix style by making code read the true intention thorton: review+

Description Brady Eidson 2014-02-02 21:51:05 PST
IDB: Cannot open new databases with the default version
Comment 1 Brady Eidson 2014-02-02 21:53:24 PST
Created attachment 222959 [details]
Patch v1
Comment 2 WebKit Commit Bot 2014-02-02 21:54:37 PST
Attachment 222959 [details] did not pass style-queue:


ERROR: Source/WebCore/Modules/indexeddb/IDBDatabaseBackend.cpp:475:  Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons.  [readability/comparison_to_zero] [5]
Total errors found: 1 in 5 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Radar WebKit Bug Importer 2014-02-02 22:07:22 PST
<rdar://problem/15966919>
Comment 4 Brady Eidson 2014-02-02 22:08:01 PST
Created attachment 222960 [details]
Patch v2 - Fix style by making code read the true intention
Comment 5 Jon Lee 2014-02-02 22:13:53 PST
Comment on attachment 222959 [details]
Patch v1

View in context: https://bugs.webkit.org/attachment.cgi?id=222959&action=review

provisional r=me with the changes above.

> Source/WebCore/Modules/indexeddb/IDBDatabaseBackend.cpp:475
> +    if (isNewDatabase && version == 0) {

DefaultIntVersion?

> Source/WebKit2/ChangeLog:10
> +          have the magic âno version setâ version.

Pretty quotes are not so pretty here.
Comment 6 Brady Eidson 2014-02-02 22:15:22 PST
(In reply to comment #5)
> (From update of attachment 222959 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=222959&action=review
> 
> provisional r=me with the changes above.
> 
> > Source/WebCore/Modules/indexeddb/IDBDatabaseBackend.cpp:475
> > +    if (isNewDatabase && version == 0) {
> 
> DefaultIntVersion?

Yep, that's the intent.  Fixed.

> 
> > Source/WebKit2/ChangeLog:10
> > +          have the magic âno version setâ version.
> 
> Pretty quotes are not so pretty here.

Fixed locally.  Thanks!
Comment 7 Brady Eidson 2014-02-02 22:15:52 PST
http://trac.webkit.org/changeset/163287