Bug 245136 - The apparence of error images is different when loading by https:// and file://
Summary: The apparence of error images is different when loading by https:// and file://
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Images (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-09-13 06:13 PDT by cathiechen
Modified: 2022-09-20 06:14 PDT (History)
2 users (show)

See Also:


Attachments
error-image.html (91 bytes, text/html)
2022-09-13 06:13 PDT, cathiechen
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description cathiechen 2022-09-13 06:13:09 PDT
Created attachment 462315 [details]
error-image.html

If we load the attached page directly by https://, the size of error image is 100px x 100px, and with a broken image indicator.
Yet, if we download the page and load it by file://, the size is 100px x 0px, and there is no broken image indicator.

Looked into the code, it seems in CachedResourceLoader::requestResource the request of file:// is canceled, because it knows the page is not accessible by checking the file system.
That makes shouldDisplayBrokenImageIcon() return false. So the appearance is different.
Comment 1 Radar WebKit Bug Importer 2022-09-20 06:14:20 PDT
<rdar://problem/100169535>