diff --git a/toolkit/components/places/tests/autocomplete/test_tabmatches.js b/toolkit/components/places/tests/autocomplete/test_tabmatches.js index ef895c79a36..a7eabc6da17 100644 --- a/toolkit/components/places/tests/autocomplete/test_tabmatches.js +++ b/toolkit/components/places/tests/autocomplete/test_tabmatches.js @@ -4,7 +4,11 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -let gTabRestrictChar = prefs.getCharPref("browser.urlbar.restrict.openpage"); +let gTabRestrictChar = "%"; +prefs.setCharPref("browser.urlbar.restrict.openpage", gTabRestrictChar); +do_register_cleanup(() => { + prefs.clearUserPref("browser.urlbar.restrict.openpage"); +}); let kSearchParam = "enable-actions"; diff --git a/toolkit/components/places/tests/autocomplete/xpcshell.ini b/toolkit/components/places/tests/autocomplete/xpcshell.ini index 69dd26c35ad..7c018dbcc7b 100644 --- a/toolkit/components/places/tests/autocomplete/xpcshell.ini +++ b/toolkit/components/places/tests/autocomplete/xpcshell.ini @@ -1,7 +1,6 @@ [DEFAULT] head = head_autocomplete.js tail = -firefox-appdir = browser skip-if = toolkit == 'android' || toolkit == 'gonk' [test_416211.js]