[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}
Showing
Please register or sign in to comment