Bug 1135317 - make explicit that test for changing app handlers in in-content prefs relies on in-content prefs, rs=me/test-only

--HG--
extra : amend_source : 9e4755ff5d3f756c4169db75563c4fed434f9d21
This commit is contained in:
Gijs Kruitbosch 2015-02-21 17:03:11 +01:00
parent 855a13c339
commit e8a13aa143

View File

@ -1,6 +1,8 @@
let gMimeSvc = Cc["@mozilla.org/mime;1"].getService(Ci.nsIMIMEService);
let gHandlerSvc = Cc["@mozilla.org/uriloader/handler-service;1"].getService(Ci.nsIHandlerService);
Services.prefs.setBoolPref("browser.preferences.inContent", true);
function setupFakeHandler() {
let info = gMimeSvc.getFromTypeAndExtension("text/plain", "foo.txt");
ok(info.possibleLocalHandlers.length, "Should have at least one known handler");
@ -92,5 +94,6 @@ add_task(function*() {
registerCleanupFunction(function() {
let infoToModify = gMimeSvc.getFromTypeAndExtension("text/x-test-handler", null);
gHandlerSvc.remove(infoToModify);
Services.prefs.clearUserPref("browser.preferences.inContent");
});