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

Issue 2702213004: Add security checks to scheduled actions (Closed)

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

Description

Add security checks to scheduled actions Scheduled actions end up generating code from strings, so we should put similar restrictions as for eval() in place R=haraken@chromium.org,dcheng@chromium.org BUG=693695, 694446 Review-Url: https://codereview.chromium.org/2702213004 Cr-Commit-Position: refs/heads/master@{#452016} Committed: https://chromium.googlesource.com/chromium/src/+/0ac9c3a4fbf57ad4cc2f954fc452fa62a729e0e1

Patch Set 1 #

Patch Set 2 : updates #

Patch Set 3 : updates #

Total comments: 5

Patch Set 4 : updates #

Patch Set 5 : updates #

Patch Set 6 : win baseline #

Total comments: 1

Patch Set 7 : needs-rebaseline #

Patch Set 8 : updates #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -9 lines) Patch
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ScheduledAction.h View 1 2 3 4 1 chunk +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ScheduledAction.cpp View 2 chunks +13 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/DOMWindowTimers.cpp View 4 chunks +8 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/testing/Internals.cpp View 1 2 3 4 5 6 7 1 chunk +9 lines, -2 lines 0 comments Download

Messages

Total messages: 41 (24 generated)
jochen (gone - plz use gerrit)
3 years, 10 months ago (2017-02-20 14:54:33 UTC) #1
jochen (gone - plz use gerrit)
hum, maybe a tad too aggressive
3 years, 10 months ago (2017-02-20 15:41:48 UTC) #4
jochen (gone - plz use gerrit)
green-ish bots (at least on mac) PTAL
3 years, 10 months ago (2017-02-21 12:59:27 UTC) #12
haraken
https://codereview.chromium.org/2702213004/diff/40001/third_party/WebKit/Source/bindings/core/v8/ScheduledAction.cpp File third_party/WebKit/Source/bindings/core/v8/ScheduledAction.cpp (right): https://codereview.chromium.org/2702213004/diff/40001/third_party/WebKit/Source/bindings/core/v8/ScheduledAction.cpp#newcode50 third_party/WebKit/Source/bindings/core/v8/ScheduledAction.cpp:50: ExecutionContext* target, Is the target execution context different from ...
3 years, 10 months ago (2017-02-21 13:10:20 UTC) #13
jochen (gone - plz use gerrit)
https://codereview.chromium.org/2702213004/diff/40001/third_party/WebKit/Source/bindings/core/v8/ScheduledAction.cpp File third_party/WebKit/Source/bindings/core/v8/ScheduledAction.cpp (right): https://codereview.chromium.org/2702213004/diff/40001/third_party/WebKit/Source/bindings/core/v8/ScheduledAction.cpp#newcode50 third_party/WebKit/Source/bindings/core/v8/ScheduledAction.cpp:50: ExecutionContext* target, On 2017/02/21 at 13:10:20, haraken wrote: > ...
3 years, 10 months ago (2017-02-21 13:13:03 UTC) #14
Yuki
LGTM on my side. https://codereview.chromium.org/2702213004/diff/40001/third_party/WebKit/Source/bindings/core/v8/ScheduledAction.h File third_party/WebKit/Source/bindings/core/v8/ScheduledAction.h (right): https://codereview.chromium.org/2702213004/diff/40001/third_party/WebKit/Source/bindings/core/v8/ScheduledAction.h#newcode54 third_party/WebKit/Source/bindings/core/v8/ScheduledAction.h:54: ExecutionContext*, I'd like to have ...
3 years, 10 months ago (2017-02-21 13:17:57 UTC) #16
jochen (gone - plz use gerrit)
https://codereview.chromium.org/2702213004/diff/40001/third_party/WebKit/Source/bindings/core/v8/ScheduledAction.h File third_party/WebKit/Source/bindings/core/v8/ScheduledAction.h (right): https://codereview.chromium.org/2702213004/diff/40001/third_party/WebKit/Source/bindings/core/v8/ScheduledAction.h#newcode54 third_party/WebKit/Source/bindings/core/v8/ScheduledAction.h:54: ExecutionContext*, On 2017/02/21 at 13:17:57, Yuki wrote: > I'd ...
3 years, 10 months ago (2017-02-21 13:19:18 UTC) #19
haraken
LGTM https://codereview.chromium.org/2702213004/diff/40001/third_party/WebKit/Source/bindings/core/v8/ScheduledAction.cpp File third_party/WebKit/Source/bindings/core/v8/ScheduledAction.cpp (right): https://codereview.chromium.org/2702213004/diff/40001/third_party/WebKit/Source/bindings/core/v8/ScheduledAction.cpp#newcode50 third_party/WebKit/Source/bindings/core/v8/ScheduledAction.cpp:50: ExecutionContext* target, On 2017/02/21 13:13:02, jochen wrote: > ...
3 years, 10 months ago (2017-02-21 13:23:10 UTC) #22
jochen (gone - plz use gerrit)
On 2017/02/21 at 13:23:10, haraken wrote: > LGTM > > https://codereview.chromium.org/2702213004/diff/40001/third_party/WebKit/Source/bindings/core/v8/ScheduledAction.cpp > File third_party/WebKit/Source/bindings/core/v8/ScheduledAction.cpp (right): ...
3 years, 10 months ago (2017-02-21 13:26:28 UTC) #23
haraken
On 2017/02/21 13:26:28, jochen wrote: > On 2017/02/21 at 13:23:10, haraken wrote: > > LGTM ...
3 years, 10 months ago (2017-02-21 13:28:12 UTC) #24
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/2702213004/100001
3 years, 10 months ago (2017-02-21 14:16:09 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/394187)
3 years, 10 months ago (2017-02-21 17:01:31 UTC) #29
dcheng
https://codereview.chromium.org/2702213004/diff/100001/third_party/WebKit/Source/core/testing/Internals.cpp File third_party/WebKit/Source/core/testing/Internals.cpp (right): https://codereview.chromium.org/2702213004/diff/100001/third_party/WebKit/Source/core/testing/Internals.cpp#newcode904 third_party/WebKit/Source/core/testing/Internals.cpp:904: // We need to make the popup same origin ...
3 years, 10 months ago (2017-02-21 21:15:11 UTC) #30
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/2702213004/120001
3 years, 10 months ago (2017-02-22 10:57:24 UTC) #33
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/2702213004/140001
3 years, 10 months ago (2017-02-22 11:07:30 UTC) #37
commit-bot: I haz the power
Committed patchset #8 (id:140001) as https://chromium.googlesource.com/chromium/src/+/0ac9c3a4fbf57ad4cc2f954fc452fa62a729e0e1
3 years, 10 months ago (2017-02-22 12:51:31 UTC) #40
jochen (gone - plz use gerrit)
3 years, 10 months ago (2017-02-23 18:22:24 UTC) #41
Message was sent while issue was closed.
A revert of this CL (patchset #8 id:140001) has been created in
https://codereview.chromium.org/2711163003/ by jochen@chromium.org.

The reason for reverting is: Doesn't take microtasks into account - will reland
with fix.

Powered by Google App Engine
This is Rietveld 408576698