Bug 247947 - favicon doesn't load when using http basic auth
Summary: favicon doesn't load when using http basic auth
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Page Loading (show other bugs)
Version: Safari 16
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-11-15 07:43 PST by Pierre Ossman
Modified: 2022-11-15 19:01 PST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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>