[SCM] WebKit Debian packaging branch, webkit-1.1, updated. upstream/1.1.19-706-ge5415e9

eric at webkit.org eric at webkit.org
Thu Feb 4 21:32:08 UTC 2010


The following commit has been merged in the webkit-1.1 branch:
commit cb5dae68abfbdb71c7eda948d03ee936d0d8a9e9
Author: eric at webkit.org <eric at webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Fri Jan 29 13:29:04 2010 +0000

    2010-01-29  Philippe Normand  <pnormand at igalia.com>
    
            Reviewed by Gustavo Noronha Silva.
    
            [Gtk] Apple trailers don't play anymore
            https://bugs.webkit.org/show_bug.cgi?id=34316
    
            Fake QuickTime when accessing movie trailers.
    
            * platform/graphics/gtk/MediaPlayerPrivateGStreamer.cpp:
            (WebCore::mediaPlayerPrivateSourceChangedCallback):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@54056 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/WebCore/ChangeLog b/WebCore/ChangeLog
index c8909d7..b8cc99c 100644
--- a/WebCore/ChangeLog
+++ b/WebCore/ChangeLog
@@ -1,3 +1,15 @@
+2010-01-29  Philippe Normand  <pnormand at igalia.com>
+
+        Reviewed by Gustavo Noronha Silva.
+
+        [Gtk] Apple trailers don't play anymore
+        https://bugs.webkit.org/show_bug.cgi?id=34316
+
+        Fake QuickTime when accessing movie trailers.
+
+        * platform/graphics/gtk/MediaPlayerPrivateGStreamer.cpp:
+        (WebCore::mediaPlayerPrivateSourceChangedCallback):
+
 2010-01-29  Pavel Feldman  <pfeldman at chromium.org>
 
         Reviewed by Timothy Hatcher.
diff --git a/WebCore/platform/graphics/gtk/MediaPlayerPrivateGStreamer.cpp b/WebCore/platform/graphics/gtk/MediaPlayerPrivateGStreamer.cpp
index e24ad89..a46d395 100644
--- a/WebCore/platform/graphics/gtk/MediaPlayerPrivateGStreamer.cpp
+++ b/WebCore/platform/graphics/gtk/MediaPlayerPrivateGStreamer.cpp
@@ -150,6 +150,11 @@ void mediaPlayerPrivateSourceChangedCallback(GObject *object, GParamSpec *pspec,
 
         SoupURI* uri = soup_uri_new(location);
         g_free(location);
+
+        // Let Apple web servers know we want to access their nice movie trailers.
+        if (g_str_equal(uri->host, "movies.apple.com"))
+            g_object_set(element, "user-agent", "Quicktime/7.2.0", NULL);
+
         char* cookies = soup_cookie_jar_get_cookies(cookieJar, uri, FALSE);
         soup_uri_free(uri);
 

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list