[Extensions Bindings] Throw access errors on restricted sendRequest
We throw errors when certain extensions (unpacked with an event page) try to use the deprecated sendRequest-related properties of the chrome.extension API. Implement this for native bindings. In order to do this, add an InitializeInstance() method on native binding hooks that allows hooks to modify the newly-created instance of an API for a specific context. Add unittests for both InitializeInstance and the restriction of sendRequest properties. Bug: 653596 Change-Id: I22be1f0f9d4f299e127b21084649000bab63ddfa Reviewed-on: https://chromium-review.googlesource.com/775516 Commit-Queue: Devlin <rdevlin.cronin@chromium.org> Reviewed-by:Istiaque Ahmed <lazyboy@chromium.org> Reviewed-by:
Jeremy Roman <jbroman@chromium.org> Cr-Commit-Position: refs/heads/master@{#519957}
Showing
Please register or sign in to comment