<?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>19193</bug_id>
          
          <creation_ts>2008-05-22 09:43:26 -0700</creation_ts>
          <short_desc>data:// URLs should not inherit charset from parent frame</short_desc>
          <delta_ts>2023-12-20 07:49:32 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Page Loading</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexey Proskuryakov">ap</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>annevk</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>81209</commentid>
    <comment_count>0</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2008-05-22 09:43:26 -0700</bug_when>
    <thetext>In Firefox, data:// URLs do not inherit charset from parent frame. This is important because of cases such as &lt;iframe src=&quot;data:image/svg+xml,...&quot;&gt; - the URL should be decoded as UTF-8 for correct round-tripping.

On Leopard, this is currently masked by &lt;rdar://problem/5845875&gt; -[NSURLResponse textEncoding] incorrectly reports us-ascii encoding for data: URLs. Yet, we can fix this for other operating systems.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1977863</commentid>
    <comment_count>1</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-09-16 15:19:38 -0700</bug_when>
    <thetext>@Anne &amp; @Alexey - Is this still applicable?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1978035</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2023-09-18 08:07:35 -0700</bug_when>
    <thetext>FWIW, &lt;rdar://problem/5845875&gt; was fixed a long time ago. Other than that, I do not remember much about this, would need to investigate.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1978045</commentid>
    <comment_count>3</comment_count>
    <who name="Anne van Kesteren">annevk</who>
    <bug_when>2023-09-18 09:04:32 -0700</bug_when>
    <thetext>I cannot reproduce inheritance with this test case:

data:text/html;charset=utf-8,%FF?%FF%3Ciframe%20src=%22data:text/html,%25FF?%25FF%22%3E

In particular the inner document shows ÿs as expected (and the outer �s).

Similar result here with a non-data: URL as top-level document:

http://software.hixie.ch/utilities/js/live-dom-viewer/saved/12013

I&apos;d be inclined to close this as CONFIGURATION CHANGED based on that.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>