Bug 1167492 - Part 4: B2G settings. r=fabrice
☠☠ backed out by 6ea07e990e01 ☠ ☠
author<pkj1020>
Fri, 30 Oct 2015 00:00:00 -0700
changeset 308667 e35dba35a6ad06811d5dead114cdc17f90933be4
parent 308666 19ded68eecfb1ec37306cb9a83c3c9234d063eb1
child 308668 1cebd249bf52296e265c106dd86976e60fc2349a
push id5513
push userraliiev@mozilla.com
push dateMon, 25 Jan 2016 13:55:34 +0000
treeherdermozilla-beta@5ee97dd05b5c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfabrice
bugs1167492
milestone45.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 1167492 - Part 4: B2G settings. r=fabrice [US Regulation] To Create Settings for Configuring Default Attributes of WebVTT. Add settings which supply user-defined values for cue styling.
b2g/chrome/content/settings.js
--- a/b2g/chrome/content/settings.js
+++ b/b2g/chrome/content/settings.js
@@ -722,16 +722,45 @@ var settingsToObserve = {
   'ui.touch.radius.bottommm': {
     resetToPref: true
   },
   'ui.click_hold_context_menus.delay': {
     resetToPref: true
   },
   'wap.UAProf.tagname': 'x-wap-profile',
   'wap.UAProf.url': ''
+  'wap.UAProf.url': '',
+  'webvtt.font.color': {
+    prefName: 'webvtt.font.color',
+    defaultValue: 'FFFFFF'
+  },
+  'webvtt.font.opacity': {
+    prefName: 'webvtt.font.opacity',
+    defaultValue: 100
+  },
+  'webvtt.font.scale': {
+    prefName: 'webvtt.font.scale',
+    defaultValue: 100
+  },
+  'webvtt.bg.color': {
+    prefName: 'webvtt.bg.color',
+    defaultValue: "000000"
+  },
+  'webvtt.bg.opacity': {
+    prefName: 'webvtt.bg.opacity',
+    defaultValue: 100
+  },
+  'webvtt.edge.type': {
+    prefName: 'webvtt.edge.type',
+    defaultValue: 0
+  },
+  'webvtt.edge.color': {
+    prefName: 'webvtt.edge.color',
+    defaultValue: 'FFFFFF'
+  }
 };
 
 function settingObserver(setPref, prefName, setting) {
   return value => {
     setPref(prefName, value);
     if (setting.notifyChange) {
       SystemAppProxy._sendCustomEvent('mozPrefChromeEvent', {
         prefName: prefName,