WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
223728
WKContentRuleList first-party should include other subdomains of the current registrable domain
https://bugs.webkit.org/show_bug.cgi?id=223728
Summary
WKContentRuleList first-party should include other subdomains of the current ...
Alex Christensen
Reported
2021-03-24 20:57:07 PDT
WKContentRuleList first-party should include other subdomains of the current registrable domain
Attachments
Patch
(5.73 KB, patch)
2021-03-24 20:57 PDT
,
Alex Christensen
no flags
Details
Formatted Diff
Diff
Patch
(5.64 KB, patch)
2021-03-25 08:04 PDT
,
Alex Christensen
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Alex Christensen
Comment 1
2021-03-24 20:57:32 PDT
Created
attachment 424215
[details]
Patch
Alex Christensen
Comment 2
2021-03-24 20:57:35 PDT
<
rdar://problem/71912579
>
John Wilander
Comment 3
2021-03-24 21:28:26 PDT
Comment on
attachment 424215
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=424215&action=review
r=me with a requested change.
> Source/WebCore/loader/ResourceLoadInfo.cpp:131 > + return RegistrableDomain(mainDocumentURL) != RegistrableDomain(resourceURL);
You should be able to use RegistrableDomain::matches(const URL& url) here which is faster than creating two RegistrableDomain objects.
Alex Christensen
Comment 4
2021-03-25 08:04:28 PDT
Created
attachment 424244
[details]
Patch
John Wilander
Comment 5
2021-03-25 08:15:01 PDT
Comment on
attachment 424244
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=424244&action=review
> Source/WebCore/loader/ResourceLoadInfo.cpp:129 > + return !RegistrableDomain(mainDocumentURL).matches(resourceURL);
I would have kept the comparison of the two hosts. Something like return !(mainHost == otherHost || RD(mainURL).matches(otherURL)).
EWS
Comment 6
2021-03-25 08:30:38 PDT
Committed
r275035
: <
https://commits.webkit.org/r275035
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 424244
[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