| Summary: | Add a WebShare policy quirk for Twitter | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | youenn fablet <youennf> | ||||||||
| Component: | WebCore Misc. | Assignee: | youenn fablet <youennf> | ||||||||
| Status: | RESOLVED FIXED | ||||||||||
| Severity: | Normal | CC: | cdumez, marcos, thorton, webkit-bug-importer | ||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||
| Version: | WebKit Nightly Build | ||||||||||
| Hardware: | Unspecified | ||||||||||
| OS: | Unspecified | ||||||||||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=243088 | ||||||||||
| Bug Depends on: | |||||||||||
| Bug Blocks: | 235590 | ||||||||||
| Attachments: |
|
||||||||||
|
Description
youenn fablet
2022-01-24 01:03:52 PST
Created attachment 449793 [details]
Patch
Created attachment 449797 [details]
Patch
Comment on attachment 449797 [details]
Patch
win failure unrelated
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? (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. Created attachment 449920 [details]
Patch for landing
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]. |