<?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>29742</bug_id>
          
          <creation_ts>2009-09-25 10:50:18 -0700</creation_ts>
          <short_desc>[Chromium] Change window.toString() callback to match JSC</short_desc>
          <delta_ts>2009-09-28 15:30:30 -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 Misc.</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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="Nate Chapin">japhet</reporter>
          <assigned_to name="Nate Chapin">japhet</assigned_to>
          <cc>abarth</cc>
    
    <cc>ager</cc>
    
    <cc>dglazkov</cc>
    
    <cc>eric</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>150066</commentid>
    <comment_count>0</comment_count>
    <who name="Nate Chapin">japhet</who>
    <bug_when>2009-09-25 10:50:18 -0700</bug_when>
    <thetext>The V8 bindings currently access the global object wrapper instead of the DOMWindow wrapper in the toString() callback.  We should be accessing the DOMWindow wrapper, since we currently output [object global] instead of the expected [object DOMWindow].</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>150067</commentid>
    <comment_count>1</comment_count>
      <attachid>40124</attachid>
    <who name="Nate Chapin">japhet</who>
    <bug_when>2009-09-25 10:51:26 -0700</bug_when>
    <thetext>Created attachment 40124
patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>150148</commentid>
    <comment_count>2</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2009-09-25 14:18:55 -0700</bug_when>
    <thetext>You should list what test this affects.  Assuming that it affects a test?  If it doesn&apos;t then we need to add a test.

Adam and Dimitri are probably your two best WebKit reviewers here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>150150</commentid>
    <comment_count>3</comment_count>
      <attachid>40124</attachid>
    <who name="Adam Barth">abarth</who>
    <bug_when>2009-09-25 14:25:38 -0700</bug_when>
    <thetext>Comment on attachment 40124
patch

This looks great, but please list which LayoutTests this fixes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>150151</commentid>
    <comment_count>4</comment_count>
    <who name="Nate Chapin">japhet</who>
    <bug_when>2009-09-25 14:27:35 -0700</bug_when>
    <thetext>I initially started looking at it for LayoutTests/fast/events/event-trace.html, and from a run of all layout tests, it appears it will fix 2 and allow us to use default
expectations on about a dozen others.  There are some others that we&apos;re also
failing for other reasons that will still fail, but will be closer to
expectations.

I&apos;ll see if I can assemble a full list.

I can try and compile a full list if that would be helpful.(In reply to comment #3)
&gt; (From update of attachment 40124 [details])
&gt; This looks great, but please list which LayoutTests this fixes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>150158</commentid>
    <comment_count>5</comment_count>
    <who name="Nate Chapin">japhet</who>
    <bug_when>2009-09-25 14:36:44 -0700</bug_when>
    <thetext>The complete list, to the best of my knowledge, is: LayoutTests/fast/dom/Window/atob-btoa.html
LayoutTests/fast/dom/Window/window-lookup-precedence.html
LayoutTests/fast/dom/Window/window-postmessage-args.html
LayoutTests/fast/dom/Window/window-properties.html
LayoutTests/fast/events/event-trace.html
LayoutTests/fast/events/event-view-toString.html
LayoutTests/fast/js/eval-cross-window.html
LayoutTests/fast/js/eval-keyword-vs-function.html
LayoutTests/fast/js/toString-and-valueOf-override.html
LayoutTests/http/tests/security/cross-frame-access-custom.html
LayoutTests/http/tests/security/cross-frame-access-put.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>150166</commentid>
    <comment_count>6</comment_count>
      <attachid>40124</attachid>
    <who name="Adam Barth">abarth</who>
    <bug_when>2009-09-25 14:52:23 -0700</bug_when>
    <thetext>Comment on attachment 40124
patch

Awesome!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>150171</commentid>
    <comment_count>7</comment_count>
      <attachid>40124</attachid>
    <who name="Nate Chapin">japhet</who>
    <bug_when>2009-09-25 15:05:37 -0700</bug_when>
    <thetext>Comment on attachment 40124
patch

cq-

The Chromium WebKit canary is compile-broken at the moment, and I would like to verify precisely how the downstream expectations need to be changed before this gets integrated, so I want to wait on committing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>150685</commentid>
    <comment_count>8</comment_count>
    <who name="Nate Chapin">japhet</who>
    <bug_when>2009-09-28 15:30:30 -0700</bug_when>
    <thetext>Committed as r48841.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>40124</attachid>
            <date>2009-09-25 10:51:26 -0700</date>
            <delta_ts>2009-09-25 15:05:37 -0700</delta_ts>
            <desc>patch</desc>
            <filename>patch.txt</filename>
            <type>text/plain</type>
            <size>1613</size>
            <attacher name="Nate Chapin">japhet</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYkNvcmUvQ2hhbmdlTG9nDQo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09DQotLS0gV2ViQ29yZS9DaGFuZ2VM
b2cJKHJldmlzaW9uIDQ4NzU5KQorKysgV2ViQ29yZS9DaGFuZ2VMb2cJKHdvcmtpbmcgY29weSkK
QEAgLTEsMyArMSwxOCBAQAorMjAwOS0wOS0yNSAgTmF0ZSBDaGFwaW4gIDxqYXBoZXRAY2hyb21p
dW0ub3JnPgorCisgICAgICAgIFJldmlld2VkIGJ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V2Vi
Q29yZS9iaW5kaW5ncy92OC9jdXN0b20vVjhET01XaW5kb3dDdXN0b20uY3BwCSh3b3JraW5nIGNv
cHkpCkBAIC0zNjgsNyArMzY4LDEwIEBAIENBTExCQUNLX0ZVTkNfREVDTChET01XaW5kb3dCdG9h
KQogQ0FMTEJBQ0tfRlVOQ19ERUNMKERPTVdpbmRvd1RvU3RyaW5nKQogewogICAgIElOQ19TVEFU
UygiRE9NLkRPTVdpbmRvdy50b1N0cmluZygpIik7Ci0gICAgcmV0dXJuIGFyZ3MuVGhpcygpLT5P
YmplY3RQcm90b1RvU3RyaW5nKCk7CisgICAgdjg6OkhhbmRsZTx2ODo6T2JqZWN0PiBkb21XcmFw
cGVyID0gVjhET01XcmFwcGVyOjpsb29rdXBET01XcmFwcGVyKFY4Q2xhc3NJbmRleDo6RE9NV0lO
RE9XLCBhcmdzLlRoaXMoKSk7CisgICAgaWYgKGRvbVdyYXBwZXIuSXNFbXB0eSgpKQorICAgICAg
ICByZXR1cm4gYXJncy5UaGlzKCktPk9iamVjdFByb3RvVG9TdHJpbmcoKTsKKyAgICByZXR1cm4g
ZG9tV3JhcHBlci0+T2JqZWN0UHJvdG9Ub1N0cmluZygpOwogfQogCiBDQUxMQkFDS19GVU5DX0RF
Q0woRE9NV2luZG93Tk9QKQo=
</data>
<flag name="review"
          id="21308"
          type_id="1"
          status="+"
          setter="abarth"
    />
    <flag name="commit-queue"
          id="21332"
          type_id="3"
          status="-"
          setter="japhet"
    />
          </attachment>
      

    </bug>

</bugzilla>