Bug 887978 - Pref on WebVTT for non-release builds. r=cpearce, bz

This allows us to get wider testing without having to worry
about fliping the pref back off for release if we find problems.

New global interafaces 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.
This commit is contained in:
Ralph Giles 2013-11-21 13:43:00 +13:00
Родитель 057b1a461b
Коммит 03cabbd4b9
2 изменённых файлов: 11 добавлений и 0 удалений

Просмотреть файл

@ -293,6 +293,7 @@ var interfaceNamesInGlobalScope =
"HTMLTextAreaElement",
"HTMLTimeElement",
"HTMLTitleElement",
{name: "HTMLTrackElement", release: false},
"HTMLUListElement",
"HTMLUnknownElement",
"HTMLVideoElement",
@ -565,6 +566,9 @@ var interfaceNamesInGlobalScope =
"TextDecoder",
"TextEncoder",
"TextMetrics",
{name: "TextTrack", release: false},
{name: "TextTrackCueList", release: false},
{name: "TextTrackList", release: false},
"TimeEvent",
"TimeRanges",
"Touch",
@ -585,6 +589,9 @@ var interfaceNamesInGlobalScope =
{name: "USSDReceivedEvent", b2g: true, pref: "dom.mobileconnection.enabled"},
"ValidityState",
"VideoStreamTrack",
{name: "VTTCue", release: false},
{name: "VTTRegion", release: false},
{name: "VTTRegionList", release: false},
"WaveShaperNode",
"WebGLActiveInfo",
"WebGLBuffer",

Просмотреть файл

@ -263,7 +263,11 @@ pref("media.tabstreaming.height", 240);
pref("media.tabstreaming.time_per_frame", 40);
// TextTrack support
#ifdef RELEASE_BUILD
pref("media.webvtt.enabled", false);
#else
pref("media.webvtt.enabled", true);
#endif
// Whether to enable MediaSource support
pref("media.mediasource.enabled", false);