<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>245136</bug_id>
          
          <creation_ts>2022-09-13 06:13:09 -0700</creation_ts>
          <short_desc>The apparence of error images is different when loading by https:// and file://</short_desc>
          <delta_ts>2022-09-20 06:14:20 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Images</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=244386</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="cathiechen">cathiechen</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>sabouhallawa</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1898204</commentid>
    <comment_count>0</comment_count>
      <attachid>462315</attachid>
    <who name="cathiechen">cathiechen</who>
    <bug_when>2022-09-13 06:13:09 -0700</bug_when>
    <thetext>Created attachment 462315
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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1899793</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-09-20 06:14:20 -0700</bug_when>
    <thetext>&lt;rdar://problem/100169535&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>462315</attachid>
            <date>2022-09-13 06:13:09 -0700</date>
            <delta_ts>2022-09-13 06:13:09 -0700</delta_ts>
            <desc>error-image.html</desc>
            <filename>error-image-004.html</filename>
            <type>text/html</type>
            <size>91</size>
            <attacher name="cathiechen">cathiechen</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+Cgo8aW1nIHNyYz0iZXJyb3IucG5nIiBzdHlsZT0id2lkdGg6IDEwMHB4
OyBiYWNrZ3JvdW5kLWNvbG9yOiBjYWRldGJsdWU7Ij4KCg==
</data>

          </attachment>
      

    </bug>

</bugzilla>