Title: [271725] trunk/Source/WebCore
- Revision
- 271725
- Author
- peng.l...@apple.com
- Date
- 2021-01-21 17:10:51 -0800 (Thu, 21 Jan 2021)
Log Message
Videos on Facebook Stories do not play
https://bugs.webkit.org/show_bug.cgi?id=220834
Reviewed by Jer Noble.
Add a quirk (for the iOS port) to allow videos (with audio) on Facebook stories to play.
* page/Quirks.cpp:
(WebCore::Quirks::shouldAutoplayForArbitraryUserGesture const):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (271724 => 271725)
--- trunk/Source/WebCore/ChangeLog 2021-01-22 01:07:06 UTC (rev 271724)
+++ trunk/Source/WebCore/ChangeLog 2021-01-22 01:10:51 UTC (rev 271725)
@@ -1,3 +1,15 @@
+2021-01-21 Peng Liu <peng.l...@apple.com>
+
+ Videos on Facebook Stories do not play
+ https://bugs.webkit.org/show_bug.cgi?id=220834
+
+ Reviewed by Jer Noble.
+
+ Add a quirk (for the iOS port) to allow videos (with audio) on Facebook stories to play.
+
+ * page/Quirks.cpp:
+ (WebCore::Quirks::shouldAutoplayForArbitraryUserGesture const):
+
2021-01-21 Sam Weinig <wei...@apple.com>
Remove support for now unused CMYKA<> color type
Modified: trunk/Source/WebCore/page/Quirks.cpp (271724 => 271725)
--- trunk/Source/WebCore/page/Quirks.cpp 2021-01-22 01:07:06 UTC (rev 271724)
+++ trunk/Source/WebCore/page/Quirks.cpp 2021-01-22 01:10:51 UTC (rev 271725)
@@ -150,8 +150,8 @@
if (!needsQuirks())
return false;
- auto host = m_document->url().host();
- return equalLettersIgnoringASCIICase(host, "twitter.com") || host.endsWithIgnoringASCIICase(".twitter.com");
+ auto domain = RegistrableDomain { m_document->topDocument().url() };
+ return domain == "twitter.com"_s || domain == "facebook.com"_s;
#endif
}
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes