[Webkit-unassigned] [Bug 27836] New: Stale database version persists through browser refresh

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jul 30 07:50:26 PDT 2009


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

           Summary: Stale database version persists through browser
                    refresh
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Macintosh
        OS/Version: Mac OS X 10.5
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: New Bugs
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: mbolohan at google.com


Created an attachment (id=33778)
 --> (https://bugs.webkit.org/attachment.cgi?id=33778)
Script that demonstrates incorrect caching of database version

r46507

The version property of the database object is stale after invoking
changeVersion() and remains stale after a refresh. Killing webkit results in a
correct value for db.version after calling window.openDatabase().

I have attached a test script that demonstrates this behavior. The script
performs the following steps:

1) open a new database without a version restriction
2) check if the database version matches a predefined string constant (report
success if the versions match)
3) if the versions don't match, change the database version to the predefined
version constant
4) reload the page

Expected behavior:
- version doesn't match
- change version (alert changeVersion success and reload)
- version matches (alert success with version)

Observed behavior:
- version doesn't match
- change version (alert changeVersion success and reload)
- version doesn't match
- change version (alert Error: current version of the database and `oldVersion`
argument do not match)

Note: Killing webkit and loading the script results in a successful version
match.

-- 
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