WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
182698
Add C SPI for support of Website Data Store in Website Policies
https://bugs.webkit.org/show_bug.cgi?id=182698
Summary
Add C SPI for support of Website Data Store in Website Policies
Maureen Daum
Reported
2018-02-12 09:48:48 PST
Add SPI for Website Data Store in Website Policies for legacy WebKit.
Attachments
patch
(12.04 KB, patch)
2018-02-12 10:04 PST
,
Maureen Daum
no flags
Details
Formatted Diff
Diff
patch (with alphabetical sorting issue addressed)
(12.04 KB, patch)
2018-02-12 10:18 PST
,
Maureen Daum
no flags
Details
Formatted Diff
Diff
patch (referring to "C API" instead of "Legacy WebKit")
(13.04 KB, patch)
2018-02-12 13:06 PST
,
Maureen Daum
aestes
: review+
aestes
: commit-queue-
Details
Formatted Diff
Diff
patch
(13.11 KB, patch)
2018-02-13 17:39 PST
,
Maureen Daum
no flags
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
Maureen Daum
Comment 1
2018-02-12 09:49:49 PST
<
rdar://problem/37412008
>
Maureen Daum
Comment 2
2018-02-12 10:04:45 PST
Created
attachment 333602
[details]
patch
EWS Watchlist
Comment 3
2018-02-12 10:06:24 PST
Attachment 333602
[details]
did not pass style-queue: ERROR: Source/WebKit/UIProcess/API/C/WKWebsitePolicies.cpp:31: Alphabetical sorting problem. [build/include_order] [4] Total errors found: 1 in 9 files If any of these errors are false positives, please file a bug against check-webkit-style.
Maureen Daum
Comment 4
2018-02-12 10:18:22 PST
Created
attachment 333604
[details]
patch (with alphabetical sorting issue addressed)
Sam Weinig
Comment 5
2018-02-12 12:41:57 PST
From the patch, it looks like you mean "the C-SPI". Legacy WebKit is what we refer to the original "WebKit 1" framework and API as.
Maureen Daum
Comment 6
2018-02-12 12:56:59 PST
You're correct that I should be referring to "the C-SPI". Thanks for explaining what "Legacy WebKit" refers to!
Maureen Daum
Comment 7
2018-02-12 13:06:07 PST
Created
attachment 333623
[details]
patch (referring to "C API" instead of "Legacy WebKit")
Andy Estes
Comment 8
2018-02-13 14:29:04 PST
Comment on
attachment 333623
[details]
patch (referring to "C API" instead of "Legacy WebKit") View in context:
https://bugs.webkit.org/attachment.cgi?id=333623&action=review
> Source/WebKit/UIProcess/API/C/WKFramePolicyListener.cpp:54 > + RELEASE_ASSERT_WITH_MESSAGE(sessionID.isEphemeral() || sessionID == PAL::SessionID::defaultSessionID(), "WebsiteDataStore must be nil, default, or non-persistent.");
The wording here isn't quite right, since "default" and "non-persistent" apply to the data store's session, not the data store itself. Also, "nil" isn't the right term in C.
> Source/WebKit/UIProcess/API/C/WKFramePolicyListener.cpp:55 > + RELEASE_ASSERT_WITH_MESSAGE(toImpl(policyListenerRef)->isMainFrame(), "WebsiteDataStore must be nil for subframe navigations.");
Same comment about "nil".
> Source/WebKit/UIProcess/WebFrameListenerProxy.h:50 > + bool isMainFrame();
This should be const-qualified.
Maureen Daum
Comment 9
2018-02-13 17:31:30 PST
Comment on
attachment 333623
[details]
patch (referring to "C API" instead of "Legacy WebKit") View in context:
https://bugs.webkit.org/attachment.cgi?id=333623&action=review
>> Source/WebKit/UIProcess/API/C/WKFramePolicyListener.cpp:54 >> + RELEASE_ASSERT_WITH_MESSAGE(sessionID.isEphemeral() || sessionID == PAL::SessionID::defaultSessionID(), "WebsiteDataStore must be nil, default, or non-persistent."); > > The wording here isn't quite right, since "default" and "non-persistent" apply to the data store's session, not the data store itself. Also, "nil" isn't the right term in C.
Changed to "If WebsitePolicies specifies a WebsiteDataStore, the data store's session must be default or non-persistent."
>> Source/WebKit/UIProcess/API/C/WKFramePolicyListener.cpp:55 >> + RELEASE_ASSERT_WITH_MESSAGE(toImpl(policyListenerRef)->isMainFrame(), "WebsiteDataStore must be nil for subframe navigations."); > > Same comment about "nil".
Changed to "WebsitePolicies cannot specify a WebsiteDataStore for subframe navigations."
>> Source/WebKit/UIProcess/WebFrameListenerProxy.h:50 >> + bool isMainFrame(); > > This should be const-qualified.
Done.
Maureen Daum
Comment 10
2018-02-13 17:39:07 PST
Created
attachment 333754
[details]
patch
WebKit Commit Bot
Comment 11
2018-02-14 10:52:20 PST
Comment on
attachment 333754
[details]
patch Clearing flags on attachment: 333754 Committed
r228472
: <
https://trac.webkit.org/changeset/228472
>
WebKit Commit Bot
Comment 12
2018-02-14 10:52:22 PST
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.
Top of Page
Format For Printing
XML
Clone This Bug