Changeset 255495 in webkit
- Timestamp:
- Jan 31, 2020 7:44:40 AM (4 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r255490 r255495 1 2020-01-31 Peng Liu <peng.liu6@apple.com> 2 3 Media controls of the video player on nfl.com are not visible in fullscreen mode (iPad only) 4 https://bugs.webkit.org/show_bug.cgi?id=207020 5 6 Reviewed by Eric Carlson. 7 8 Add a quirk to disable the element fullscreen API support for nfl.com on iPads. 9 10 * dom/DocumentFullscreen.idl: 11 * dom/Element.idl: 12 * page/Quirks.cpp: 13 (WebCore::Quirks::shouldDisableElementFullscreenQuirk const): 14 * page/Quirks.h: 15 1 16 2020-01-31 Antti Koivisto <antti@apple.com> 2 17 -
trunk/Source/WebCore/dom/DocumentFullscreen.idl
r244440 r255495 27 27 Conditional=FULLSCREEN_API, 28 28 EnabledBySetting=FullScreen, 29 DisabledByQuirk=shouldDisableElementFullscreen 29 30 ] partial interface Document { 30 31 // Extensions from FullScreen API (https://fullscreen.spec.whatwg.org/#api). -
trunk/Source/WebCore/dom/Element.idl
r251425 r255495 97 97 // Extensions from Full Screen API (https://fullscreen.spec.whatwg.org/#api). 98 98 // FIXME: Should we add unprefixed versions? 99 [Conditional=FULLSCREEN_API, EnabledBySetting=FullScreen, ImplementedAs=webkitRequestFullscreen ] void webkitRequestFullScreen(); // Prefixed Mozilla version.100 [Conditional=FULLSCREEN_API, EnabledBySetting=FullScreen ] void webkitRequestFullscreen(); // Prefixed W3C version.99 [Conditional=FULLSCREEN_API, EnabledBySetting=FullScreen, ImplementedAs=webkitRequestFullscreen, DisabledByQuirk=shouldDisableElementFullscreen] void webkitRequestFullScreen(); // Prefixed Mozilla version. 100 [Conditional=FULLSCREEN_API, EnabledBySetting=FullScreen, DisabledByQuirk=shouldDisableElementFullscreen] void webkitRequestFullscreen(); // Prefixed W3C version. 101 101 102 102 // Extensions from Pointer Events API (https://w3c.github.io/pointerevents/#extensions-to-the-element-interface). … … 127 127 128 128 // FIXME: These event handlers should only be on Document (https://fullscreen.spec.whatwg.org/#api). 129 [NotEnumerable, Conditional=FULLSCREEN_API, EnabledBySetting=FullScreen ] attribute EventHandler onwebkitfullscreenchange;130 [NotEnumerable, Conditional=FULLSCREEN_API, EnabledBySetting=FullScreen ] attribute EventHandler onwebkitfullscreenerror;129 [NotEnumerable, Conditional=FULLSCREEN_API, EnabledBySetting=FullScreen, DisabledByQuirk=shouldDisableElementFullscreen] attribute EventHandler onwebkitfullscreenchange; 130 [NotEnumerable, Conditional=FULLSCREEN_API, EnabledBySetting=FullScreen, DisabledByQuirk=shouldDisableElementFullscreen] attribute EventHandler onwebkitfullscreenerror; 131 131 132 132 // FIXME: Cannot find those EventHandlers in the latest specification (https://w3c.github.io/uievents/#events-focus-types). -
trunk/Source/WebCore/page/Quirks.cpp
r255469 r255495 628 628 #endif 629 629 630 } 630 bool Quirks::shouldDisableElementFullscreenQuirk() const 631 { 632 #if PLATFORM(IOS_FAMILY) 633 if (!needsQuirks()) 634 return false; 635 636 if (m_shouldDisableElementFullscreenQuirk) 637 return m_shouldDisableElementFullscreenQuirk.value(); 638 639 auto domain = m_document->securityOrigin().domain().convertToASCIILowercase(); 640 641 m_shouldDisableElementFullscreenQuirk = domain == "nfl.com" || domain.endsWith(".nfl.com"); 642 643 return m_shouldDisableElementFullscreenQuirk.value(); 644 #else 645 return false; 646 #endif 647 } 648 649 } -
trunk/Source/WebCore/page/Quirks.h
r254574 r255495 88 88 #endif 89 89 90 bool shouldDisableElementFullscreenQuirk() const; 91 90 92 private: 91 93 bool needsQuirks() const; … … 105 107 mutable Optional<bool> m_needsPreloadAutoQuirk; 106 108 #endif 109 mutable Optional<bool> m_shouldDisableElementFullscreenQuirk; 107 110 }; 108 111
Note: See TracChangeset
for help on using the changeset viewer.