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

Issue 181173002: ScriptPromise should check the constructor paraemter. (Closed)

Created:
6 years, 10 months ago by yhirano
Modified:
6 years, 9 months ago
Reviewers:
kinuko, abarth-chromium
CC:
blink-reviews, Nils Barth (inactive), jsbell+serviceworker_chromium.org, kojih, arv+blink, jsbell+bindings_chromium.org, sof, abarth-chromium, marja+watch_chromium.org, adamk+blink_chromium.org, haraken, Nate Chapin, alecflett+watch_chromium.org, Inactive
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

ScriptPromise should check the constructor paraemter. ScriptPromise::ScriptPromise(v8::Handle<v8::Value>, v8::Isolate*) expects that the first parameter is a Promise object, but no one checks that. This CL fixes that. Rename ScriptPromise::ScriptPromise(ScriptValue) to ScriptPromise::cast to avoid the confusion caused by the diferrent behaviors with a non-Promise parameter. BUG=347047 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=168462

Patch Set 1 #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Patch Set 4 : rebase #

Patch Set 5 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -37 lines) Patch
M Source/bindings/v8/ScriptPromise.h View 1 2 chunks +7 lines, -11 lines 0 comments Download
M Source/bindings/v8/ScriptPromise.cpp View 1 2 3 chunks +24 lines, -15 lines 0 comments Download
M Source/bindings/v8/ScriptPromiseTest.cpp View 1 2 3 4 3 chunks +16 lines, -9 lines 0 comments Download
M Source/modules/serviceworkers/RespondWithObserver.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/serviceworkers/WaitUntilObserver.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 25 (0 generated)
yhirano
PTAL? abarth: bindings/v8 kinuko: modules/serviceworkers
6 years, 10 months ago (2014-02-26 06:54:15 UTC) #1
kinuko
module/serviceworker lgtm https://codereview.chromium.org/181173002/diff/20001/Source/bindings/v8/ScriptPromise.cpp File Source/bindings/v8/ScriptPromise.cpp (right): https://codereview.chromium.org/181173002/diff/20001/Source/bindings/v8/ScriptPromise.cpp#newcode60 Source/bindings/v8/ScriptPromise.cpp:60: ScriptPromise ScriptPromise::cast(const ScriptValue& value) nit: can we ...
6 years, 10 months ago (2014-02-26 07:53:21 UTC) #2
kinuko
Btw I believe the BUG= line is wrong.
6 years, 10 months ago (2014-02-26 08:33:02 UTC) #3
yhirano
On 2014/02/26 08:33:02, kinuko wrote: > Btw I believe the BUG= line is wrong. Thanks, ...
6 years, 10 months ago (2014-02-26 09:29:49 UTC) #4
yhirano
https://codereview.chromium.org/181173002/diff/20001/Source/bindings/v8/ScriptPromise.cpp File Source/bindings/v8/ScriptPromise.cpp (right): https://codereview.chromium.org/181173002/diff/20001/Source/bindings/v8/ScriptPromise.cpp#newcode60 Source/bindings/v8/ScriptPromise.cpp:60: ScriptPromise ScriptPromise::cast(const ScriptValue& value) On 2014/02/26 07:53:21, kinuko wrote: ...
6 years, 10 months ago (2014-02-26 09:29:57 UTC) #5
yhirano
abarth, PTAL?
6 years, 9 months ago (2014-03-03 09:03:35 UTC) #6
abarth-chromium
LGTM
6 years, 9 months ago (2014-03-03 18:59:56 UTC) #7
abarth-chromium
The CQ bit was checked by abarth@chromium.org
6 years, 9 months ago (2014-03-03 18:59:59 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yhirano@chromium.org/181173002/40001
6 years, 9 months ago (2014-03-03 19:00:35 UTC) #9
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-03 19:00:39 UTC) #10
commit-bot: I haz the power
Failed to apply patch for Source/bindings/v8/ScriptPromiseTest.cpp: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 9 months ago (2014-03-03 19:00:40 UTC) #11
kinuko
Hirano-san, we have similar code to WaitUntilObserver.cpp in Source/modules/serviceworkers/RespondWithObserver.cpp (which is just landed), you probably ...
6 years, 9 months ago (2014-03-04 01:59:38 UTC) #12
yhirano
The CQ bit was checked by yhirano@chromium.org
6 years, 9 months ago (2014-03-04 14:40:58 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yhirano@chromium.org/181173002/60001
6 years, 9 months ago (2014-03-04 14:41:10 UTC) #14
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-04 14:41:13 UTC) #15
commit-bot: I haz the power
Failed to apply patch for Source/bindings/v8/ScriptPromiseTest.cpp: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 9 months ago (2014-03-04 14:41:13 UTC) #16
yhirano
On 2014/03/04 01:59:38, kinuko wrote: > Hirano-san, we have similar code to WaitUntilObserver.cpp in > ...
6 years, 9 months ago (2014-03-04 14:41:56 UTC) #17
yhirano
The CQ bit was checked by yhirano@chromium.org
6 years, 9 months ago (2014-03-04 15:46:41 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yhirano@chromium.org/181173002/80001
6 years, 9 months ago (2014-03-04 15:46:54 UTC) #19
yhirano
The CQ bit was unchecked by yhirano@chromium.org
6 years, 9 months ago (2014-03-05 08:47:17 UTC) #20
yhirano
The CQ bit was checked by yhirano@chromium.org
6 years, 9 months ago (2014-03-05 08:47:22 UTC) #21
yhirano
The CQ bit was unchecked by yhirano@chromium.org
6 years, 9 months ago (2014-03-05 09:03:38 UTC) #22
yhirano
The CQ bit was checked by yhirano@chromium.org
6 years, 9 months ago (2014-03-05 10:27:10 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yhirano@chromium.org/181173002/80001
6 years, 9 months ago (2014-03-05 10:27:25 UTC) #24
commit-bot: I haz the power
6 years, 9 months ago (2014-03-05 10:28:15 UTC) #25
Message was sent while issue was closed.
Change committed as 168462

Powered by Google App Engine
This is Rietveld 408576698