[Webkit-unassigned] [Bug 28417] New: openDatabase() with empty version sets db version up incorrectly

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Aug 17 17:55:29 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=28417

           Summary: openDatabase() with empty version sets db version up
                    incorrectly
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Mac OS X 10.5
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: New Bugs
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: ian at hixie.ch


The following code should throw an exception on the second openDatabase() call,
but doesn't:

  var n = 'test ' + new Date();
  var db1 = openDatabase(n, '', '', 0);
  var db2 = openDatabase(n, 'test', '', 0);


STEPS TO REPRODUCE
1. Open http://software.hixie.ch/utilities/js/js-eval-window/
2. Paste the code above
3. Click the button

EXPECTED RESULTS
It should say "Error: INVALID_STATE_ERR: DOM Exception 11".

ACTUAL RESULTS
It says "undefined".

It works fine if the first openDatabase() call's second argument is not the
empty string.

This may be due to some confusion about the empty string argument to
openDatabase() -- per spec, the empty string sets the version to the empty
string if the database doesn't exist, but otherwise just accepts whatever
version is there.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list