<?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>8941</bug_id>
          
          <creation_ts>2006-05-16 10:32:02 -0700</creation_ts>
          <short_desc>document.cookie undefined for documents of type text/javascript</short_desc>
          <delta_ts>2006-05-22 05:02:58 -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>WebCore JavaScript</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>http://www.google.com/calendar/ping</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>8370</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Geoffrey Garen">ggaren</reporter>
          <assigned_to name="Anders Carlsson">andersca</assigned_to>
          <cc>a.bob</cc>
    
    <cc>andersca</cc>
    
    <cc>oster</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>42501</commentid>
    <comment_count>0</comment_count>
    <who name="Geoffrey Garen">ggaren</who>
    <bug_when>2006-05-16 10:32:02 -0700</bug_when>
    <thetext>1. navigate to www.google.com/calendar/ping
2. in the url field, enter &quot;javascript:alert(document.cookie)&quot;

--&gt; undefined in Safari; defined in FF

Maciej mentioned that the problem probably results from the fact that the document has type text/javascript instead of type text/html. We should figure out which document types need to support cookies (text/xml? text/xhtml?), and support them.

Anders, Maciej thought that your TextDocument change would fix this, but that doesn&apos;t seem to be the case.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42503</commentid>
    <comment_count>1</comment_count>
      <attachid>8352</attachid>
    <who name="Anders Carlsson">andersca</who>
    <bug_when>2006-05-16 10:51:41 -0700</bug_when>
    <thetext>Created attachment 8352
Inherit from HTMLDocument

This change fixes it for me. I thought I had included it when landing ImageDocument (there&apos;s even a ChangeLog entry about it)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42505</commentid>
    <comment_count>2</comment_count>
      <attachid>8352</attachid>
    <who name="Dave Hyatt">hyatt</who>
    <bug_when>2006-05-16 11:22:27 -0700</bug_when>
    <thetext>Comment on attachment 8352
Inherit from HTMLDocument

r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42509</commentid>
    <comment_count>3</comment_count>
      <attachid>8352</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2006-05-16 11:47:35 -0700</bug_when>
    <thetext>Comment on attachment 8352
Inherit from HTMLDocument

We need to move things like cookie out of HTMLDocument and into Document. The only things that should be in HTMLDocument are things we don&apos;t need in a true XHTML document.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42510</commentid>
    <comment_count>4</comment_count>
    <who name="Anders Carlsson">andersca</who>
    <bug_when>2006-05-16 12:01:48 -0700</bug_when>
    <thetext>Yes, but I think that&apos;s a separate issue. Both Opera and Firefox use HTMLDocuments for text views and I think we should too</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>8352</attachid>
            <date>2006-05-16 10:51:41 -0700</date>
            <delta_ts>2006-05-16 11:22:27 -0700</delta_ts>
            <desc>Inherit from HTMLDocument</desc>
            <filename>text-document-parent.txt</filename>
            <type>text/plain</type>
            <size>1555</size>
            <attacher name="Anders Carlsson">andersca</attacher>
            
              <data encoding="base64">SW5kZXg6IENoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBDa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bnRhdGlvbiogaW1wbGVtZW50YXRpb24sIEZyYW1lVmlldyogdikKLSAgICA6IERvY3VtZW50
KGltcGxlbWVudGF0aW9uLCB2KQorICAgIDogSFRNTERvY3VtZW50KGltcGxlbWVudGF0aW9uLCB2
KQogewogfQogCkluZGV4OiBsb2FkZXIvVGV4dERvY3VtZW50LmgKPT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gbG9h
ZGVyL1RleHREb2N1bWVudC5oCShyZXZpc2lvbiAxNDQxNikKKysrIGxvYWRlci9UZXh0RG9jdW1l
bnQuaAkod29ya2luZyBjb3B5KQpAQCAtMjQsMTQgKzI0LDE0IEBACiAjaWZuZGVmIFRleHREb2N1
bWVudF9oCiAjZGVmaW5lIFRleHREb2N1bWVudF9oCiAKLSNpbmNsdWRlICJEb2N1bWVudC5oIgor
I2luY2x1ZGUgIkhUTUxEb2N1bWVudC5oIgogCiBuYW1lc3BhY2UgV2ViQ29yZSB7CiAKIGNsYXNz
IERPTUltcGxlbWVudGF0aW9uOwogY2xhc3MgRnJhbWVWaWV3OwogCi1jbGFzcyBUZXh0RG9jdW1l
bnQgOiBwdWJsaWMgRG9jdW1lbnQKK2NsYXNzIFRleHREb2N1bWVudCA6IHB1YmxpYyBIVE1MRG9j
dW1lbnQKIHsKIHB1YmxpYzoKICAgICBUZXh0RG9jdW1lbnQoRE9NSW1wbGVtZW50YXRpb24qLCBG
cmFtZVZpZXcqID0gMCk7Cg==
</data>
<flag name="review"
          id="2361"
          type_id="1"
          status="+"
          setter="hyatt"
    />
          </attachment>
      

    </bug>

</bugzilla>