WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
235502
Add a WebShare policy quirk for Twitter
https://bugs.webkit.org/show_bug.cgi?id=235502
Summary
Add a WebShare policy quirk for Twitter
youenn fablet
Reported
2022-01-24 01:03:52 PST
Add a WebShare policy quirk for Twitter
Attachments
Patch
(5.00 KB, patch)
2022-01-24 02:07 PST
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Patch
(5.25 KB, patch)
2022-01-24 03:39 PST
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Patch for landing
(4.96 KB, patch)
2022-01-25 05:24 PST
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
youenn fablet
Comment 1
2022-01-24 01:04:33 PST
<
rdar://87944391
>
youenn fablet
Comment 2
2022-01-24 02:07:07 PST
Created
attachment 449793
[details]
Patch
youenn fablet
Comment 3
2022-01-24 03:39:42 PST
Created
attachment 449797
[details]
Patch
youenn fablet
Comment 4
2022-01-24 06:31:46 PST
Comment on
attachment 449797
[details]
Patch win failure unrelated
Chris Dumez
Comment 5
2022-01-24 11:38:30 PST
Comment on
attachment 449797
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=449797&action=review
r=me
> Source/WebCore/page/Quirks.cpp:89 > + return topPrivatelyControlledDomain(document.url().host().toString()) == "twitter.com";
Why not use RegistrableDomain instead of calling topPrivatelyControlledDomain() and having to deal with #ifdefs?
youenn fablet
Comment 6
2022-01-24 11:54:04 PST
(In reply to Chris Dumez from
comment #5
)
> Comment on
attachment 449797
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=449797&action=review
> > r=me > > > Source/WebCore/page/Quirks.cpp:89 > > + return topPrivatelyControlledDomain(document.url().host().toString()) == "twitter.com"; > > Why not use RegistrableDomain instead of calling > topPrivatelyControlledDomain() and having to deal with #ifdefs?
RegistrableDomain constructor is doing a little bit more work. The point on #ifdef is good though.
youenn fablet
Comment 7
2022-01-25 05:24:57 PST
Created
attachment 449920
[details]
Patch for landing
EWS
Comment 8
2022-01-25 06:10:14 PST
Committed
r288546
(
246378@main
): <
https://commits.webkit.org/246378@main
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 449920
[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