Bug 1322606: Don't hide MediaError::message behind a pref. r?ehsan draft
authorJean-Yves Avenard <jyavenard@mozilla.com>
Thu, 08 Dec 2016 16:31:51 -1000
changeset 449462 ad579ff2aad04ef9feaee51928e42e4fba383e56
parent 449461 95d3e18dd47701fd468ce27716ba250f30d3609b
child 449463 ccc5bedd778cc0396a9d9ca03bf2393f40f2ca41
push id38568
push userbmo:jyavenard@mozilla.com
push dateWed, 14 Dec 2016 06:36:13 +0000
reviewersehsan
bugs1322606
milestone53.0a1
Bug 1322606: Don't hide MediaError::message behind a pref. r?ehsan MozReview-Commit-ID: y2Wbf7amvQ
dom/webidl/MediaError.webidl
modules/libpref/init/all.js
--- a/dom/webidl/MediaError.webidl
+++ b/dom/webidl/MediaError.webidl
@@ -15,11 +15,10 @@ interface MediaError {
   // Keep these constants in sync with the ones defined in HTMLMediaElement.h
   const unsigned short MEDIA_ERR_ABORTED = 1;
   const unsigned short MEDIA_ERR_NETWORK = 2;
   const unsigned short MEDIA_ERR_DECODE = 3;
   const unsigned short MEDIA_ERR_SRC_NOT_SUPPORTED = 4;
 
   [Constant]
   readonly attribute unsigned short code;
-  [Pref="dom.MediaError.message.enabled"]
   readonly attribute DOMString message;
 };
--- a/modules/libpref/init/all.js
+++ b/modules/libpref/init/all.js
@@ -300,23 +300,16 @@ pref("print.shrink-to-fit.scale-limit-pe
 pref("print.use_simplify_page", false);
 
 // Disable support for MathML
 pref("mathml.disabled",    false);
 
 // Enable scale transform for stretchy MathML operators. See bug 414277.
 pref("mathml.scale_stretchy_operators.enabled", true);
 
-// Disable MediaError.message.
-#ifdef RELEASE_OR_BETA
-pref("dom.MediaError.message.enabled", false);
-#else
-pref("dom.MediaError.message.enabled", true);
-#endif
-
 // Enabled on nightly only until we fix mochitest failures.
 #ifdef NIGHTLY_BUILD
 pref("media.dormant-on-pause-timeout-ms", 5000);
 #else
 pref("media.dormant-on-pause-timeout-ms", -1);
 #endif
 
 // Media cache size in kilobytes