Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(315)

Issue 2692633002: Use [SecureContext] for navigator.storage (Closed)

Created:
3 years, 10 months ago by jsbell
Modified:
3 years, 9 months ago
Reviewers:
Mike West
CC:
blink-reviews, chromium-reviews, haraken, kinuko+fileapi, nhiroki, tzik
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use [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)
jsbell
mkwst@ - what do you think about this change? And more specifically... https://codereview.chromium.org/2692633002/diff/1/third_party/WebKit/Source/modules/quota/StorageManager.cpp File third_party/WebKit/Source/modules/quota/StorageManager.cpp ...
3 years, 10 months ago (2017-02-11 01:01:44 UTC) #5
Mike West
LGTM. On 2017/02/11 at 01:01:44, jsbell wrote: > mkwst@ - what do you think about ...
3 years, 10 months ago (2017-02-14 12:38:31 UTC) #8
Mike West
https://codereview.chromium.org/2692633002/diff/1/third_party/WebKit/LayoutTests/http/tests/security/powerfulFeatureRestrictions/durable-storage-on-insecure-origin.html File third_party/WebKit/LayoutTests/http/tests/security/powerfulFeatureRestrictions/durable-storage-on-insecure-origin.html (right): https://codereview.chromium.org/2692633002/diff/1/third_party/WebKit/LayoutTests/http/tests/security/powerfulFeatureRestrictions/durable-storage-on-insecure-origin.html#newcode13 third_party/WebKit/LayoutTests/http/tests/security/powerfulFeatureRestrictions/durable-storage-on-insecure-origin.html:13: }, 'Requires secure context'); Nit: Are there Web Platform ...
3 years, 10 months ago (2017-02-14 12:39:25 UTC) #9
jsbell
On 2017/02/14 12:38:31, Mike West (sloooooow) wrote: > I'd suggest filing a bug against the ...
3 years, 10 months ago (2017-02-14 18:33:56 UTC) #10
jsbell
https://codereview.chromium.org/2692633002/diff/1/third_party/WebKit/LayoutTests/http/tests/security/powerfulFeatureRestrictions/durable-storage-on-insecure-origin.html File third_party/WebKit/LayoutTests/http/tests/security/powerfulFeatureRestrictions/durable-storage-on-insecure-origin.html (right): https://codereview.chromium.org/2692633002/diff/1/third_party/WebKit/LayoutTests/http/tests/security/powerfulFeatureRestrictions/durable-storage-on-insecure-origin.html#newcode13 third_party/WebKit/LayoutTests/http/tests/security/powerfulFeatureRestrictions/durable-storage-on-insecure-origin.html:13: }, 'Requires secure context'); On 2017/02/14 12:39:25, Mike West ...
3 years, 10 months ago (2017-02-14 18:34:47 UTC) #11
jsbell
> > Nit: Are there Web Platform Tests for this feature? If so, could this ...
3 years, 10 months ago (2017-02-14 18:35:28 UTC) #12
commit-bot: I haz the power
This CL has an open dependency (Issue 2687263002 Patch 1). Please resolve the dependency and ...
3 years, 10 months ago (2017-02-14 18:37:22 UTC) #15
jsbell
I'll also add the unique opaque origin test in a follow-on, to address those TODOs.
3 years, 10 months ago (2017-02-14 18:38:17 UTC) #16
commit-bot: I haz the power
This CL has an open dependency (Issue 2687263002 Patch 1). Please resolve the dependency and ...
3 years, 10 months ago (2017-02-14 18:39:12 UTC) #19
jsbell
On 2017/02/14 18:39:12, commit-bot: I haz the power wrote: > This CL has an open ...
3 years, 10 months ago (2017-02-14 22:46:29 UTC) #20
Mike West
On 2017/02/14 at 18:35:28, jsbell wrote: > > > Nit: Are there Web Platform Tests ...
3 years, 10 months ago (2017-02-15 06:36:38 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2692633002/20001
3 years, 9 months ago (2017-03-01 18:22:56 UTC) #24
commit-bot: I haz the power
3 years, 9 months ago (2017-03-01 22:34:13 UTC) #27
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/b1b9e6d3db16818dfd5b76199136...

Powered by Google App Engine
This is Rietveld 408576698