-
Chris Lu authored
Separate function name and parameters from the rest of the Message payload. This change encrypts the function name and its parameters in a separate payload from the messageId and replyWithResult values. __gCrWeb.message.routeMessage() is then passed two dictionaries, each containing an encrypted payload and its initialization vector. Both payloads are decrypted and their properties verified in executeMessage_(). This will allow for the function name and parameters to be dropped when forwarding to a child frame, while still providing enough details for the child frame to respond to the native side that it received the message. Bug: 994968 Change-Id: I659d88b8119b2eba2b125d8c30cbea88485c88f1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1759204Reviewed-by:
Eugene But <eugenebut@chromium.org> Reviewed-by:
Chris Palmer <palmer@chromium.org> Reviewed-by:
Mike Dougherty <michaeldo@chromium.org> Commit-Queue: Chris Lu <thegreenfrog@chromium.org> Cr-Commit-Position: refs/heads/master@{#694992}
5fcf81dd