Title: [247779] trunk/Source/WebCore
Revision
247779
Author
[email protected]
Date
2019-07-24 10:36:44 -0700 (Wed, 24 Jul 2019)

Log Message

Add per-document autoplay quirk for netflix.com.
https://bugs.webkit.org/show_bug.cgi?id=200058

Reviewed by Eric Carlson.

Opt netflix.com into the desktop-style per-document autoplay quirk.

* page/Quirks.cpp:
(WebCore::Quirks::needsPerDocumentAutoplayBehavior const):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (247778 => 247779)


--- trunk/Source/WebCore/ChangeLog	2019-07-24 17:34:22 UTC (rev 247778)
+++ trunk/Source/WebCore/ChangeLog	2019-07-24 17:36:44 UTC (rev 247779)
@@ -1,3 +1,15 @@
+2019-07-24  Jer Noble  <[email protected]>
+
+        Add per-document autoplay quirk for netflix.com.
+        https://bugs.webkit.org/show_bug.cgi?id=200058
+
+        Reviewed by Eric Carlson.
+
+        Opt netflix.com into the desktop-style per-document autoplay quirk.
+
+        * page/Quirks.cpp:
+        (WebCore::Quirks::needsPerDocumentAutoplayBehavior const):
+
 2019-07-24  Alicia Boya GarcĂ­a  <[email protected]>
 
         [GStreamer] Don't crash with empty video src

Modified: trunk/Source/WebCore/page/Quirks.cpp (247778 => 247779)


--- trunk/Source/WebCore/page/Quirks.cpp	2019-07-24 17:34:22 UTC (rev 247778)
+++ trunk/Source/WebCore/page/Quirks.cpp	2019-07-24 17:36:44 UTC (rev 247779)
@@ -103,7 +103,8 @@
     ASSERT(m_document == &m_document->topDocument());
     return needsQuirks() && allowedAutoplayQuirks(*m_document).contains(AutoplayQuirk::PerDocumentAutoplayBehavior);
 #else
-    return false;
+    auto host = m_document->topDocument().url().host();
+    return equalLettersIgnoringASCIICase(host, "netflix.com") || host.endsWithIgnoringASCIICase(".netflix.com");
 #endif
 }
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to