Bug 205095 - IndexedDB: Introduce WebIDBServer class
Summary: IndexedDB: Introduce WebIDBServer class
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Sihui Liu
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2019-12-10 17:04 PST by Sihui Liu
Modified: 2019-12-11 13:48 PST (History)
13 users (show)

See Also:


Attachments
Patch (39.00 KB, patch)
2019-12-10 17:11 PST, Sihui Liu
no flags Details | Formatted Diff | Diff
Patch (44.31 KB, patch)
2019-12-10 17:17 PST, Sihui Liu
no flags Details | Formatted Diff | Diff
Patch (38.14 KB, patch)
2019-12-10 17:22 PST, Sihui Liu
no flags Details | Formatted Diff | Diff
Patch (38.28 KB, patch)
2019-12-11 08:59 PST, Sihui Liu
no flags Details | Formatted Diff | Diff
Patch (39.04 KB, patch)
2019-12-11 10:47 PST, Sihui Liu
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sihui Liu 2019-12-10 17:04:05 PST
We have InProcessIDBServer in WebKitLegacy, now we create WebIDBServer which owns IDBServer in WebKit. This is a step to https://bugs.webkit.org/show_bug.cgi?id=203690.
Comment 1 Sihui Liu 2019-12-10 17:11:38 PST
Created attachment 385322 [details]
Patch
Comment 2 Sihui Liu 2019-12-10 17:17:34 PST
Created attachment 385323 [details]
Patch
Comment 3 Sihui Liu 2019-12-10 17:22:05 PST
Created attachment 385325 [details]
Patch
Comment 4 Sihui Liu 2019-12-11 08:59:15 PST
Created attachment 385397 [details]
Patch
Comment 5 Alex Christensen 2019-12-11 09:20:40 PST
Comment on attachment 385397 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=385397&action=review

> Source/WebKit/NetworkProcess/IndexedDB/WebIDBServer.h:90
> +    RefPtr<WebCore::IDBServer::IDBServer> m_server;

This could be a Ref.

> Source/WebKit/NetworkProcess/IndexedDB/WebIDBServer.h:91
> +    bool m_isSuspended { false };

This could be wrapped in #if !ASSERT_DISABLED
Not too important, though.
Comment 6 Sihui Liu 2019-12-11 10:14:45 PST
(In reply to Alex Christensen from comment #5)
> Comment on attachment 385397 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=385397&action=review
> 
> > Source/WebKit/NetworkProcess/IndexedDB/WebIDBServer.h:90
> > +    RefPtr<WebCore::IDBServer::IDBServer> m_server;
> 
> This could be a Ref.

Sure.

>
> > Source/WebKit/NetworkProcess/IndexedDB/WebIDBServer.h:91
> > +    bool m_isSuspended { false };
> 
> This could be wrapped in #if !ASSERT_DISABLED
> Not too important, though.

I was meant to use this for early return in WebIDBServer::suspend. Will add that!
Comment 7 Sihui Liu 2019-12-11 10:47:44 PST
Created attachment 385407 [details]
Patch
Comment 8 WebKit Commit Bot 2019-12-11 13:47:52 PST
Comment on attachment 385407 [details]
Patch

Clearing flags on attachment: 385407

Committed r253393: <https://trac.webkit.org/changeset/253393>
Comment 9 WebKit Commit Bot 2019-12-11 13:47:55 PST
All reviewed patches have been landed.  Closing bug.
Comment 10 Radar WebKit Bug Importer 2019-12-11 13:48:20 PST
<rdar://problem/57851867>