Bug 801635 - Fix mochitest-1 orange. r=me
--- a/content/html/content/test/forms/test_input_file_b2g_disabled.html
+++ b/content/html/content/test/forms/test_input_file_b2g_disabled.html
@@ -6,17 +6,21 @@ https://bugzilla.mozilla.org/show_bug.cg
<head>
<meta charset="utf-8">
<title>Test for Bug 801635</title>
<script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
<script type="application/javascript">
/** Test for Bug 801635 **/
- var oldPrefValue = SpecialPowers.getBoolPref('dom.disable_input_file');
+ var oldPrefValue = null;
+ try {
+ oldPrefValue = SpecialPowers.getBoolPref('dom.disable_input_file');
+ } catch(e) {
+ }
var input = document.createElement('input');
SpecialPowers.setBoolPref('dom.disable_input_file', true);
input.type='file';
is(input.type, 'text', "<input type='file'> should be disabled");
input.type ='text';