Chromium Code Reviews
DescriptionUse [SecureContext] for navigator.storage
StorageManager (navigator.storage) is specified [1] as having
[SecureContext] on the interface. Replace per-method checks
with [SecureContext] on the navigator.storage attribute so
it simply doesn't exist in non-secure contexts as intended.
(The spec has [SecureContext] on a non-partial interface and
the interface is implemented by Navigator. We don't support
core interfaces implementing module interfaces, so we use a
partial interface instead. [SecureContext] does not yet
work when defined on the partial interface itself.)
[1] https://storage.spec.whatwg.org/#api
BUG=690720, 634270
Review-Url: https://codereview.chromium.org/2692633002
Cr-Commit-Position: refs/heads/master@{#454073}
Committed: https://chromium.googlesource.com/chromium/src/+/b1b9e6d3db16818dfd5b76199136f8745f005144
Patch Set 1 #
Total comments: 3
Patch Set 2 : TypeError and rebased tests #
Messages
Total messages: 27 (14 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||