Conflicting Files ? Failure

User tests: Successful: Unsuccessful:

avatar 810
810
1 Jan 2020

Enabled by default (tracking bug) in:

Chrome for desktop release 80
Chrome for Android release 80

Consensus & Standardization
After a feature ships in Chrome, the values listed here are not guaranteed to be up to date.

Firefox:    Shipped
Edge:    No public signals
Edge - chromium:   Shipped
Safari:    No public signals
Web Developers:    Positive

Pull Request for Issue # .

Summary of Changes

Testing Instructions

Expected result

Actual result

Documentation Changes Required

avatar 810 810 - open - 1 Jan 2020
avatar 810 810 - change - 1 Jan 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 1 Jan 2020
Category Libraries Front End Templates (site)
avatar brianteeman
brianteeman - comment - 1 Jan 2020

You need to update templateDetails.xml as well to list the new file

And I am guessing that libraries\src\Document\OpensearchDocument.php also needs updating to support the svg

avatar 810 810 - change - 1 Jan 2020
Labels Added: ?
avatar HLeithner
HLeithner - comment - 2 Jan 2020

The code should be refactored and not only copy paste the ico code if we add svg we could png,gif and jpg too (not sure if it's in the specs but all browsers supports them)

avatar 810 810 - change - 2 Jan 2020
Title
[4.0] Add svg favicon support
[4.0] Favicon extensions support
avatar 810 810 - edited - 2 Jan 2020
avatar brianteeman
brianteeman - comment - 2 Jan 2020

As far as I understand the use of the mimetype is not recommended for current browsers. And anyway you have the wrong mimetypes

https://bitsofco.de/all-about-favicons-and-touch-icons/

avatar 810
810 - comment - 2 Jan 2020

Safari and firefox is already supporting it. Chrome is supported on Feb 4.

I believe there will be no joomla 4.0 beta before that date, so its save to add it now.

avatar brianteeman
brianteeman - comment - 2 Jan 2020

Thats not what I meant. The mimetype you have set in the code are not correct and its not recommended to use it anyway

avatar 810
810 - comment - 2 Jan 2020

could you tell me which mimetype is wrong, for my knowledge they are correct.

from the demo page (source: chrome)

<link href="favicon.ico" rel="shortcut icon" type="image/vnd.microsoft.icon">
<link rel="icon" type="image/svg+xml" href="favicon.svg"/>
<link rel="alternate icon" type="image/png" href="favicon.png"/>
avatar brianteeman
brianteeman - comment - 2 Jan 2020

sorry looks like I was looking at it before you updated the types

avatar Quy
Quy - comment - 2 Jan 2020

Seems excessive on each page load to do 12 file checks/disk access.

avatar HLeithner
HLeithner - comment - 2 Jan 2020

Seems excessive on each page load to do 12 file checks/disk access.

I wrote already a PR for this https://github.com/810/joomla-cms/pull/1

avatar 810
810 - comment - 3 Jan 2020

still error on api test:


Body: <br />
--
206 | <b>Warning</b>:  dir(/tests/www/test-install/api/templates/system): failed to open dir: No such file or directory in <b>/tests/www/test-install/libraries/src/Document/HtmlDocument.php</b> on line <b>695</b><br />
207 | Error: Call to a member function read() on boolean: Could not match accept header
avatar brianteeman
brianteeman - comment - 4 Jan 2020

https://support.google.com/webmasters/answer/9290858

Your favicon should be a multiple of 48px square, for example: 48x48px, 96x96px, 144x144px and so on. SVG files, of course, do not have a specific size. Any valid favicon format is supported. Google will rescale your image to 16x16px for use in search results, so make sure that it looks good at that resolution. Note: do not provide a 16x16px favicon.

avatar joomla-cms-bot joomla-cms-bot - change - 6 Jan 2020
Category Libraries Front End Templates (site) Administration Templates (admin) Libraries Front End Templates (site)
avatar 810
810 - comment - 27 Jan 2020

RTC ?

avatar 810
810 - comment - 6 Feb 2020

Ok chrome has released the new version with support, we can now set it to rtc

avatar Quy
Quy - comment - 6 Feb 2020

My concern is that the same file check is done with each page load. Would it be better to have a setting to select which format(s) have been installed?

avatar Quy
Quy - comment - 24 Mar 2020

@wilsonge Is my concern valid?

avatar wilsonge
wilsonge - comment - 24 Mar 2020

First thanks for the prod here :)

