Title: [250478] branches/safari-608-branch/Source/WebCore
- Revision
- 250478
- Author
- [email protected]
- Date
- 2019-09-27 18:21:01 -0700 (Fri, 27 Sep 2019)
Log Message
Cherry-pick r250441. rdar://problem/55801089
[iOS] Vimeo fails to AirPlay in desktop mode
https://bugs.webkit.org/show_bug.cgi?id=202322
Reviewed by Eric Carlson.
Add a Quirk which opts Vimeo out of the preload=auto restriction, and allows their
second video element containing a HLS stream to correctly start AirPlaying when the
system route changes.
* html/HTMLMediaElement.cpp:
(WebCore::HTMLMediaElement::finishInitialization):
* page/Quirks.cpp:
(WebCore::Quirks::needsPreloadAutoQuirk const):
* page/Quirks.h:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@250441 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Modified Paths
Diff
Modified: branches/safari-608-branch/Source/WebCore/ChangeLog (250477 => 250478)
--- branches/safari-608-branch/Source/WebCore/ChangeLog 2019-09-28 01:20:58 UTC (rev 250477)
+++ branches/safari-608-branch/Source/WebCore/ChangeLog 2019-09-28 01:21:01 UTC (rev 250478)
@@ -1,5 +1,44 @@
2019-09-27 Alan Coon <[email protected]>
+ Cherry-pick r250441. rdar://problem/55801089
+
+ [iOS] Vimeo fails to AirPlay in desktop mode
+ https://bugs.webkit.org/show_bug.cgi?id=202322
+
+ Reviewed by Eric Carlson.
+
+ Add a Quirk which opts Vimeo out of the preload=auto restriction, and allows their
+ second video element containing a HLS stream to correctly start AirPlaying when the
+ system route changes.
+
+ * html/HTMLMediaElement.cpp:
+ (WebCore::HTMLMediaElement::finishInitialization):
+ * page/Quirks.cpp:
+ (WebCore::Quirks::needsPreloadAutoQuirk const):
+ * page/Quirks.h:
+
+
+ git-svn-id: https://svn.webkit.org/repository/webkit/trunk@250441 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+ 2019-09-27 Jer Noble <[email protected]>
+
+ [iOS] Vimeo fails to AirPlay in desktop mode
+ https://bugs.webkit.org/show_bug.cgi?id=202322
+
+ Reviewed by Eric Carlson.
+
+ Add a Quirk which opts Vimeo out of the preload=auto restriction, and allows their
+ second video element containing a HLS stream to correctly start AirPlaying when the
+ system route changes.
+
+ * html/HTMLMediaElement.cpp:
+ (WebCore::HTMLMediaElement::finishInitialization):
+ * page/Quirks.cpp:
+ (WebCore::Quirks::needsPreloadAutoQuirk const):
+ * page/Quirks.h:
+
+2019-09-27 Alan Coon <[email protected]>
+
Cherry-pick r250459. rdar://problem/55797570
[Win] Crash under FontCache::lastResortFallbackFont
Modified: branches/safari-608-branch/Source/WebCore/html/HTMLMediaElement.cpp (250477 => 250478)
--- branches/safari-608-branch/Source/WebCore/html/HTMLMediaElement.cpp 2019-09-28 01:20:58 UTC (rev 250477)
+++ branches/safari-608-branch/Source/WebCore/html/HTMLMediaElement.cpp 2019-09-28 01:21:01 UTC (rev 250478)
@@ -521,7 +521,7 @@
m_mediaSession->addBehaviorRestriction(MediaElementSession::RequireUserGestureToShowPlaybackTargetPicker);
#endif
- if (!document.settings().mediaDataLoadsAutomatically())
+ if (!document.settings().mediaDataLoadsAutomatically() && !document.quirks().needsPreloadAutoQuirk())
m_mediaSession->addBehaviorRestriction(MediaElementSession::AutoPreloadingNotPermitted);
if (document.settings().mainContentUserGestureOverrideEnabled())
Modified: branches/safari-608-branch/Source/WebCore/page/Quirks.cpp (250477 => 250478)
--- branches/safari-608-branch/Source/WebCore/page/Quirks.cpp 2019-09-28 01:20:58 UTC (rev 250477)
+++ branches/safari-608-branch/Source/WebCore/page/Quirks.cpp 2019-09-28 01:21:01 UTC (rev 250478)
@@ -590,4 +590,23 @@
#endif
}
+bool Quirks::needsPreloadAutoQuirk() const
+{
+#if PLATFORM(IOS_FAMILY)
+ if (!needsQuirks())
+ return false;
+
+ if (m_needsPreloadAutoQuirk)
+ return m_needsPreloadAutoQuirk.value();
+
+ auto domain = m_document->securityOrigin().domain().convertToASCIILowercase();
+
+ m_needsPreloadAutoQuirk = domain == "vimeo.com" || domain.endsWith("vimeo.com");
+
+ return m_needsPreloadAutoQuirk.value();
+#else
+ return false;
+#endif
}
+
+}
Modified: branches/safari-608-branch/Source/WebCore/page/Quirks.h (250477 => 250478)
--- branches/safari-608-branch/Source/WebCore/page/Quirks.h 2019-09-28 01:20:58 UTC (rev 250477)
+++ branches/safari-608-branch/Source/WebCore/page/Quirks.h 2019-09-28 01:21:01 UTC (rev 250478)
@@ -79,6 +79,8 @@
bool shouldOpenAsAboutBlank(const String&) const;
+ bool needsPreloadAutoQuirk() const;
+
private:
bool needsQuirks() const;
@@ -93,6 +95,7 @@
#if PLATFORM(IOS_FAMILY)
mutable Optional<bool> m_needsGMailOverflowScrollQuirk;
mutable Optional<bool> m_needsYouTubeOverflowScrollQuirk;
+ mutable Optional<bool> m_needsPreloadAutoQuirk;
#endif
};
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes