Title: [268987] trunk/Source/WebCore
- Revision
- 268987
- Author
- [email protected]
- Date
- 2020-10-26 11:06:33 -0700 (Mon, 26 Oct 2020)
Log Message
Video immediately exits full screen and pauses
https://bugs.webkit.org/show_bug.cgi?id=218103
Reviewed by Jer Noble.
A follow-up patch of r265437 to enable the quirk when a video element's class names
contain `amp-html5` and `amp-media-element`.
* page/Quirks.cpp:
(WebCore::Quirks::needsAkamaiMediaPlayerQuirk const):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (268986 => 268987)
--- trunk/Source/WebCore/ChangeLog 2020-10-26 17:54:31 UTC (rev 268986)
+++ trunk/Source/WebCore/ChangeLog 2020-10-26 18:06:33 UTC (rev 268987)
@@ -1,3 +1,16 @@
+2020-10-26 Peng Liu <[email protected]>
+
+ Video immediately exits full screen and pauses
+ https://bugs.webkit.org/show_bug.cgi?id=218103
+
+ Reviewed by Jer Noble.
+
+ A follow-up patch of r265437 to enable the quirk when a video element's class names
+ contain `amp-html5` and `amp-media-element`.
+
+ * page/Quirks.cpp:
+ (WebCore::Quirks::needsAkamaiMediaPlayerQuirk const):
+
2020-10-26 Antti Koivisto <[email protected]>
Move some functions from RenderBlockFlow to RenderDeprecatedFlexbox
Modified: trunk/Source/WebCore/page/Quirks.cpp (268986 => 268987)
--- trunk/Source/WebCore/page/Quirks.cpp 2020-10-26 17:54:31 UTC (rev 268986)
+++ trunk/Source/WebCore/page/Quirks.cpp 2020-10-26 18:06:33 UTC (rev 268987)
@@ -1056,6 +1056,8 @@
static NeverDestroyed<const AtomString> akamaiHTML5(MAKE_STATIC_STRING_IMPL("akamai-html5"));
static NeverDestroyed<const AtomString> akamaiMediaElement(MAKE_STATIC_STRING_IMPL("akamai-media-element"));
+ static NeverDestroyed<const AtomString> ampHTML5(MAKE_STATIC_STRING_IMPL("amp-html5"));
+ static NeverDestroyed<const AtomString> ampMediaElement(MAKE_STATIC_STRING_IMPL("amp-media-element"));
if (!needsQuirks())
return false;
@@ -1064,7 +1066,7 @@
return false;
auto& classNames = element.classNames();
- return classNames.contains(akamaiHTML5) && classNames.contains(akamaiMediaElement);
+ return (classNames.contains(akamaiHTML5) && classNames.contains(akamaiMediaElement)) || (classNames.contains(ampHTML5) && classNames.contains(ampMediaElement));
#else
UNUSED_PARAM(element);
return false;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes