Bug 156826

Summary: Modern IDB (Workers): Remove IDBRequest/IDBOpenDBRequest's requirement to get an IDBServerConnection around
Product: WebKit Reporter: Brady Eidson <beidson>
Component: WebCore Misc.Assignee: Brady Eidson <beidson>
Status: RESOLVED FIXED    
Severity: Normal CC: achristensen, alecflett, commit-queue, jsbell
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 149117, 149953    
Attachments:
Description Flags
Patch v1 none

Brady Eidson
Reported 2016-04-20 17:13:56 PDT
Modern IDB (Workers): Remove IDBRequest/IDBOpenDBRequest's requirement to get an IDBServerConnection around This shuffles around how the Connection is accessed and adds some "main thread only" ASSERTs. This is the first in a series of baby steps removing this dependency from all IDBFoo* objects
Attachments
Patch v1 (20.14 KB, patch)
2016-04-20 17:20 PDT, Brady Eidson
no flags
Brady Eidson
Comment 1 2016-04-20 17:20:19 PDT
Created attachment 276874 [details] Patch v1
Alex Christensen
Comment 2 2016-04-20 21:04:49 PDT
Comment on attachment 276874 [details] Patch v1 r=me. Do we really need to put "maybe" before the names of all these functions? Doesn't just the fact that they return a RefPtr instead of a Ref imply that they could return nullptr?
Brady Eidson
Comment 3 2016-04-20 21:36:51 PDT
(In reply to comment #2) > Comment on attachment 276874 [details] > Patch v1 > > r=me. > Do we really need to put "maybe" before the names of all these functions? > Doesn't just the fact that they return a RefPtr instead of a Ref imply that > they could return nullptr? Back in the days before Ref<>, "maybe" denoted "known to possibly fail" I think it's still common enough that it's worth doing. But, don't worry - the maybe's will go away and revert back to normal "create" once this code push is done!
WebKit Commit Bot
Comment 4 2016-04-20 21:41:59 PDT
Comment on attachment 276874 [details] Patch v1 Clearing flags on attachment: 276874 Committed r199804: <http://trac.webkit.org/changeset/199804>
WebKit Commit Bot
Comment 5 2016-04-20 21:42:03 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.