Changeset 228944 in webkit


Ignore:
Timestamp:
Feb 23, 2018 1:57:37 AM (6 years ago)
Author:
Philippe Normand
Message:

[GStreamer] media/video-src-blob-using-open-panel.html crashes in Debug
https://bugs.webkit.org/show_bug.cgi?id=183005

Reviewed by Xabier Rodriguez-Calvar.

Test: media/video-src-blob-using-open-panel.html

  • platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:

(WebCore::convertToInternalProtocol): Also convert blob URIs
because they're handled by our httpsrc element.

  • platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:

(webKitWebSrcGetProtocols): Prefix blob URIs too, for consistency purpose.

Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r228942 r228944  
     12018-02-23  Philippe Normand  <pnormand@igalia.com>
     2
     3        [GStreamer] media/video-src-blob-using-open-panel.html crashes in Debug
     4        https://bugs.webkit.org/show_bug.cgi?id=183005
     5
     6        Reviewed by Xabier Rodriguez-Calvar.
     7
     8        Test: media/video-src-blob-using-open-panel.html
     9
     10        * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
     11        (WebCore::convertToInternalProtocol): Also convert blob URIs
     12        because they're handled by our httpsrc element.
     13        * platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:
     14        (webKitWebSrcGetProtocols): Prefix blob URIs too, for consistency purpose.
     15
    1162018-02-22  Yusuke Suzuki  <utatane.tea@gmail.com>
    217
  • trunk/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp

    r228875 r228944  
    217217static void convertToInternalProtocol(URL& url)
    218218{
    219     if (url.protocolIsInHTTPFamily())
     219    if (url.protocolIsInHTTPFamily() || url.protocolIsBlob())
    220220        url.setProtocol("webkit+" + url.protocol());
    221221}
  • trunk/Source/WebCore/platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp

    r228603 r228944  
    619619const gchar* const* webKitWebSrcGetProtocols(GType)
    620620{
    621     static const char* protocols[] = {"webkit+http", "webkit+https", "blob", nullptr };
     621    static const char* protocols[] = {"webkit+http", "webkit+https", "webkit+blob", nullptr };
    622622    return protocols;
    623623}
Note: See TracChangeset for help on using the changeset viewer.