[Webkit-unassigned] [Bug 63891] New: unable to open a transaction to the database after changeVersion failure.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Jul 3 23:10:52 PDT 2011


           Summary: unable to open a transaction to the database after
                    changeVersion failure.
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Windows 7
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: Platform
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: jaebok.lee at gmail.com

On testing Web SQL Database, I found a problem.

I attached a test html file.
The test file is testing changeVersion method.

There is two changeVersion method calls.

The 1st call is wrong because the value of the first argument to the changeVersion() method exactly dows not matche the database's actual version.
The 2nd call is not wrong, but it return error message, "unable to open a transaction to the database"!!

So I debug the problem, And I found there is a problem performing rollback on 1st call.

    // Transaction Steps 3 - Peform preflight steps, jumping to the error callback if they fail
    if (m_wrapper && !m_wrapper->performPreflight(this)) {
        m_database->disableAuthorizer();    // <= this code is needed.
        m_database->enableAuthorizer();     // <= this code is needed. 

Reference url : http://www.w3.org/TR/webdatabase/#dom-database-sync-changeversion

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