[Webkit-unassigned] [Bug 25788] New: Reloading a page while a database transaction is in progress leaves the database locked.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu May 14 04:57:35 PDT 2009


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

           Summary: Reloading a page while a database transaction is in
                    progress leaves the database locked.
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: WebCore Misc.
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: benm at google.com


If the user navigates away from a page whilst a database transaction is in
progress, the database lock is never released and subsequent accesses to that
database fail.

This is what I think is happening:
- The transaction starts.
- Whilst the transaction is still executing, the user reloads the page.
- In the document::stopAllDatabases method, the database is stopped and the
database thread asked to die.
- The page reloads.
- The transaction eventually finishes executing and schedules it's next step in
the database thread. However the database thread was asked to die, and so is
about to complete, which means the next transaction step is never executed and
so the transaction is never committed or rolled back. So, the lock on the
database file is never released.

I have a patch to fix and a layout test to verify in the works, should be ready
soon.


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



More information about the webkit-unassigned mailing list