Open Bug 1174589 Opened 6 years ago Updated 3 years ago

Handle link rel icon when attribute mask is present


(Core :: General, defect)

41 Branch
Not set



Tracking Status
firefox41 --- affected


(Reporter: karlcow, Unassigned)


(Blocks 1 open bug)


(Keywords: dev-doc-needed)

(probably to be put on the right component)

Anthony Ricaud (:rik) from bug 366324 comment #64:
> Twitter is providing a black icon [1]. I think this is related to Safari 9
> pinned tabs implementation [2]. They provide a <meta name="theme-color"
> content="#55acee"> for Safari. I don't know if websites can provide SVG
> icons with anything else than black to get the same result in Safari but a
> normal icon elsewhere. We should reach out to Twitter and Apple here, before
> Safari 9 ships.
> [1]
> [2]

This will create webcompat issues.

* Twitter   Bug 1174552
* Yelp      Bug 1174548
* Pinterest Bug 1174568 

Daniel Holbert sent an email to whatwg from bug 1174552 comment #5
> I emailed the WHATWG to ask for thoughts/suggestion/possible-standardization, BTW:
Blocks: 120352
I said "handle" as a precaution, whatever the decision be to implement a similar mechanism than Apple OR to decide to ignore links with mask. Maybe the quickest safe bet is for now to ignore it in some circumstances. And then see what we can do for the future in actually handling for other areas of the UI (Pinned Tabs for example)
As of today 2015-06-15

# Current Twitter Code:

 <link href="//" rel="shortcut icon" type="image/x-icon">
 <link rel="icon" sizes="any" mask href="">
 <meta name="theme-color" content="#55acee">

# Current Pinterest Code:

 <link rel="apple-touch-icon" href="">
 <link rel="icon" href="">
 <link rel="icon" sizes="any" mask href="">

 <!-- Removed markup -->

 <meta name="theme-color" content="#bd081c">

# Current Yelp code:

 <link rel="shortcut icon" href="">
 <link rel="icon" sizes="any" mask href="//">
 <meta name="theme-color" content="#c41200">
And we have already 3 threads about it

* [whatwg] Apple's new <link rel="icon" mask> not-quite-favicon syntax causing problems in other browsers; needs standardization?
* [whatwg] Icon mask and theme color
* [whatwg] A mask="" advisory flag for <link rel=icon>
We may not have to do anything here after all.  No one seems particularly married to the current syntax (with its compat issues), and there are several suggestions that don't cause compat issues.

Quoting Maciej (apple representative)'s latest post:
> It seems like the current leading candidate is:
> - Change <link rel=icon mask> to <link rel=mask-icon>,

(This would resolve the compat issues on our end.)
(In reply to Daniel Holbert [:dholbert] from comment #4)
> Quoting Maciej (apple representative)'s latest post:
> > It seems like the current leading candidate is:
> > - Change <link rel=icon mask> to <link rel=mask-icon>, 

This is the correct resource (Apple decision)
(thanks, sorry for pasting wrong link)
According to this message[1]:

> The markup changed in Developer Seed 3 and Public Beta 1 to simplify and have better backwards compatibility. Use the following markup instead:
> <link rel="mask-icon" href="website_icon.svg" color="red">  

With your help Nicolas, Anne created
Thanks a lot for the update. Useful.
You're welcome Karl, happy to help! ;-)

This bug is obsolete and should be closed.

(In reply to j.j. from comment #10)

This bug is obsolete and should be closed.

Anne, can you clarify what the status of the colorized icon stuff is? Thanks.

Flags: needinfo?(annevk)

Gijs, the markup mentioned in comment 7 is supported by Safari, web developers are allowed to use it per, but no processing model is defined as thus far no browser other than Safari is interested in implementing it. If we were interested in implementing rel=mask-icon + color we could ask a processing model to be added to the HTML Standard. And hopefully Apple could share some tests.

Flags: needinfo?(annevk)
You need to log in before you can comment on or make changes to this bug.