Title: [98231] trunk
Revision
98231
Author
[email protected]
Date
2011-10-24 03:29:26 -0700 (Mon, 24 Oct 2011)

Log Message

[Qt] fast/events/media-focus-in-standalone-media-document.html fails
https://bugs.webkit.org/show_bug.cgi?id=70110

Patch by Deepak Sherveghar <[email protected]> on 2011-10-24
Reviewed by Simon Hausmann.

Source/WebCore:

ExtensionMap should also include media files mapping.

* platform/qt/MIMETypeRegistryQt.cpp: Added media files mapping.

Source/WebKit/qt:

We should check for supported media mime types as well in the MIMETypeRegistry.

* WebCoreSupport/FrameLoaderClientQt.cpp:
(WebCore::FrameLoaderClientQt::canShowMIMEType): check for supported media mime type.

LayoutTests:

Remove media-focus-in-standalone-media-document.html from Qt Skipped test list.

* platform/qt/Skipped:

Modified Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (98230 => 98231)


--- trunk/LayoutTests/ChangeLog	2011-10-24 10:10:56 UTC (rev 98230)
+++ trunk/LayoutTests/ChangeLog	2011-10-24 10:29:26 UTC (rev 98231)
@@ -1,3 +1,14 @@
+2011-10-24  Deepak Sherveghar  <[email protected]>
+
+        [Qt] fast/events/media-focus-in-standalone-media-document.html fails
+        https://bugs.webkit.org/show_bug.cgi?id=70110
+
+        Reviewed by Simon Hausmann.
+
+        Remove media-focus-in-standalone-media-document.html from Qt Skipped test list.
+
+        * platform/qt/Skipped:
+
 2011-10-24  Pavel Feldman  <[email protected]>
 
         Web Inspector: make view load CSS files upon show.

Modified: trunk/LayoutTests/platform/qt/Skipped (98230 => 98231)


--- trunk/LayoutTests/platform/qt/Skipped	2011-10-24 10:10:56 UTC (rev 98230)
+++ trunk/LayoutTests/platform/qt/Skipped	2011-10-24 10:29:26 UTC (rev 98231)
@@ -2444,10 +2444,6 @@
 http/tests/inspector/resource-tree/resource-tree-frame-navigate.html
 http/tests/inspector/resource-tree/resource-tree-non-unique-url.html
 
-# [Qt] fast/events/media-focus-in-standalone-media-document.html fails
-# https://bugs.webkit.org/show_bug.cgi?id=70110
-fast/events/media-focus-in-standalone-media-document.html
-
 # inspector/cookie-parser.html is a flaky crash
 # https://bugs.webkit.org/show_bug.cgi?id=62662
 inspector/cookie-parser.html

Modified: trunk/Source/WebCore/ChangeLog (98230 => 98231)


--- trunk/Source/WebCore/ChangeLog	2011-10-24 10:10:56 UTC (rev 98230)
+++ trunk/Source/WebCore/ChangeLog	2011-10-24 10:29:26 UTC (rev 98231)
@@ -1,3 +1,14 @@
+2011-10-24  Deepak Sherveghar  <[email protected]>
+
+        [Qt] fast/events/media-focus-in-standalone-media-document.html fails
+        https://bugs.webkit.org/show_bug.cgi?id=70110
+
+        Reviewed by Simon Hausmann.
+
+        ExtensionMap should also include media files mapping.
+
+        * platform/qt/MIMETypeRegistryQt.cpp: Added media files mapping.
+
 2011-10-24  Pavel Feldman  <[email protected]>
 
         Not reviewed: [chromium] follow up to 98228 - added missing css.

Modified: trunk/Source/WebCore/platform/qt/MIMETypeRegistryQt.cpp (98230 => 98231)


--- trunk/Source/WebCore/platform/qt/MIMETypeRegistryQt.cpp	2011-10-24 10:10:56 UTC (rev 98230)
+++ trunk/Source/WebCore/platform/qt/MIMETypeRegistryQt.cpp	2011-10-24 10:29:26 UTC (rev 98231)
@@ -50,6 +50,18 @@
     { "jpg", "image/jpeg" },
     { "js", "application/x-_javascript_" },
     { "mng", "video/x-mng" },
+    { "mp4", "video/mp4" },
+    { "m4v", "video/mp4" },
+    { "m4a", "audio/x-m4a" },
+    { "mp3", "audio/mp3" },
+    { "ogv", "video/ogg" },
+    { "oga", "audio/ogg" },
+    { "ogm", "audio/ogg" },
+    { "ogg", "audio/ogg" },
+    { "webm", "video/webm" },
+    { "webm", "audio/webm" },
+    { "wav", "audio/wav" },
+    { "mov", "video/quicktime" },
     { "pbm", "image/x-portable-bitmap" },
     { "pgm", "image/x-portable-graymap" },
     { "pdf", "application/pdf" },

Modified: trunk/Source/WebKit/qt/ChangeLog (98230 => 98231)


--- trunk/Source/WebKit/qt/ChangeLog	2011-10-24 10:10:56 UTC (rev 98230)
+++ trunk/Source/WebKit/qt/ChangeLog	2011-10-24 10:29:26 UTC (rev 98231)
@@ -1,3 +1,15 @@
+2011-10-24  Deepak Sherveghar  <[email protected]>
+
+        [Qt] fast/events/media-focus-in-standalone-media-document.html fails
+        https://bugs.webkit.org/show_bug.cgi?id=70110
+
+        Reviewed by Simon Hausmann.
+
+        We should check for supported media mime types as well in the MIMETypeRegistry.
+
+        * WebCoreSupport/FrameLoaderClientQt.cpp:
+        (WebCore::FrameLoaderClientQt::canShowMIMEType): check for supported media mime type.
+
 2011-10-21  Luiz Agostini  <[email protected]>
 
         [Qt] Remote debugging needs QWebInspector to work

Modified: trunk/Source/WebKit/qt/WebCoreSupport/FrameLoaderClientQt.cpp (98230 => 98231)


--- trunk/Source/WebKit/qt/WebCoreSupport/FrameLoaderClientQt.cpp	2011-10-24 10:10:56 UTC (rev 98230)
+++ trunk/Source/WebKit/qt/WebCoreSupport/FrameLoaderClientQt.cpp	2011-10-24 10:29:26 UTC (rev 98231)
@@ -661,6 +661,9 @@
     if (MIMETypeRegistry::isSupportedNonImageMIMEType(type))
         return true;
 
+    if (MIMETypeRegistry::isSupportedMediaMIMEType(type))
+        return true;
+
     if (m_frame && m_frame->settings()  && m_frame->settings()->arePluginsEnabled()
         && PluginDatabase::installedPlugins()->isMIMETypeRegistered(type))
         return true;
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to