Where would you put the setting? I mean I agree that it's not ideal to loop through these things on each page load. but at the same time I'm not sure exactly where we could put the setting where it's logical.

If someone uploads an SVG for example - they put it in the active template directory. So logical is template component global config. But if they have multiple templates then it may not be the same file (or extension). But only the template can control it's own settings.

To me it's probably something we should cache. But I dunno if we have a mechanism within the cache driver to store specific pieces of information like this.

avatar coolcat-creations
coolcat-creations - comment - 9 Apr 2020

Hello everyone, I wonder if this plugin is useful for favicons in Joomla, if so I am happy to contribute it as a PR.
(Before surely the code would need to be adapted to Joomla 4)

https://github.com/coolcat-creations/DBfavicon

Adds favicons in different sizes + possibility to enable disable

Adds apple-touch-icons in different sizes + possibility to enable disable

Adds android-icons in different sizes
    Link behaviour
    Force screen orientation
    Customize Colour of task bar
    generates and adds manifest.json for android
    Customize Colour of task bar
    possibility to enable disable

Adds Windows tiles
    Set up tile colour
    Adds browserconfig.xml file to root folder for mstiles
    possibility to enable disable

This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/27393.
avatar HLeithner
HLeithner - comment - 10 Apr 2020

Hello everyone, I wonder if this plugin is useful for favicons in Joomla, if so I am happy to contribute it as a PR.
(Before surely the code would need to be adapted to Joomla 4)

https://github.com/coolcat-creations/DBfavicon

Adds favicons in different sizes + possibility to enable disable

Adds apple-touch-icons in different sizes + possibility to enable disable

Adds android-icons in different sizes
    Link behaviour
    Force screen orientation
    Customize Colour of task bar
    generates and adds manifest.json for android
    Customize Colour of task bar
    possibility to enable disable

Adds Windows tiles
    Set up tile colour
    Adds browserconfig.xml file to root folder for mstiles
    possibility to enable disable

This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/27393.

I think a plugin would be the wrong approach for a native integration. But integrating this directly into HtmlDocument and in the template style part of joomla. This would allow every template to use it without knowing too much about the necessary settings.

One concern could be that this is a really fast moving target. My feeling is that ever 2 month there is a new property or resolution or other setting and two other get deprecated.

But I think this should a an own issue not not discussed as part of this pr.

avatar coolcat-creations
coolcat-creations - comment - 14 Apr 2020

I think a plugin would be the wrong approach for a native integration. But integrating this directly into HtmlDocument and in the template style part of joomla. This would allow every template to use it without knowing too much about the necessary settings.

One concern could be that this is a really fast moving target. My feeling is that ever 2 month there is a new property or resolution or other setting and two other get deprecated.

But I think this should a an own issue not not discussed as part of this pr.

This code at least did not change since 4 Years. If you can help me how to implement it properly I am happy to contribute this to the core.

avatar brianteeman
brianteeman - comment - 14 Apr 2020

This code at least did not change since 4 Years.

@HLeithner is talking about new formats like using svg and other formats being dropped
https://www.emergeinteractive.com/insights/detail/the-essentials-of-favicons/

avatar coolcat-creations
coolcat-creations - comment - 14 Apr 2020

This code at least did not change since 4 Years.

@HLeithner is talking about new formats like using svg and other formats being dropped
https://www.emergeinteractive.com/insights/detail/the-essentials-of-favicons/

Yes and what I meant is that this plugin already has some more modern features than Joomla has now. Before implementing svg here we should know how to handle svg in Joomla at all.

avatar priyankaSahutekdi priyankaSahutekdi - test_item - 7 Nov 2020 - Tested successfully
avatar priyankaSahutekdi
priyankaSahutekdi - comment - 7 Nov 2020

I have tested this item successfully on 173ea48

Verified in Chrome, Safari, Mozilla


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/27393.

avatar punambaravkar punambaravkar - test_item - 7 Nov 2020 - Tested successfully
avatar punambaravkar
punambaravkar - comment - 7 Nov 2020

I have tested this item successfully on 173ea48

Verified in Chrome, Safari, Mozilla


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/27393.

avatar Quy Quy - change - 21 Nov 2020
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2020-11-21 19:50:16
Closed_By Quy
Labels Added: Conflicting Files
avatar Quy Quy - close - 21 Nov 2020
avatar wilsonge
wilsonge - comment - 21 Nov 2020

@Quy any reason why you closed this one?

Add a Comment

Login with GitHub to post a comment