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

Issue 2640123006: Use the current context as the creation context for cross-origin objects. (Closed)

Created:
3 years, 11 months ago by dcheng
Modified:
3 years, 10 months ago
CC:
chromium-reviews, blink-reviews, blink-reviews-bindings_chromium.org, jochen (gone - plz use gerrit), domenic
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use NewRemoteInstance() to create cross-origin objects. Also use the current context as the creation context when returning the cross-origin named enumerator's results. BUG=682822 Review-Url: https://codereview.chromium.org/2640123006 Cr-Commit-Position: refs/heads/master@{#446635} Committed: https://chromium.googlesource.com/chromium/src/+/9ead0def6f12d7152260f2eb21e78c7e09cd47ee

Patch Set 1 #

Total comments: 1

Patch Set 2 : Using NewRemoteInstance. #

Patch Set 3 : NewRemoteInstance cached on Location itself (doesn't work) #

Patch Set 4 : Tweak #

Total comments: 9

Patch Set 5 : Per-world NewRemoteInstance #

Total comments: 13

Patch Set 6 : comments #

Patch Set 7 : Add comment #

Total comments: 2

Patch Set 8 : comments #

Patch Set 9 : hidden value #

Total comments: 2

Patch Set 10 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+78 lines, -15 lines) Patch
M third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +53 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/scripts/v8_attributes.py View 1 2 3 4 5 6 7 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/bindings/templates/interface_base.cpp.tmpl View 1 2 3 4 5 6 7 8 9 3 chunks +18 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceCheckSecurity.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +6 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/frame/Window.idl View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 68 (31 generated)
dcheng
https://codereview.chromium.org/2640123006/diff/1/third_party/WebKit/Source/bindings/core/v8/ToV8.cpp File third_party/WebKit/Source/bindings/core/v8/ToV8.cpp (right): https://codereview.chromium.org/2640123006/diff/1/third_party/WebKit/Source/bindings/core/v8/ToV8.cpp#newcode59 third_party/WebKit/Source/bindings/core/v8/ToV8.cpp:59: } Modifying ToV8 was my original approach, but it ...
3 years, 11 months ago (2017-01-19 23:34:07 UTC) #3
Yuki
I don't think that we need to support cross-origin representations with ToV8 because the use ...
3 years, 11 months ago (2017-01-23 08:22:18 UTC) #4
dcheng
On 2017/01/23 08:22:18, Yuki wrote: > I don't think that we need to support cross-origin ...
3 years, 11 months ago (2017-01-23 08:27:01 UTC) #9
Yuki
I'm sorry for my late response. On 2017/01/23 08:27:01, dcheng wrote: > My only concern ...
3 years, 11 months ago (2017-01-23 08:35:10 UTC) #10
dcheng
On 2017/01/23 08:35:10, Yuki wrote: > I'm sorry for my late response. > > On ...
3 years, 11 months ago (2017-01-24 08:57:28 UTC) #13
dcheng
Actually, PTAL. I did a small update (PS3 -> PS4) and I think this should ...
3 years, 11 months ago (2017-01-24 09:40:47 UTC) #17
Yuki
On 2017/01/24 08:57:28, dcheng wrote: > We still need to hold the persistent somewhere, so ...
3 years, 11 months ago (2017-01-24 09:41:17 UTC) #18
Yuki
https://codereview.chromium.org/2640123006/diff/60001/third_party/WebKit/Source/bindings/templates/interface_base.cpp.tmpl File third_party/WebKit/Source/bindings/templates/interface_base.cpp.tmpl (right): https://codereview.chromium.org/2640123006/diff/60001/third_party/WebKit/Source/bindings/templates/interface_base.cpp.tmpl#newcode300 third_party/WebKit/Source/bindings/templates/interface_base.cpp.tmpl:300: info.GetIsolate()).As<v8::Array>()); Why do we need .As<v8::Array>()? I think we ...
3 years, 11 months ago (2017-01-24 10:31:05 UTC) #19
dcheng
I'll upload another PS tomorrow using the GetFunction() per-context caching approach. https://codereview.chromium.org/2640123006/diff/60001/third_party/WebKit/Source/core/frame/Location.cpp File third_party/WebKit/Source/core/frame/Location.cpp (right): ...
3 years, 11 months ago (2017-01-24 10:41:59 UTC) #20
Yuki
https://codereview.chromium.org/2640123006/diff/60001/third_party/WebKit/Source/core/frame/Location.cpp File third_party/WebKit/Source/core/frame/Location.cpp (right): https://codereview.chromium.org/2640123006/diff/60001/third_party/WebKit/Source/core/frame/Location.cpp#newcode127 third_party/WebKit/Source/core/frame/Location.cpp:127: ->domTemplate(isolate, DOMWrapperWorld::world( On 2017/01/24 10:41:59, dcheng wrote: > On ...
3 years, 11 months ago (2017-01-24 10:53:00 UTC) #21
dcheng
On 2017/01/24 10:53:00, Yuki wrote: > https://codereview.chromium.org/2640123006/diff/60001/third_party/WebKit/Source/core/frame/Location.cpp > File third_party/WebKit/Source/core/frame/Location.cpp (right): > > https://codereview.chromium.org/2640123006/diff/60001/third_party/WebKit/Source/core/frame/Location.cpp#newcode127 > ...
3 years, 11 months ago (2017-01-24 19:15:40 UTC) #24
haraken
On 2017/01/24 19:15:40, dcheng wrote: > On 2017/01/24 10:53:00, Yuki wrote: > > > https://codereview.chromium.org/2640123006/diff/60001/third_party/WebKit/Source/core/frame/Location.cpp ...
3 years, 11 months ago (2017-01-24 21:32:52 UTC) #25
dcheng
On 2017/01/24 21:32:52, haraken wrote: > On 2017/01/24 19:15:40, dcheng wrote: > > On 2017/01/24 ...
3 years, 11 months ago (2017-01-24 21:52:58 UTC) #26
haraken
On 2017/01/24 21:52:58, dcheng wrote: > On 2017/01/24 21:32:52, haraken wrote: > > On 2017/01/24 ...
3 years, 11 months ago (2017-01-24 21:57:25 UTC) #27
dcheng
On 2017/01/24 21:57:25, haraken wrote: > On 2017/01/24 21:52:58, dcheng wrote: > > On 2017/01/24 ...
3 years, 11 months ago (2017-01-24 22:04:54 UTC) #28
dcheng
New CL with per-world bindings. https://codereview.chromium.org/2640123006/diff/80001/third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp File third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp (right): https://codereview.chromium.org/2640123006/diff/80001/third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp#newcode79 third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp:79: if (DOMDataStore::setReturnValue(info.GetReturnValue(), location)) Now ...
3 years, 11 months ago (2017-01-24 23:12:11 UTC) #29
haraken
https://codereview.chromium.org/2640123006/diff/80001/third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp File third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp (right): https://codereview.chromium.org/2640123006/diff/80001/third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp#newcode79 third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp:79: if (DOMDataStore::setReturnValue(info.GetReturnValue(), location)) On 2017/01/24 23:12:11, dcheng wrote: > ...
3 years, 11 months ago (2017-01-25 03:24:12 UTC) #36
dcheng
https://codereview.chromium.org/2640123006/diff/80001/third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp File third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp (right): https://codereview.chromium.org/2640123006/diff/80001/third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp#newcode79 third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp:79: if (DOMDataStore::setReturnValue(info.GetReturnValue(), location)) On 2017/01/25 03:24:12, haraken wrote: > ...
3 years, 11 months ago (2017-01-26 02:12:03 UTC) #37
haraken
https://codereview.chromium.org/2640123006/diff/80001/third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp File third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp (right): https://codereview.chromium.org/2640123006/diff/80001/third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp#newcode79 third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp:79: if (DOMDataStore::setReturnValue(info.GetReturnValue(), location)) On 2017/01/26 02:12:03, dcheng wrote: > ...
3 years, 11 months ago (2017-01-26 05:59:57 UTC) #38
dcheng
https://codereview.chromium.org/2640123006/diff/80001/third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp File third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp (right): https://codereview.chromium.org/2640123006/diff/80001/third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp#newcode103 third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp:103: // object is alive in order to save creation ...
3 years, 11 months ago (2017-01-26 06:30:19 UTC) #39
haraken
https://codereview.chromium.org/2640123006/diff/80001/third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp File third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp (right): https://codereview.chromium.org/2640123006/diff/80001/third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp#newcode103 third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp:103: // object is alive in order to save creation ...
3 years, 11 months ago (2017-01-26 09:27:09 UTC) #44
Yuki
Looks good to me. https://codereview.chromium.org/2640123006/diff/80001/third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp File third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp (right): https://codereview.chromium.org/2640123006/diff/80001/third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp#newcode103 third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp:103: // object is alive in ...
3 years, 11 months ago (2017-01-26 10:41:54 UTC) #45
Yuki
LGTM.
3 years, 11 months ago (2017-01-26 10:43:06 UTC) #46
haraken
On 2017/01/26 10:41:54, Yuki wrote: > Looks good to me. > > https://codereview.chromium.org/2640123006/diff/80001/third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp > File ...
3 years, 11 months ago (2017-01-26 10:55:02 UTC) #47
blink-reviews
On Thu, Jan 26, 2017 at 5:41 AM <yukishiino@chromium.org> wrote: > Looks good to me. ...
3 years, 11 months ago (2017-01-26 13:07:18 UTC) #48
chromium-reviews
On Thu, Jan 26, 2017 at 5:41 AM <yukishiino@chromium.org> wrote: > Looks good to me. ...
3 years, 11 months ago (2017-01-26 13:07:18 UTC) #49
Yuki
domenic@ and haraken@ are right. I checked the spec again, and found that the spec ...
3 years, 11 months ago (2017-01-26 13:12:14 UTC) #50
dcheng
PTAL. I investigated the hidden value code more, and I think it's safe to set ...
3 years, 11 months ago (2017-01-27 01:31:42 UTC) #52
haraken
https://codereview.chromium.org/2640123006/diff/160001/third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp File third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp (right): https://codereview.chromium.org/2640123006/diff/160001/third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp#newcode115 third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp:115: wrapper); You have multiple location wrappers per holder, right? ...
3 years, 11 months ago (2017-01-27 01:53:27 UTC) #56
dcheng
https://codereview.chromium.org/2640123006/diff/160001/third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp File third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp (right): https://codereview.chromium.org/2640123006/diff/160001/third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp#newcode115 third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp:115: wrapper); On 2017/01/27 01:53:26, haraken wrote: > > You ...
3 years, 10 months ago (2017-01-27 07:04:40 UTC) #57
Yuki
LGTM
3 years, 10 months ago (2017-01-27 07:20:00 UTC) #58
haraken
On 2017/01/27 07:04:40, dcheng wrote: > https://codereview.chromium.org/2640123006/diff/160001/third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp > File third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp > (right): > > https://codereview.chromium.org/2640123006/diff/160001/third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp#newcode115 ...
3 years, 10 months ago (2017-01-27 08:03:19 UTC) #59
Yuki
On 2017/01/27 08:03:19, haraken wrote: > Maybe I prefer not caching remote location objects until ...
3 years, 10 months ago (2017-01-27 08:14:09 UTC) #60
dcheng
On 2017/01/27 08:14:09, Yuki wrote: > On 2017/01/27 08:03:19, haraken wrote: > > Maybe I ...
3 years, 10 months ago (2017-01-27 08:34:24 UTC) #61
haraken
On 2017/01/27 08:34:24, dcheng wrote: > On 2017/01/27 08:14:09, Yuki wrote: > > On 2017/01/27 ...
3 years, 10 months ago (2017-01-27 08:42:59 UTC) #62
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/2640123006/180001
3 years, 10 months ago (2017-01-27 08:56:18 UTC) #65
commit-bot: I haz the power
3 years, 10 months ago (2017-01-27 10:32:05 UTC) #68
Message was sent while issue was closed.
Committed patchset #10 (id:180001) as
https://chromium.googlesource.com/chromium/src/+/9ead0def6f12d7152260f2eb21e7...

Powered by Google App Engine
This is Rietveld 408576698