[Webkit-unassigned] [Bug 245136] New: The apparence of error images is different when loading by https:// and file://

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Sep 13 06:13:09 PDT 2022


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

            Bug ID: 245136
           Summary: The apparence of error images is different when
                    loading by https:// and file://
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Images
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: cathiechen at igalia.com
                CC: sabouhallawa at apple.com

Created attachment 462315

  --> https://bugs.webkit.org/attachment.cgi?id=462315&action=review

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.

-- 
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/20220913/ac899ac0/attachment.htm>


More information about the webkit-unassigned mailing list