Bug 247947

Summary: favicon doesn't load when using http basic auth
Product: WebKit Reporter: Pierre Ossman <ossman>
Component: Page LoadingAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: achristensen, beidson, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 16   
Hardware: Unspecified   
OS: Unspecified   

Description Pierre Ossman 2022-11-15 07:43:40 PST
If a page is protected by HTTP's "basic" authentication, then both Safari and Epiphany fail to show the correct favicon for the page. Instead, Safari shows a letter icon, and Epiphany shows nothing at all.

From the web logs I can see that WebKit requests the page as normal. Once it has the HTML page, and hence the favicon URL, it then does a request for that. However, it fails to include the authentication data, so it gets a 401 back:

> 2022-11-10 15:36:10 INFO tlwebadm[8378]: [::ffff:10.48.2.194] 'GET /images/icons/icon.ico HTTP/1.1' 401 -
Comment 1 Radar WebKit Bug Importer 2022-11-15 19:01:56 PST
<rdar://problem/102398246>