зеркало из https://github.com/mozilla/gecko-dev.git
Bug 911904 - Avoid a circular dependency finding html file handlers. r=margaret
This commit is contained in:
Родитель
8aea92c4e5
Коммит
e2f93e6534
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче