Bug 911904 - Avoid a circular dependency finding html file handlers. r=margaret

This commit is contained in:
Wes Johnston 2014-02-21 13:56:39 -08:00
Родитель 8aea92c4e5
Коммит e2f93e6534
1 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -42,9 +42,11 @@ var HelperApps = {
get defaultHtmlHandlers() {
delete this.defaultHtmlHandlers;
let handlers = this.getAppsForUri(Services.io.newURI("http://www.example.com/index.html", null, null));
this.defaultHtmlHandlers = {};
let handlers = this.getAppsForUri(Services.io.newURI("http://www.example.com/index.html", null, null), {
filterHtml: false
});
handlers.forEach(function(app) {
this.defaultHtmlHandlers[app.name] = app;
}, this);