[DevTools] Add awaitPromise flag to Runtime.runScript
- added awaitPromise flag,
- added returnByValue and generatePreview flags to align with other evaluate methods,
- marked executionContextId as optional.
BUG=632875R=dgozman@chromium.org
Committed: https://crrev.com/0ce09555b528b623d9103e77226472af0a7dabeb
Cr-Commit-Position: refs/heads/master@{#409408}
All done. https://codereview.chromium.org/2203073004/diff/1/third_party/WebKit/Source/platform/v8_inspector/V8RuntimeAgentImpl.cpp File third_party/WebKit/Source/platform/v8_inspector/V8RuntimeAgentImpl.cpp (right): https://codereview.chromium.org/2203073004/diff/1/third_party/WebKit/Source/platform/v8_inspector/V8RuntimeAgentImpl.cpp#newcode290 third_party/WebKit/Source/platform/v8_inspector/V8RuntimeAgentImpl.cpp:290: "Result of expression is not a promise", ...
4 years, 4 months ago
(2016-08-02 22:18:50 UTC)
#3
All done.
https://codereview.chromium.org/2203073004/diff/1/third_party/WebKit/Source/p...
File third_party/WebKit/Source/platform/v8_inspector/V8RuntimeAgentImpl.cpp
(right):
https://codereview.chromium.org/2203073004/diff/1/third_party/WebKit/Source/p...
third_party/WebKit/Source/platform/v8_inspector/V8RuntimeAgentImpl.cpp:290:
"Result of expression is not a promise",
On 2016/08/02 21:38:08, dgozman wrote:
> Result of the evaluation is not a promise
Done.
https://codereview.chromium.org/2203073004/diff/1/third_party/WebKit/Source/p...
third_party/WebKit/Source/platform/v8_inspector/V8RuntimeAgentImpl.cpp:541:
callback->sendFailure("Script execution failed");
On 2016/08/02 21:38:08, dgozman wrote:
> No script with given id
Done.
https://codereview.chromium.org/2203073004/diff/1/third_party/WebKit/Source/p...
File third_party/WebKit/Source/platform/v8_inspector/js_protocol.json (right):
https://codereview.chromium.org/2203073004/diff/1/third_party/WebKit/Source/p...
third_party/WebKit/Source/platform/v8_inspector/js_protocol.json:301: { "name":
"executionContextId", "$ref": "ExecutionContextId", "optional": true,
"description": "Specifies in which isolated context to perform script run. Each
content script lives in an isolated context and this parameter is used to
specify one of those contexts. If the parameter is omitted or 0 the evaluation
will be performed in the context of the inspected page." }
On 2016/08/02 21:38:08, dgozman wrote:
> The part about "or 0" is not true. Could you please update here and in other
> places?
Added or 0 support back, we need it to support some of protocol clients.
https://codereview.chromium.org/2203073004/diff/1/third_party/WebKit/Source/p...
third_party/WebKit/Source/platform/v8_inspector/js_protocol.json:321: { "name":
"awaitPromise", "type": "boolean", "optional":true, "description": "Whether
execution should wait for promise to be resolved. If the result of evaluation is
not a Promise, it's considered to be an error." }
On 2016/08/02 21:38:08, dgozman wrote:
> style: missing space before colon
Done.
kozy
The CQ bit was checked by kozyatinskiy@chromium.org
4 years, 4 months ago
(2016-08-02 22:20:09 UTC)
#4
4 years, 4 months ago
(2016-08-03 00:57:44 UTC)
#18
Message was sent while issue was closed.
Committed patchset #2 (id:40001)
commit-bot: I haz the power
Description was changed from ========== [DevTools] Add awaitPromise flag to Runtime.runScript - added awaitPromise flag, ...
4 years, 4 months ago
(2016-08-03 00:59:04 UTC)
#19
Message was sent while issue was closed.
Description was changed from
==========
[DevTools] Add awaitPromise flag to Runtime.runScript
- added awaitPromise flag,
- added returnByValue and generatePreview flags to align with other evaluate
methods,
- marked executionContextId as optional.
BUG=632875
R=dgozman@chromium.org
==========
to
==========
[DevTools] Add awaitPromise flag to Runtime.runScript
- added awaitPromise flag,
- added returnByValue and generatePreview flags to align with other evaluate
methods,
- marked executionContextId as optional.
BUG=632875
R=dgozman@chromium.org
Committed: https://crrev.com/0ce09555b528b623d9103e77226472af0a7dabeb
Cr-Commit-Position: refs/heads/master@{#409408}
==========
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/0ce09555b528b623d9103e77226472af0a7dabeb Cr-Commit-Position: refs/heads/master@{#409408}
4 years, 4 months ago
(2016-08-03 00:59:05 UTC)
#20
Issue 2203073004: [DevTools] Add awaitPromise flag to Runtime.runScript
(Closed)
Created 4 years, 4 months ago by kozy
Modified 4 years, 4 months ago
Reviewers: dgozman
Base URL: https://chromium.googlesource.com/chromium/src.git@make-call-function-on-async
Comments: 8