Title: [212353] trunk/Source/WebCore
- Revision
- 212353
- Author
- [email protected]
- Date
- 2017-02-15 00:58:23 -0800 (Wed, 15 Feb 2017)
Log Message
[GStreamer] Several tests are timing out after r212349
https://bugs.webkit.org/show_bug.cgi?id=168359
Reviewed by Žan Doberšek.
This is because they are failing the cross origin check. Those tests are not using WebKitWebSrc, but
GstFileSrc. I didn't consider the case of source not being a WebKitWebSrc.
Fixes several timeout instroduced in r212349.
* platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
(WebCore::MediaPlayerPrivateGStreamer::hasSingleSecurityOrigin): Split the source check in two. First check if
it's nullptr, and return false. Then check if it's a WebKitWebSrc and return true if it isn't.
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (212352 => 212353)
--- trunk/Source/WebCore/ChangeLog 2017-02-15 08:17:11 UTC (rev 212352)
+++ trunk/Source/WebCore/ChangeLog 2017-02-15 08:58:23 UTC (rev 212353)
@@ -1,3 +1,19 @@
+2017-02-15 Carlos Garcia Campos <[email protected]>
+
+ [GStreamer] Several tests are timing out after r212349
+ https://bugs.webkit.org/show_bug.cgi?id=168359
+
+ Reviewed by Žan Doberšek.
+
+ This is because they are failing the cross origin check. Those tests are not using WebKitWebSrc, but
+ GstFileSrc. I didn't consider the case of source not being a WebKitWebSrc.
+
+ Fixes several timeout instroduced in r212349.
+
+ * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
+ (WebCore::MediaPlayerPrivateGStreamer::hasSingleSecurityOrigin): Split the source check in two. First check if
+ it's nullptr, and return false. Then check if it's a WebKitWebSrc and return true if it isn't.
+
2017-02-14 Brent Fulgham <[email protected]>
Revalidate URL after events that could trigger navigations
Modified: trunk/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp (212352 => 212353)
--- trunk/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp 2017-02-15 08:17:11 UTC (rev 212352)
+++ trunk/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp 2017-02-15 08:58:23 UTC (rev 212353)
@@ -1425,9 +1425,12 @@
bool MediaPlayerPrivateGStreamer::hasSingleSecurityOrigin() const
{
- if (!WEBKIT_IS_WEB_SRC(m_source.get()))
+ if (!m_source)
return false;
+ if (!WEBKIT_IS_WEB_SRC(m_source.get()))
+ return true;
+
GUniqueOutPtr<char> originalURI, resolvedURI;
g_object_get(m_source.get(), "location", &originalURI.outPtr(), "resolved-location", &resolvedURI.outPtr(), nullptr);
if (!originalURI || !resolvedURI)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes