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

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>6493</bug_id>
          
          <creation_ts>2009-01-29 12:50:59 +0000</creation_ts>
          <short_desc>Use encoding of POSTing document for POST response if meta prescan fails</short_desc>
          <delta_ts>2010-10-04 14:32:56 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>pre-LC1 HTML5 spec (editor: Ian Hickson)</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>NoReply</keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Henri Sivonen">hsivonen</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>bzbarsky</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>23316</commentid>
    <comment_count>0</comment_count>
    <who name="Henri Sivonen">hsivonen</who>
    <bug_when>2009-01-29 12:50:59 +0000</bug_when>
    <thetext>If my reading of Gecko source code is correct, the encoding of the document initiating a POST should be used when parsing the POST response if the HTTP header, BOM and meta prescan encoding sources fail for the POST response.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23318</commentid>
    <comment_count>1</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2009-01-29 14:32:37 +0000</bug_when>
    <thetext>Henri, which code are you looking at here?  The charset detection stuff in nsHTMLDocument uses all sorts of sources of information, including the previous document, parent document, etc, etc...  is that what you&apos;re referring to?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23319</commentid>
    <comment_count>2</comment_count>
    <who name="Henri Sivonen">hsivonen</who>
    <bug_when>2009-01-29 14:59:51 +0000</bug_when>
    <thetext>I&apos;m referring to
http://mxr.mozilla.org/mozilla-central/source/content/html/document/src/nsHTMLDocument.cpp#844

I can&apos;t find any other occasion than a POST-based navigation where the encoding of the previous document is used.

I also saw that same-origin frames inherit charset from the parent, but I wasn&apos;t prepared to file a spec bug about that, yet.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23325</commentid>
    <comment_count>3</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2009-01-29 15:55:10 +0000</bug_when>
    <thetext>Ah, I didn&apos;t realize that was restricted to POST pages.

For what it&apos;s worth, I suspect that there&apos;s a security issue there, and had been planning to go through this code carefully and rewrite it.  See https://bugzilla.mozilla.org/show_bug.cgi?id=408457</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24466</commentid>
    <comment_count>4</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2009-04-01 00:55:33 +0000</bug_when>
    <thetext>According to my tests:
   http://www.hixie.ch/tests/adhoc/html/parsing/encoding/navigation/
...neither WebKit or Opera do this. So I haven&apos;t done it in the spec either.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>33047</commentid>
    <comment_count>5</comment_count>
    <who name="Maciej Stachowiak">mjs</who>
    <bug_when>2010-03-14 13:16:36 +0000</bug_when>
    <thetext>This bug predates the HTML Working Group Decision Policy.

If you are satisfied with the resolution of this bug, please change the state of this bug to CLOSED. If
you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

This bug is now being moved to VERIFIED. Please respond within two weeks. If this bug is not closed, reopened or escalated within two weeks, it may be marked as NoReply and will no longer be considered a pending comment.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>