WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
200395
Resource Load Statistics: Re-introduce latch mode for subresource cookie blocking
https://bugs.webkit.org/show_bug.cgi?id=200395
Summary
Resource Load Statistics: Re-introduce latch mode for subresource cookie bloc...
John Wilander
Reported
2019-08-02 10:46:33 PDT
Back when we had a relaxation of cookie blocking 24 hours after first-party user interaction, we made sure cookie blocking could be turned on and off in subresource redirect chains. The 24 hour window is now long gone and we should simplify the cookie blocking so that once a subresource request is denied cookies, any subsequent redirect of that request will also be denied cookies, regardless of the classification status of the domains involved.
Attachments
Patch
(22.46 KB, patch)
2019-08-02 11:00 PDT
,
John Wilander
no flags
Details
Formatted Diff
Diff
Patch
(26.71 KB, patch)
2019-08-05 11:37 PDT
,
John Wilander
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2019-08-02 10:47:07 PDT
<
rdar://problem/53869611
>
John Wilander
Comment 2
2019-08-02 11:00:48 PDT
Created
attachment 375427
[details]
Patch
Darin Adler
Comment 3
2019-08-04 18:28:34 PDT
Comment on
attachment 375427
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=375427&action=review
> Source/WebKit/NetworkProcess/cocoa/NetworkDataTaskCocoa.mm:142 > + NSHTTPCookieStorage *storage = statelessCookieStorage(); > + [m_task _setExplicitCookieStorage:storage._cookieStorage];
Since we’re collapsing this, I don’t think the local variable adds anything any more. Could be a one liner instead. [m_task _setExplicitCookieStorage:statelessCookieStorage()._cookieStorage];
John Wilander
Comment 4
2019-08-05 11:03:59 PDT
(In reply to Darin Adler from
comment #3
)
> Comment on
attachment 375427
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=375427&action=review
> > > Source/WebKit/NetworkProcess/cocoa/NetworkDataTaskCocoa.mm:142 > > + NSHTTPCookieStorage *storage = statelessCookieStorage(); > > + [m_task _setExplicitCookieStorage:storage._cookieStorage]; > > Since we’re collapsing this, I don’t think the local variable adds anything > any more. Could be a one liner instead. > > [m_task > _setExplicitCookieStorage:statelessCookieStorage()._cookieStorage];
You're right. Will fix. I'm also going to rename NetworkDataTaskCocoa::applyCookieBlockingPolicy() to NetworkDataTaskCocoa::blockCookies() to make it clear at the call sites. At first, I wanted to stay with the more general "apply policy" to not have to touch it if we introduce more logic there. But now I think that's wrong. Readability wins.
John Wilander
Comment 5
2019-08-05 11:04:33 PDT
Thanks for the review, Darin. I'll assume you're OK with the function renaming I mention above.
John Wilander
Comment 6
2019-08-05 11:37:50 PDT
Created
attachment 375540
[details]
Patch
John Wilander
Comment 7
2019-08-05 11:39:44 PDT
The renaming ended up restructuring the code and I could remove some duplicate logging. So it's best to get another review.
John Wilander
Comment 8
2019-08-05 12:28:59 PDT
Orange bubbles are unrelated. The mac-debug tree seems red and the test failures on win have nothing to do with this code.
John Wilander
Comment 9
2019-08-05 14:03:17 PDT
Comment on
attachment 375540
[details]
Patch Thanks again, Darin!
WebKit Commit Bot
Comment 10
2019-08-05 14:33:58 PDT
Comment on
attachment 375540
[details]
Patch Clearing flags on attachment: 375540 Committed
r248273
: <
https://trac.webkit.org/changeset/248273
>
WebKit Commit Bot
Comment 11
2019-08-05 14:33:59 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.
Top of Page
Format For Printing
XML
Clone This Bug