Bug 1301055 - part3 : modify test prefs. draft
authorAlastor Wu <alwu@mozilla.com>
Thu, 24 Nov 2016 10:24:06 +0800
changeset 443245 cd018dfc828616aa925c6a8a62507ae537d8c506
parent 443244 bc90782a78a0e2f14773a66714f9192e61970ec9
child 443246 90936a8f5186a16e3f4b6871bae8e8d8b0f65e7b
push id36935
push useralwu@mozilla.com
push dateThu, 24 Nov 2016 03:29:08 +0000
bugs1301055
milestone53.0a1
Bug 1301055 - part3 : modify test prefs. On fennec we have the special workaround that is doesn't dispatch the "error" event when the error is "MEDIA_ERR_SRC_NOT_SUPPORTED" because we will use an external app to open it. But we don't want this behavior affect the tests we already have, so close the pref. MozReview-Commit-ID: 9aoy1vnekvY
layout/tools/reftest/reftest-preferences.js
testing/profiles/prefs_general.js
--- a/layout/tools/reftest/reftest-preferences.js
+++ b/layout/tools/reftest/reftest-preferences.js
@@ -117,8 +117,10 @@ user_pref("testing.supports.moz-bool-pre
 // Reftests load a lot of URLs very quickly. This puts avoidable and
 // unnecessary I/O pressure on the Places DB (measured to be in the
 // gigabytes).
 user_pref("places.history.enabled", false);
 
 // For Firefox 52 only, ESR will support non-Flash plugins while release will
 // not, so we keep testing the non-Flash pathways
 user_pref("plugin.load_flash_only", false);
+
+user_pref("media.openUnsupportedTypeWithExternalApp", false);
--- a/testing/profiles/prefs_general.js
+++ b/testing/profiles/prefs_general.js
@@ -351,11 +351,13 @@ user_pref("startup.homepage_welcome_url.
 // For Firefox 52 only, ESR will support non-Flash plugins while release will
 // not, so we keep testing the non-Flash pathways
 user_pref("plugin.load_flash_only", false);
 
 // Don't block old libavcodec libraries when testing, because our test systems
 // cannot easily be upgraded.
 user_pref("media.libavcodec.allow-obsolete", true);
 
+user_pref("media.openUnsupportedTypeWithExternalApp", false);
+
 // Disable password capture, so that mochitests that include forms aren't
 // influenced by the presence of the persistent doorhanger notification.
 user_pref("signon.rememberSignons", false);