Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(340)

Issue 1138583002: Make Window.prototype.toString return [object Window] at all times. (Closed)

Created:
5 years, 7 months ago by arv (Not doing code reviews)
Modified:
5 years, 7 months ago
Reviewers:
jsbell, adamk
CC:
blink-reviews, blink-reviews-bindings_chromium.org, vivekg_samsung, arv+blink, vivekg
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Make Window.prototype.toString return [object Window] at all times. The old code was incorrectly falling back to Object.prototype.toString.call which does not work as expected without full support for @@toSringTag BUG=239915 R=adamk, jsbell Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=195193

Patch Set 1 #

Total comments: 3

Patch Set 2 : Use WindowPrototype in tests and fix a test failure #

Patch Set 3 : Fix one test line #

Total comments: 1

Patch Set 4 : shouldBeEqualToString #

Unified diffs Side-by-side diffs Delta from patch set Stats (+132 lines, -10 lines) Patch
M LayoutTests/fast/events/event-view-toString-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
A LayoutTests/http/tests/security/cross-frame-window-to-tostring.html View 1 2 3 1 chunk +86 lines, -0 lines 0 comments Download
A LayoutTests/http/tests/security/cross-frame-window-to-tostring-expected.txt View 1 2 3 1 chunk +39 lines, -0 lines 0 comments Download
A LayoutTests/http/tests/security/resources/cross-frame-window-to-string-test.html View 1 chunk +4 lines, -0 lines 0 comments Download
M Source/bindings/core/v8/custom/V8WindowCustom.cpp View 1 chunk +2 lines, -9 lines 0 comments Download

Messages

Total messages: 19 (2 generated)
arv (Not doing code reviews)
PTAL
5 years, 7 months ago (2015-05-08 21:36:53 UTC) #1
arv (Not doing code reviews)
https://codereview.chromium.org/1138583002/diff/1/LayoutTests/http/tests/security/cross-frame-window-to-tostring-expected.txt File LayoutTests/http/tests/security/cross-frame-window-to-tostring-expected.txt (right): https://codereview.chromium.org/1138583002/diff/1/LayoutTests/http/tests/security/cross-frame-window-to-tostring-expected.txt#newcode7 LayoutTests/http/tests/security/cross-frame-window-to-tostring-expected.txt:7: FAIL Object.prototype.toString.call(window) should be [object Window]. Was [object global]. ...
5 years, 7 months ago (2015-05-08 21:42:24 UTC) #2
adamk
https://codereview.chromium.org/1138583002/diff/1/LayoutTests/http/tests/security/cross-frame-window-to-tostring.html File LayoutTests/http/tests/security/cross-frame-window-to-tostring.html (right): https://codereview.chromium.org/1138583002/diff/1/LayoutTests/http/tests/security/cross-frame-window-to-tostring.html#newcode15 LayoutTests/http/tests/security/cross-frame-window-to-tostring.html:15: shouldBe("Object.prototype.toString.call(window)", "'[object Window]'"); On 2015/05/08 21:42:24, arv wrote: > ...
5 years, 7 months ago (2015-05-08 22:03:04 UTC) #3
arv (Not doing code reviews)
On 2015/05/08 22:03:04, adamk wrote: > https://codereview.chromium.org/1138583002/diff/1/LayoutTests/http/tests/security/cross-frame-window-to-tostring.html > File LayoutTests/http/tests/security/cross-frame-window-to-tostring.html > (right): > > https://codereview.chromium.org/1138583002/diff/1/LayoutTests/http/tests/security/cross-frame-window-to-tostring.html#newcode15 ...
5 years, 7 months ago (2015-05-08 22:08:42 UTC) #4
adamk
Looks like some real failures in event-view-toString?
5 years, 7 months ago (2015-05-09 00:59:22 UTC) #5
arv (Not doing code reviews)
On 2015/05/09 00:59:22, adamk wrote: > Looks like some real failures in event-view-toString? I was ...
5 years, 7 months ago (2015-05-09 01:17:00 UTC) #6
arv (Not doing code reviews)
Use WindowPrototype in tests and fix a test failure
5 years, 7 months ago (2015-05-11 14:45:14 UTC) #7
arv (Not doing code reviews)
Fix one test line
5 years, 7 months ago (2015-05-11 14:46:58 UTC) #8
arv (Not doing code reviews)
PTAL
5 years, 7 months ago (2015-05-11 15:11:33 UTC) #9
adamk
lgtm
5 years, 7 months ago (2015-05-11 15:46:40 UTC) #10
jsbell
lgtm https://codereview.chromium.org/1138583002/diff/40001/LayoutTests/http/tests/security/cross-frame-window-to-tostring.html File LayoutTests/http/tests/security/cross-frame-window-to-tostring.html (right): https://codereview.chromium.org/1138583002/diff/40001/LayoutTests/http/tests/security/cross-frame-window-to-tostring.html#newcode13 LayoutTests/http/tests/security/cross-frame-window-to-tostring.html:13: shouldBe("window + ''", "'[object Window]'"); These could use ...
5 years, 7 months ago (2015-05-11 16:18:09 UTC) #11
arv (Not doing code reviews)
On 2015/05/11 16:18:09, jsbell wrote: > lgtm > > https://codereview.chromium.org/1138583002/diff/40001/LayoutTests/http/tests/security/cross-frame-window-to-tostring.html > File LayoutTests/http/tests/security/cross-frame-window-to-tostring.html > (right): ...
5 years, 7 months ago (2015-05-11 16:42:55 UTC) #12
arv (Not doing code reviews)
shouldBeEqualToString
5 years, 7 months ago (2015-05-11 16:45:38 UTC) #13
arv (Not doing code reviews)
Joshua, Thanks for the review. CQ'ing...
5 years, 7 months ago (2015-05-11 16:46:22 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1138583002/60001
5 years, 7 months ago (2015-05-11 16:47:34 UTC) #17
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://src.chromium.org/viewvc/blink?view=rev&revision=195193
5 years, 7 months ago (2015-05-11 18:26:51 UTC) #18
arv (Not doing code reviews)
5 years, 6 months ago (2015-06-02 21:54:38 UTC) #19
Message was sent while issue was closed.
A revert of this CL (patchset #4 id:60001) has been created in
https://codereview.chromium.org/1163943002/ by arv@chromium.org.

The reason for reverting is: Going to disable --harmony-tostring until our
bindings have been updated..

Powered by Google App Engine
This is Rietveld 408576698