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

Issue 2932913004: [Extensions] Use CallModuleMethodSafe() in ScriptContext (Closed)

Created:
3 years, 6 months ago by Devlin
Modified:
3 years, 6 months ago
Reviewers:
lazyboy
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[Extensions] Use CallModuleMethodSafe() in ScriptContext In ScriptContext::OnResponseReceived(), instead of immediately executing JS, request execution. This means we don't receive a result from the execution. According to comments, // In debug, the js will validate the callback parameters and return a // string if a validation error has occured. This appears to have been true at some point [1], but some time in the last seven years, has been updated to no longer be the case. As such, just remove any reference to the result value. [1] https://chromium.googlesource.com/chromium/src/+/5c21a2eeaa92326a6a771e27c70b11b1ea52441a/chrome/renderer/resources/extension_process_bindings.js#114 BUG=629431 Review-Url: https://codereview.chromium.org/2932913004 Cr-Commit-Position: refs/heads/master@{#478780} Committed: https://chromium.googlesource.com/chromium/src/+/3043b941f5715ac0ec7d94f2f14d5d9ac9d32b1c

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -7 lines) Patch
M extensions/renderer/script_context.cc View 1 chunk +2 lines, -7 lines 0 comments Download

Messages

Total messages: 13 (9 generated)
Devlin
lazyboy@, mind taking a look?
3 years, 6 months ago (2017-06-12 17:45:04 UTC) #7
lazyboy
lgtm
3 years, 6 months ago (2017-06-12 18:27:18 UTC) #8
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/2932913004/1
3 years, 6 months ago (2017-06-12 20:40:22 UTC) #10
commit-bot: I haz the power
3 years, 6 months ago (2017-06-12 21:53:08 UTC) #13
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/3043b941f5715ac0ec7d94f2f14d...

Powered by Google App Engine
This is Rietveld 408576698