<?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>137287</bug_id>
          
          <creation_ts>2014-09-30 22:15:00 -0700</creation_ts>
          <short_desc>For a Date object from a different frame: &quot;&quot;+date !== date.toString()</short_desc>
          <delta_ts>2016-09-09 10:55:33 -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>528+ (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=119898</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="Will Thimbleby">will</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>ggaren</cc>
    
    <cc>sam</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1038461</commentid>
    <comment_count>0</comment_count>
      <attachid>238997</attachid>
    <who name="Will Thimbleby">will</who>
    <bug_when>2014-09-30 22:15:00 -0700</bug_when>
    <thetext>Created attachment 238997
Sandboxed date string conversion test case.

Given a sandboxing iFrame, after creating a Date object from the sandbox, calling date.toString() gives a different result to calling &quot;&quot;+date.

The automatic conversion of the date to a string when appended to a string is wrong:
&quot;&quot;+date === 1412140297227


See attachment with test case.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1039553</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2014-10-04 17:07:37 -0700</bug_when>
    <thetext>This happens any time the date object is created via a different frame - it does not have to be display:none, and it doesn&apos;t have to be empty.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1228219</commentid>
    <comment_count>2</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2016-09-09 10:55:33 -0700</bug_when>
    <thetext>&lt;rdar://problem/28228212&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>238997</attachid>
            <date>2014-09-30 22:15:00 -0700</date>
            <delta_ts>2014-09-30 22:15:00 -0700</delta_ts>
            <desc>Sandboxed date string conversion test case.</desc>
            <filename>sandbox-date-tests.html</filename>
            <type>text/html</type>
            <size>1082</size>
            <attacher name="Will Thimbleby">will</attacher>
            
              <data encoding="base64">PGh0bWw+CjxoZWFkPgogICAgPG1ldGEgaHR0cC1lcXVpdj0iY29udGVudC10eXBlIiBjb250ZW50
PSJ0ZXh0L2h0bWw7IGNoYXJzZXQ9dXRmLTgiPgogICAgPHRpdGxlPlNhbmRib3ggVGVzdHM8L3Rp
dGxlPgogICAgCiAgICA8c2NyaXB0IHR5cGU9InRleHQvamF2YXNjcmlwdCI+CiAgICAgICAgZnVu
Y3Rpb24gcnVuKCkgewogICAgICAgICAgICB2YXIgbGlzdCA9IGRvY3VtZW50LmdldEVsZW1lbnRC
eUlkKCJ0ZXN0cyIpOwogICAgICAgICAgICB2YXIgc2FuZGJveCA9IGRvY3VtZW50LmdldEVsZW1l
bnRCeUlkKCJzYW5kYm94IikuY29udGVudFdpbmRvdzsKICAgICAgICAgICAgCiAgICAgICAgICAg
IHZhciBkYXRlID0gbmV3IHNhbmRib3guRGF0ZSgpOwogICAgICAgICAgICB2YXIgcmVzdWx0ID0g
IiIrZGF0ZSA9PT0gZGF0ZS50b1N0cmluZygpOwogICAgICAgICAgICAKICAgICAgICAgICAgdmFy
IHRlc3QgPSBkb2N1bWVudC5jcmVhdGVFbGVtZW50KCJsaSIpOwogICAgICAgICAgICBsaXN0LmFw
cGVuZENoaWxkKHRlc3QpOwogICAgICAgICAgICB0ZXN0LmlubmVySFRNTCA9ICIoXCJcIitkYXRl
ID09PSBkYXRlLnRvU3RyaW5nKCkpID09PSAiICsgcmVzdWx0OwogICAgICAgICAgICAKICAgICAg
ICAgICAgdGVzdCA9IGRvY3VtZW50LmNyZWF0ZUVsZW1lbnQoImxpIik7CiAgICAgICAgICAgIGxp
c3QuYXBwZW5kQ2hpbGQodGVzdCk7CiAgICAgICAgICAgIHRlc3QuaW5uZXJIVE1MID0gIlwiXCIr
ZGF0ZSA9PT0gIiArICgiIitkYXRlKTsKICAgICAgICAgICAgCiAgICAgICAgICAgIHRlc3QgPSBk
b2N1bWVudC5jcmVhdGVFbGVtZW50KCJsaSIpOwogICAgICAgICAgICBsaXN0LmFwcGVuZENoaWxk
KHRlc3QpOwogICAgICAgICAgICB0ZXN0LmlubmVySFRNTCA9ICJkYXRlLnRvU3RyaW5nKCkgPT09
ICIgKyBkYXRlLnRvU3RyaW5nKCk7CiAgICAgICAgfQogICAgPC9zY3JpcHQ+CjwvaGVhZD4KCjxi
b2R5IG9ubG9hZD0icnVuKCkiPgoKPGlmcmFtZSBpZD0ic2FuZGJveCIgc3R5bGU9ImRpc3BsYXk6
bm9uZSI+PC9pZnJhbWU+Cgo8dWwgaWQ9InRlc3RzIj4KPC91bD4KCjwvYm9keT4KPC9odG1sPgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>