Mark CryptoKey and SubtleCrypto interfaces as SecureContext.
This matches the IDL from the spec, and resolves a bug whereby the Web Crypto API could be used from an insecure context. We were correctly blocking access to "self.crypto.subtle" from insecure contexts, however it was possible to access through its interface self.SubtleCrypto. Bug: 1038704 Change-Id: I425d602fda64c3f63ee87bcfed1711e508901c61 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2057098 Commit-Queue: Eric Roman <eroman@chromium.org> Reviewed-by:Philip Jägenstedt <foolip@chromium.org> Cr-Commit-Position: refs/heads/master@{#743242}
Showing
Please register or sign in to comment