[Webkit-unassigned] [Bug 242156] REGRESSION(243836 at main): Broke videos in yelp

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jun 30 11:21:42 PDT 2022


https://bugs.webkit.org/show_bug.cgi?id=242156

--- Comment #2 from Michael Catanzaro <mcatanzaro at gnome.org> ---
This fixes yelp:

diff --git a/Source/WebCore/html/HTMLMediaElement.cpp b/Source/WebCore/html/HTMLMediaElement.cpp
index 97f855b6b592..95c10e228b81 100644
--- a/Source/WebCore/html/HTMLMediaElement.cpp
+++ b/Source/WebCore/html/HTMLMediaElement.cpp
@@ -1503,12 +1503,10 @@ void HTMLMediaElement::loadResource(const URL& initialURL, ContentType& contentT
     }

     URL url = initialURL;
-#if PLATFORM(COCOA)
-    if (url.isLocalFile() && !frame->loader().willLoadMediaElementURL(url, *this)) {
+    if (!url.isEmpty() && !frame->loader().willLoadMediaElementURL(url, *this)) {
         mediaLoadingFailed(MediaPlayer::NetworkState::FormatError);
         return;
     }
-#endif

 #if ENABLE(CONTENT_EXTENSIONS)
     if (RefPtr documentLoader = frame->loader().documentLoader()) {

Phil, Jer, do you want a pull request for this?

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220630/923a0ec0/attachment.htm>


More information about the webkit-unassigned mailing list