Bug 1242666 - Support apple-touch-icon-precomposed too r=mfinkle draft
authorAndrzej Hunt <ahunt@mozilla.com>
Mon, 01 Feb 2016 11:25:52 -0800
changeset 327753 479daf6a2e82c6c5dd0745f21065c7666fc164e1
parent 327752 fd4b62ebe725c28631be99c005060b7d57718c31
child 327771 c2332a167c897d2fe4041b9eddc6dd16b7238fb7
push id10282
push userahunt@mozilla.com
push dateMon, 01 Feb 2016 19:26:50 +0000
reviewersmfinkle
bugs1242666
milestone47.0a1
Bug 1242666 - Support apple-touch-icon-precomposed too r=mfinkle
mobile/android/chrome/content/browser.js
--- a/mobile/android/chrome/content/browser.js
+++ b/mobile/android/chrome/content/browser.js
@@ -4254,17 +4254,18 @@ Tab.prototype = {
         // Ignore on frames and other documents
         if (target.ownerDocument != this.browser.contentDocument)
           return;
 
         // Sanitize rel link
         let list = this.sanitizeRelString(target.rel);
         if (list.indexOf("[icon]") != -1) {
           jsonMessage = this.makeFaviconMessage(target);
-        } else if (list.indexOf("[apple-touch-icon]") != -1) {
+        } 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);
         } 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");
 
           if (!isFeed)
             return;