Bug 887978 - Enable WebVTT. r=cpearce, bz
authorRalph Giles <giles@mozilla.com>
Fri, 29 Nov 2013 16:57:00 -0800
changeset 173977 76e799f770699b76d8703b34e08e283fa0cfe87a
parent 173976 e5ca4a98aa68301b5b7b0830d7b5ee0ef9ebcf4b
child 173978 5dc0d8f19d2604412e05b1181eabce54df7a4689
push id445
push userffxbld
push dateMon, 10 Mar 2014 22:05:19 +0000
treeherdermozilla-release@dc38b741b04e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerscpearce, bz
bugs887978
milestone28.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 887978 - Enable WebVTT. r=cpearce, bz New global interfaces need to be added to test_interfaces.html and marked with the same conditional as the pref. The test must also be updated if the conditional is changed on the pref. We now pass the track element portion of the imptests.
dom/imptests/failures/html/microdata/microdata-dom-api/test_001.html.json
dom/tests/mochitest/general/test_interfaces.html
modules/libpref/src/init/all.js
--- a/dom/imptests/failures/html/microdata/microdata-dom-api/test_001.html.json
+++ b/dom/imptests/failures/html/microdata/microdata-dom-api/test_001.html.json
@@ -13,11 +13,10 @@
   "itemProp.add should normalize \\r as a space": true,
   "itemProp.add should normalize \\n as a space": true,
   "itemProp.add should normalize \\f as a space": true,
   "itemRef.remove must remove useless whitespace when removing tokens": true,
   "itemRef.add must remove whitespace and duplicate when the token already exists": true,
   "itemRef.add should normalize \\t as a space": true,
   "itemRef.add should normalize \\r as a space": true,
   "itemRef.add should normalize \\n as a space": true,
-  "itemRef.add should normalize \\f as a space": true,
-  "itemValue must reflect the src attribute on track elements": true
+  "itemRef.add should normalize \\f as a space": true
 }
--- a/dom/tests/mochitest/general/test_interfaces.html
+++ b/dom/tests/mochitest/general/test_interfaces.html
@@ -314,16 +314,17 @@ var interfaceNamesInGlobalScope =
     "HTMLTableColElement",
     "HTMLTableElement",
     "HTMLTableRowElement",
     "HTMLTableSectionElement",
     "HTMLTemplateElement",
     "HTMLTextAreaElement",
     "HTMLTimeElement",
     "HTMLTitleElement",
+    "HTMLTrackElement",
     "HTMLUListElement",
     "HTMLUnknownElement",
     "HTMLVideoElement",
     {name: "IccChangeEvent", b2g: true, pref: "dom.icc.enabled"},
     {name: "IccCardLockError", b2g: true, pref: "dom.icc.enabled"},
     "IDBCursor",
     "IDBCursorWithValue",
     "IDBDatabase",
@@ -589,16 +590,19 @@ var interfaceNamesInGlobalScope =
     "SVGZoomEvent",
     {name: "Telephony", b2g: true, pref: "dom.telephony.enabled"},
     {name: "TelephonyCall", b2g: true, pref: "dom.telephony.enabled"},
     {name: "TelephonyCallGroup", b2g: true, pref: "dom.telephony.enabled"},
     "Text",
     "TextDecoder",
     "TextEncoder",
     "TextMetrics",
+    "TextTrack",
+    "TextTrackCueList",
+    "TextTrackList",
     "TimeEvent",
     "TimeRanges",
     "Touch",
     "TouchEvent",
     "TouchList",
     "TrackEvent",
     "TransitionEvent",
     {name: "TreeColumn", xbl: true},
@@ -609,16 +613,19 @@ var interfaceNamesInGlobalScope =
     "UIEvent",
     "UndoManager",
     "URL",
     {name: "UserDataHandler", xbl: true},
     "UserProximityEvent",
     {name: "USSDReceivedEvent", b2g: true, pref: "dom.mobileconnection.enabled"},
     "ValidityState",
     "VideoStreamTrack",
+    "VTTCue",
+    "VTTRegion",
+    "VTTRegionList",
     "WaveShaperNode",
     "WebGLActiveInfo",
     "WebGLBuffer",
     "WebGLFramebuffer",
     "WebGLProgram",
     "WebGLRenderbuffer",
     "WebGLRenderingContext",
     "WebGLShader",
--- a/modules/libpref/src/init/all.js
+++ b/modules/libpref/src/init/all.js
@@ -264,17 +264,17 @@ pref("media.navigator.enabled", true);
 #endif
 #endif
 
 pref("media.tabstreaming.width", 320);
 pref("media.tabstreaming.height", 240);
 pref("media.tabstreaming.time_per_frame", 40);
 
 // TextTrack support
-pref("media.webvtt.enabled", false);
+pref("media.webvtt.enabled", true);
 
 // Whether to enable MediaSource support
 pref("media.mediasource.enabled", false);
 
 #ifdef MOZ_WEBSPEECH
 pref("media.webspeech.recognition.enable", false);
 #endif