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

Issue 2501333002: binding: Makes window/frames/self attributes return itself. (Closed)

Created:
4 years, 1 month ago by Yuki
Modified:
4 years, 1 month ago
CC:
blink-reviews, blink-reviews-bindings_chromium.org, chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

binding: Makes window/frames/self attributes return itself. Per HTML spec[1], window, frames, and self attributes must return the global proxy object. This CL simply follows it. Note that these attributes are expected to never return null. We're currently breaking this assumption on detached frames. [1] https://html.spec.whatwg.org/multipage/browsers.html#dom-window BUG=618672 Committed: https://crrev.com/1c5231afadf1376cd206a64f0370fda8007254be Cr-Commit-Position: refs/heads/master@{#433178}

Patch Set 1 #

Patch Set 2 : Updated a layout test. #

Patch Set 3 : Uses cached accessors. #

Patch Set 4 : Stops using cached accessors for self and frames. #

Patch Set 5 : Completely stopped using cached accessors. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -35 lines) Patch
M third_party/WebKit/LayoutTests/fast/dom/Window/property-access-in-closure-after-navigation-expected.txt View 1 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/dom/Window/resources/property-access-in-closure-after-navigation-child.html View 1 1 chunk +34 lines, -21 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8Binding.h View 1 chunk +7 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/DOMWindow.h View 1 chunk +7 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/frame/DOMWindow.cpp View 1 chunk +2 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/frame/Window.idl View 3 4 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 48 (31 generated)
Yuki
Could you review this CL? When |x.self| is accessed, the call site already has access ...
4 years, 1 month ago (2016-11-16 15:01:45 UTC) #8
haraken
Does the new behavior match other browsers? +dcheng +jochen: Do you have any concern about ...
4 years, 1 month ago (2016-11-16 17:40:02 UTC) #12
jochen (gone - plz use gerrit)
yeah, why not just use a cached accessor for this?
4 years, 1 month ago (2016-11-17 01:56:58 UTC) #13
Yuki
On 2016/11/16 17:40:02, haraken wrote: > Does the new behavior match other browsers? FF and ...
4 years, 1 month ago (2016-11-17 08:53:35 UTC) #14
Yuki
Updated to use cached accessors. Could you take another look?
4 years, 1 month ago (2016-11-17 10:41:08 UTC) #17
Yuki
On 2016/11/17 10:41:08, Yuki wrote: > Updated to use cached accessors. > Could you take ...
4 years, 1 month ago (2016-11-17 13:35:33 UTC) #22
haraken
On 2016/11/17 13:35:33, Yuki wrote: > On 2016/11/17 10:41:08, Yuki wrote: > > Updated to ...
4 years, 1 month ago (2016-11-17 15:04:59 UTC) #23
Yuki
On 2016/11/17 15:04:59, haraken wrote: > On 2016/11/17 13:35:33, Yuki wrote: > > On 2016/11/17 ...
4 years, 1 month ago (2016-11-18 06:58:10 UTC) #26
jochen (gone - plz use gerrit)
On 2016/11/18 at 06:58:10, yukishiino wrote: > On 2016/11/17 15:04:59, haraken wrote: > > On ...
4 years, 1 month ago (2016-11-18 08:25:45 UTC) #29
Yuki
On 2016/11/18 08:25:45, jochen wrote: > On 2016/11/18 at 06:58:10, yukishiino wrote: > > On ...
4 years, 1 month ago (2016-11-18 09:06:22 UTC) #34
jochen (gone - plz use gerrit)
On 2016/11/18 at 09:06:22, yukishiino wrote: > On 2016/11/18 08:25:45, jochen wrote: > > On ...
4 years, 1 month ago (2016-11-18 09:07:57 UTC) #35
Yuki
On 2016/11/18 09:07:57, jochen wrote: > On 2016/11/18 at 09:06:22, yukishiino wrote: > > On ...
4 years, 1 month ago (2016-11-18 09:45:56 UTC) #38
jochen (gone - plz use gerrit)
I meant that maybe we just don't generate a setter with CachedAccessor is given, or ...
4 years, 1 month ago (2016-11-18 09:48:03 UTC) #39
haraken
On 2016/11/18 09:48:03, jochen wrote: > I meant that maybe we just don't generate a ...
4 years, 1 month ago (2016-11-18 09:49:34 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2501333002/80001
4 years, 1 month ago (2016-11-18 11:26:32 UTC) #44
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 1 month ago (2016-11-18 11:30:47 UTC) #46
commit-bot: I haz the power
4 years, 1 month ago (2016-11-18 11:32:42 UTC) #48
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/1c5231afadf1376cd206a64f0370fda8007254be
Cr-Commit-Position: refs/heads/master@{#433178}

Powered by Google App Engine
This is Rietveld 408576698