[Webkit-unassigned] [Bug 243722] New: cannot update favicon from database config by javascript in safari private mode

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Aug 9 01:13:14 PDT 2022


https://bugs.webkit.org/show_bug.cgi?id=243722

            Bug ID: 243722
           Summary: cannot update favicon from database config by
                    javascript in safari private mode
           Product: WebKit
           Version: Safari 15
          Hardware: iPhone / iPad
                OS: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKit Website
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: trunglee155 at gmail.com
                CC: jond at apple.com

I have a website (reactjs code).
Last year, my site's favicon is only one. And I setting favicon by <link rel="icon" type="image/x-icon" href="/images/favicon.ico"> in head tag.

Then my user want to add favicon and title config from database.

In index.js file,  app will call api getFavicon, and then update favicon using bellow code.

var link = document.querySelector("link[rel~='icon']");
if (!link) {
    link = document.createElement('link');
    link.rel = 'icon';
    document.getElementsByTagName('head')[0].appendChild(link);
}
link.href = faviconFromApi;


After we update favicon from database
All browser work fine. But only in safari private mode, favicon is not change. it still display the old favicon we added last year.

We try to remove cache and test again but it still not change. But if we use safari normal mode, it work fine (favicon will change exactly).

Then I try to another way. remove cache and restart our iphones.
And the results are, in private mode, ios 15.6 and ios 15.1, the favicon update successully. But only ios 15.5 it still not work.

Please help me to fix it. How to make favicon in safari private mode change like what is safari normal mode work.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220809/7a1b4fb5/attachment.htm>


More information about the webkit-unassigned mailing list