Bug 1265710 - Treat apple-touch-icons like favicons and use them in the app UI. r=ahunt

Originally I wanted to keep them as a separate type of icon and store them separately.
But this is much simpler and a big improvement. We wanted to treat touch icons as
better favicons anyways and making them go through the same pipeline gives us exactly
that.

MozReview-Commit-ID: LgEd1Fl6a4t

--HG--
extra : rebase_source : 618c6aa41edb5f3a9ad12ed748714482c0a7eb4c
This commit is contained in:
Sebastian Kaspari 2016-06-03 19:48:16 +02:00
Родитель 09d3bcfff8
Коммит 2c68379e9b
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -4140,8 +4140,8 @@ Tab.prototype = {
jsonMessage = this.makeFaviconMessage(target);
} else if (list.indexOf("[apple-touch-icon]") != -1 ||
list.indexOf("[apple-touch-icon-precomposed]") != -1) {
let message = this.makeFaviconMessage(target);
this.addMetadata("touchIconList", message.href, message.size);
jsonMessage = this.makeFaviconMessage(target);
this.addMetadata("touchIconList", jsonMessage.href, jsonMessage.size);
} else if (list.indexOf("[alternate]") != -1 && aEvent.type == "DOMLinkAdded") {
let type = target.type.toLowerCase().replace(/^\s+|\s*(?:;.*)?$/g, "");
let isFeed = (type == "application/rss+xml" || type == "application/atom+xml");