Changeset 271725 in webkit
- Timestamp:
- Jan 21, 2021 5:10:51 PM (18 months ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
page/Quirks.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r271723 r271725 1 2021-01-21 Peng Liu <peng.liu6@apple.com> 2 3 Videos on Facebook Stories do not play 4 https://bugs.webkit.org/show_bug.cgi?id=220834 5 6 Reviewed by Jer Noble. 7 8 Add a quirk (for the iOS port) to allow videos (with audio) on Facebook stories to play. 9 10 * page/Quirks.cpp: 11 (WebCore::Quirks::shouldAutoplayForArbitraryUserGesture const): 12 1 13 2021-01-21 Sam Weinig <weinig@apple.com> 2 14 -
trunk/Source/WebCore/page/Quirks.cpp
r271667 r271725 151 151 return false; 152 152 153 auto host = m_document->url().host();154 return equalLettersIgnoringASCIICase(host, "twitter.com") || host.endsWithIgnoringASCIICase(".twitter.com");153 auto domain = RegistrableDomain { m_document->topDocument().url() }; 154 return domain == "twitter.com"_s || domain == "facebook.com"_s; 155 155 #endif 156 156 }
Note: See TracChangeset
for help on using the changeset viewer.