| Summary: | The apparence of error images is different when loading by https:// and file:// | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | cathiechen <cathiechen> | ||||
| Component: | Images | Assignee: | Nobody <webkit-unassigned> | ||||
| Status: | NEW --- | ||||||
| Severity: | Normal | CC: | sabouhallawa, webkit-bug-importer | ||||
| Priority: | P2 | Keywords: | InRadar | ||||
| Version: | WebKit Nightly Build | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=244386 | ||||||
| Attachments: |
|
||||||
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.