<?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>6212</bug_id>
          
          <creation_ts>2005-12-22 23:12:19 -0800</creation_ts>
          <short_desc>Investigate disallowing some XMLHttpRequest headers from being set via setRequestHeader</short_desc>
          <delta_ts>2007-01-15 10:19:15 -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>XML</component>
          <version>420+</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <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="Alexey Proskuryakov">ap</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>alice.barraclough</cc>
    
    <cc>bugs-webkit</cc>
    
    <cc>ian</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>26406</commentid>
    <comment_count>0</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2005-12-22 23:12:19 -0800</bug_when>
    <thetext>Firefox blocks setting some XMLHttpRequest  headers for security reasons. All or most of these are 
already overridden by the network layer in WebKit, but that needs to be verified, and the checks should 
probably be added to the cross-platform layer. See:

http://whatwg.org/specs/web-apps/current-work/#setrequestheader
https://bugzilla.mozilla.org/show_bug.cgi?id=302809
https://bugzilla.mozilla.org/show_bug.cgi?id=302263
https://bugzilla.mozilla.org/show_bug.cgi?id=308484</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26690</commentid>
    <comment_count>1</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2005-12-26 17:54:22 -0800</bug_when>
    <thetext>I don&apos;t necessarily agree that we should add the prohibition to the cross-platform layer.

But it is indeed worth researching this.

I don&apos;t really like having a P1 bug for something that might not even be broken, though.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26699</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2005-12-26 21:52:58 -0800</bug_when>
    <thetext>(In reply to comment #1)
I&apos;m not sure if this counts as broken, but WebKit at least allows overriding Via (https://
bugzilla.mozilla.org/show_bug.cgi?id=302263#c5) and doesn&apos;t ignore Content-Length set on empty 
requests (https://bugzilla.mozilla.org/show_bug.cgi?id=302263#c17). Possibly more.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28076</commentid>
    <comment_count>3</comment_count>
    <who name="Alice Liu">alice.barraclough</who>
    <bug_when>2006-01-09 16:26:19 -0800</bug_when>
    <thetext>&lt;rdar://problem/4403688&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28480</commentid>
    <comment_count>4</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2006-01-15 02:42:54 -0800</bug_when>
    <thetext>It is also somewhat unclear how security violations should be handled in different cases (silently ignoring 
vs. throwing).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>30436</commentid>
    <comment_count>5</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2006-01-28 17:35:27 -0800</bug_when>
    <thetext>Setting this to P2. If we find any real examples of problems, they might qualify as P1 bugs.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34779</commentid>
    <comment_count>6</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2007-01-15 10:19:15 -0800</bug_when>
    <thetext>A fix was committed in revision 18863 (brought in sync with the draft spec).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>