Title: [294059] trunk/Source/WebCore
- Revision
- 294059
- Author
- [email protected]
- Date
- 2022-05-11 10:46:29 -0700 (Wed, 11 May 2022)
Log Message
Add a webshare quirk for youtube
https://bugs.webkit.org/show_bug.cgi?id=240303
<rdar://93042649>
Reviewed by Tim Horton.
Manually tested.
* page/Quirks.cpp:
(WebCore::isYouTubeDocument):
(WebCore::Quirks::shouldDisableWebSharePolicy const):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (294058 => 294059)
--- trunk/Source/WebCore/ChangeLog 2022-05-11 17:44:40 UTC (rev 294058)
+++ trunk/Source/WebCore/ChangeLog 2022-05-11 17:46:29 UTC (rev 294059)
@@ -1,5 +1,19 @@
2022-05-11 Youenn Fablet <[email protected]>
+ Add a webshare quirk for youtube
+ https://bugs.webkit.org/show_bug.cgi?id=240303
+ <rdar://93042649>
+
+ Reviewed by Tim Horton.
+
+ Manually tested.
+
+ * page/Quirks.cpp:
+ (WebCore::isYouTubeDocument):
+ (WebCore::Quirks::shouldDisableWebSharePolicy const):
+
+2022-05-11 Youenn Fablet <[email protected]>
+
MediaPlayerPrivateRemote::nativeImageForCurrentTime should not use IOSurfaces
https://bugs.webkit.org/show_bug.cgi?id=240226
<rdar://problem/92969905>
Modified: trunk/Source/WebCore/page/Quirks.cpp (294058 => 294059)
--- trunk/Source/WebCore/page/Quirks.cpp 2022-05-11 17:44:40 UTC (rev 294058)
+++ trunk/Source/WebCore/page/Quirks.cpp 2022-05-11 17:46:29 UTC (rev 294059)
@@ -90,6 +90,11 @@
return RegistrableDomain(document.url()).string() == "twitter.com";
}
+static bool isYouTubeDocument(Document& document)
+{
+ return RegistrableDomain(document.url()).string() == "youtube.com";
+}
+
Quirks::Quirks(Document& document)
: m_document(document)
{
@@ -1459,7 +1464,7 @@
return false;
if (!m_shouldDisableWebSharePolicy)
- m_shouldDisableWebSharePolicy = isTwitterDocument(*m_document);
+ m_shouldDisableWebSharePolicy = isTwitterDocument(*m_document) || isYouTubeDocument(*m_document);
return *m_shouldDisableWebSharePolicy;
}
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes