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

Issue 1973363004: Expose a way to make a "same-origin" realm (Closed)

Created:
4 years, 7 months ago by Dan Ehrenberg
Modified:
4 years, 6 months ago
Reviewers:
adamk, rossberg
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Expose a way to make a same-origin realm Some tests, e.g. in test262, want to create a new same-origin realm. This patch exposes a new function, Realm.createAllowCrossRealmAccess(), which vends a new realm with the same security token as the currently executing one. Committed: https://crrev.com/9778f2efad6100402d6435aa169037e3f9331439 Cr-Commit-Position: refs/heads/master@{#36561}

Patch Set 1 #

Patch Set 2 : Add a test #

Total comments: 2

Patch Set 3 : Take review suggestion #

Patch Set 4 : fix typo #

Total comments: 7

Patch Set 5 : Eliminate code duplication #

Patch Set 6 : Add simple additional test #

Total comments: 4

Patch Set 7 : Style fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -4 lines) Patch
M src/d8.h View 1 2 3 4 5 6 2 chunks +4 lines, -0 lines 0 comments Download
M src/d8.cc View 1 2 3 4 5 6 3 chunks +25 lines, -4 lines 0 comments Download
A test/mjsunit/realm-property-access.js View 1 2 3 4 5 1 chunk +20 lines, -0 lines 0 comments Download

Messages

Total messages: 41 (19 generated)
Dan Ehrenberg
4 years, 7 months ago (2016-05-13 22:52:05 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1973363004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1973363004/20001
4 years, 7 months ago (2016-05-13 22:52:22 UTC) #7
adamk
+rossberg as he was the original author of this API, and in that patch included ...
4 years, 7 months ago (2016-05-13 23:09:59 UTC) #9
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-13 23:19:13 UTC) #11
Dan Ehrenberg
Ping, rossberg PTAL
4 years, 7 months ago (2016-05-17 19:32:16 UTC) #12
rossberg
I think the comment was just descriptive. With this CL, it should probably be reworded ...
4 years, 7 months ago (2016-05-18 07:23:52 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1973363004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1973363004/40001
4 years, 7 months ago (2016-05-19 01:20:01 UTC) #15
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1973363004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1973363004/60001
4 years, 7 months ago (2016-05-19 01:22:00 UTC) #18
Dan Ehrenberg
Changed the naming to what Adam suggested suggested, WDYT?
4 years, 7 months ago (2016-05-19 01:22:16 UTC) #19
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-19 01:52:16 UTC) #21
rossberg
lgtm https://codereview.chromium.org/1973363004/diff/60001/src/d8.cc File src/d8.cc (right): https://codereview.chromium.org/1973363004/diff/60001/src/d8.cc#newcode553 src/d8.cc:553: void Shell::RealmCreateAllowCrossRealmAccess( I wouldn't mind factoring out the ...
4 years, 7 months ago (2016-05-19 06:07:00 UTC) #22
adamk
https://codereview.chromium.org/1973363004/diff/60001/src/d8.cc File src/d8.cc (right): https://codereview.chromium.org/1973363004/diff/60001/src/d8.cc#newcode551 src/d8.cc:551: // Realm.createAllowCrossRealmAccess(i) jreates a new realm with the same ...
4 years, 7 months ago (2016-05-19 19:23:20 UTC) #23
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1973363004/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1973363004/80001
4 years, 6 months ago (2016-05-27 13:47:39 UTC) #25
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1973363004/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1973363004/100001
4 years, 6 months ago (2016-05-27 13:50:29 UTC) #27
Dan Ehrenberg
PTAL https://codereview.chromium.org/1973363004/diff/60001/src/d8.cc File src/d8.cc (right): https://codereview.chromium.org/1973363004/diff/60001/src/d8.cc#newcode551 src/d8.cc:551: // Realm.createAllowCrossRealmAccess(i) jreates a new realm with the ...
4 years, 6 months ago (2016-05-27 13:51:40 UTC) #28
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-05-27 14:18:43 UTC) #30
adamk
lgtm % nits (which don't necessarily require action, use your judgment). https://codereview.chromium.org/1973363004/diff/100001/src/d8.cc File src/d8.cc (right): ...
4 years, 6 months ago (2016-05-27 18:10:51 UTC) #31
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1973363004/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1973363004/120001
4 years, 6 months ago (2016-05-27 18:21:19 UTC) #33
Dan Ehrenberg
https://codereview.chromium.org/1973363004/diff/100001/src/d8.cc File src/d8.cc (right): https://codereview.chromium.org/1973363004/diff/100001/src/d8.cc#newcode548 src/d8.cc:548: return MaybeLocal<Context>(context); On 2016/05/27 at 18:10:51, adamk wrote: > ...
4 years, 6 months ago (2016-05-27 18:21:54 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1973363004/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1973363004/120001
4 years, 6 months ago (2016-05-27 18:21:59 UTC) #38
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 6 months ago (2016-05-27 18:47:11 UTC) #39
commit-bot: I haz the power
4 years, 6 months ago (2016-05-27 18:50:28 UTC) #41
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/9778f2efad6100402d6435aa169037e3f9331439
Cr-Commit-Position: refs/heads/master@{#36561}

Powered by Google App Engine
This is Rietveld 408576698