WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
213261
Check for inAppBrowserPrivacyEnabled flag in WebsiteDataStore::initializeAppBoundDomains is expensive and calls a non-static function WebsiteDataStore::parameters().
https://bugs.webkit.org/show_bug.cgi?id=213261
Summary
Check for inAppBrowserPrivacyEnabled flag in WebsiteDataStore::initializeAppB...
Kate Cheney
Reported
2020-06-16 14:34:11 PDT
appBoundDomains() is static, so initializing it should not rely on non-static functions, like WebsiteDataStore::parameters(). Also the call to WebsiteDataStore::parameters() is expensive and unnecessary when we really only need to check the value of one flag.
Attachments
Patch
(12.62 KB, patch)
2020-06-16 14:59 PDT
,
Kate Cheney
no flags
Details
Formatted Diff
Diff
Patch for landing
(12.62 KB, patch)
2020-06-16 15:21 PDT
,
Kate Cheney
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Kate Cheney
Comment 1
2020-06-16 14:34:36 PDT
<
rdar://problem/64317084
>
Kate Cheney
Comment 2
2020-06-16 14:59:53 PDT
Created
attachment 402043
[details]
Patch
Brent Fulgham
Comment 3
2020-06-16 15:11:54 PDT
Comment on
attachment 402043
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=402043&action=review
> Source/WebKit/UIProcess/WebsiteData/Cocoa/WebsiteDataStoreCocoa.mm:455 > + RunLoop::main().dispatch([this, protectedThis = makeRef(*this), completionHandler = WTFMove(completionHandler)] () mutable {
I think we could just WTFMove(protectedThis).
Kate Cheney
Comment 4
2020-06-16 15:21:35 PDT
Created
attachment 402047
[details]
Patch for landing
Kate Cheney
Comment 5
2020-06-16 15:22:13 PDT
(In reply to Brent Fulgham from
comment #3
)
> Comment on
attachment 402043
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=402043&action=review
> > > Source/WebKit/UIProcess/WebsiteData/Cocoa/WebsiteDataStoreCocoa.mm:455 > > + RunLoop::main().dispatch([this, protectedThis = makeRef(*this), completionHandler = WTFMove(completionHandler)] () mutable { > > I think we could just WTFMove(protectedThis).
Good call, thanks for the review!
EWS
Comment 6
2020-06-16 15:57:11 PDT
Committed
r263122
: <
https://trac.webkit.org/changeset/263122
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 402047
[details]
.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug