[Webkit-unassigned] [Bug 157184] New: [iOS] Make Database::close() non-blocking

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Apr 29 09:35:42 PDT 2016


            Bug ID: 157184
           Summary: [iOS] Make Database::close() non-blocking
    Classification: Unclassified
           Product: WebKit
           Version: WebKit Local Build
          Hardware: iOS
                OS: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKit Misc.
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: dbates at webkit.org

We should make Database::close() non-blocking. On iOS we depend on it blocking until it closes a database as part of closing all databases (by calling DatabaseTracker::closeAllDatabases()) in our process assertion expiration handler. Specifically we depend on Database::close() blocking so as to prevent returning from the process assertion expiration handler before all databases are closed as the process will be suspended immediately on completion of the process assertion expiration handler.

In WebKit1 the logic for the process expiration handler happens in -[WebDatabaseManager startBackgroundTask], <http://trac.webkit.org/browser/trunk/Source/WebKit/mac/Storage/WebDatabaseManager.mm?rev=199309#L272>. In WebKit2 this happens in WebProcess::processWillSuspendImminently(), <http://trac.webkit.org/browser/trunk/Source/WebKit2/WebProcess/WebProcess.cpp?rev=199842#L1241>.

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160429/42d4def6/attachment-0001.html>

More information about the webkit-unassigned mailing list