Instead of a thousand words (screenshot):
problem

In the first case (on the left) the link to the page is through an extension, in the second - a direct link to the same local page.

The meaning of the mini-extension is to put your custom page on a new opening tab. Clicked a new tab, a tab opens with an already open page. Here is manifest.json:

{ "manifest_version": 2, "name": "test", "version": "1.0", "chrome_url_overrides": { "newtab": "index.html" }, "icons": { "16": "16x16.png" }, "browser_action": { "default_icon": "16x16.png" } } 

and a page referring to a file named index.html for example

 <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>test</title> <link href="16x16.png" rel="SHORTCUT ICON"/> </head> <body> teeeeeeeeeeeeeeest </body> </html> 

Why? Why it happens? And how to overcome it? Google, but somehow difficult to formulate a question. Please understand and forgive for such a question, probably no one else will come in handy. Very much upset the lack of favicon .. (

  • found something, but how to understand it? there is no hope? : Your problem is that the newtab page doesn’t have a favicon by default. You can try it with a newtab . - qwertet
  • = (((((((((((((tell me that he is wrong: Sadly doesn’t need to add a message to the newtab page. I hope you can live without it;) - qwertet
  • however, other extensions do this, definitely, with the help of scripts - qwertet
  • one
    Show an example of an application that overwrites newtab and hangs its favorite icon there. - neluzhin

1 answer 1

It is impossible to add a favicon to a page with a new tab ( newtab ). Neither through <link> , nor through the manifest, nor through the Chrome Extensions API.

  • Yes, probably this is the essence of the question "is it possible to do without js" thanks. Sorry I can not vote yet. - qwertet
  • @qwertet you can mark my answer as a solution with a tick on the left, if it satisfied you. - neluzhin