Bug 200821 - Many WebStorage classes do not need to subclass ThreadSafeRefCounted
Summary: Many WebStorage classes do not need to subclass ThreadSafeRefCounted
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit2 (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2019-08-16 12:40 PDT by Chris Dumez
Modified: 2019-08-16 13:44 PDT (History)
7 users (show)

See Also:


Attachments
Patch (19.40 KB, patch)
2019-08-16 12:47 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Dumez 2019-08-16 12:40:52 PDT
Many WebStorage classes do not need to subclass ThreadSafeRefCounted. They never get ref'd or deref'd.
Comment 1 Chris Dumez 2019-08-16 12:47:59 PDT
Created attachment 376518 [details]
Patch
Comment 2 Geoffrey Garen 2019-08-16 13:04:39 PDT
Comment on attachment 376518 [details]
Patch

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

r=me

> Source/WebKit/NetworkProcess/WebStorage/LocalStorageNamespace.cpp:54
> +        return std::make_unique<StorageArea>(isEphemeral == IsEphemeral::Yes ? nullptr : this, WTFMove(securityOrigin), m_quotaInBytes);

Should be makeUnique (here and elsewhere).
Comment 3 Chris Dumez 2019-08-16 13:06:21 PDT
(In reply to Geoffrey Garen from comment #2)
> Comment on attachment 376518 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=376518&action=review
> 
> r=me
> 
> > Source/WebKit/NetworkProcess/WebStorage/LocalStorageNamespace.cpp:54
> > +        return std::make_unique<StorageArea>(isEphemeral == IsEphemeral::Yes ? nullptr : this, WTFMove(securityOrigin), m_quotaInBytes);
> 
> Should be makeUnique (here and elsewhere).

Again, that makeUnique patch las not landed yet :)
Comment 4 WebKit Commit Bot 2019-08-16 13:43:52 PDT
Comment on attachment 376518 [details]
Patch

Clearing flags on attachment: 376518

Committed r248792: <https://trac.webkit.org/changeset/248792>
Comment 5 WebKit Commit Bot 2019-08-16 13:43:53 PDT
All reviewed patches have been landed.  Closing bug.
Comment 6 Radar WebKit Bug Importer 2019-08-16 13:44:17 PDT
<rdar://problem/54405490>