[Webkit-unassigned] [Bug 40655] New: Database access in worker threads results in notifications being posted from worker threads

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jun 15 23:04:41 PDT 2010


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

           Summary: Database access in worker threads results in
                    notifications being posted from worker threads
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Macintosh
        OS/Version: Mac OS X 10.6
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKit Misc.
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: mrowe at apple.com
                CC: beidson at apple.com, dimich at chromium.org,
                    ericu at chromium.org


Database access from a worker thread results in WebDatabaseTrackerClient being called on a background thread.  dispatchDidModifyOrigin / dispatchDidModifyDatabase both post notifications using NSNotification.  This means that with workers these notifications are now being posted from background threads, rather than only from the main thread as in the past.  I don’t think it’s safe to post these notifications from a background thread since existing applications may be observing them and not expect their code to be invoked in background threads.  For sake of compatibility I’d think these need to be proxied over to the main thread to be posted.

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