Require [SecureContext] for Web Crypto
Categories
(Core :: DOM: Web Crypto, defect, P2)
Tracking
()
People
(Reporter: ryan.sleevi, Assigned: jkt)
References
Details
(Keywords: dev-doc-complete, site-compat, Whiteboard: [domsecurity-active])
Attachments
(4 files, 9 obsolete files)
4.91 KB,
patch
|
ttaubert
:
review+
ttaubert
:
feedback+
ttaubert
:
checkin+
|
Details | Diff | Splinter Review |
5.58 KB,
patch
|
ttaubert
:
review+
|
Details | Diff | Splinter Review |
4.75 KB,
patch
|
keeler
:
review+
ttaubert
:
checkin+
|
Details | Diff | Splinter Review |
47 bytes,
text/x-phabricator-request
|
Details | Review |
Reporter | ||
Comment 2•8 years ago
|
||
Comment 3•8 years ago
|
||
Comment 4•8 years ago
|
||
Comment 5•8 years ago
|
||
Comment 6•8 years ago
|
||
Comment 7•8 years ago
|
||
Updated•8 years ago
|
Updated•8 years ago
|
Comment 8•8 years ago
|
||
Comment 9•8 years ago
|
||
Comment 10•8 years ago
|
||
Comment 11•8 years ago
|
||
![]() |
||
Comment 12•8 years ago
|
||
![]() |
||
Comment 13•8 years ago
|
||
Comment 14•8 years ago
|
||
Comment 15•8 years ago
|
||
Comment 16•8 years ago
|
||
Comment 17•8 years ago
|
||
Comment 18•8 years ago
|
||
![]() |
||
Comment 19•8 years ago
|
||
![]() |
||
Comment 20•8 years ago
|
||
![]() |
||
Comment 21•8 years ago
|
||
Comment 22•8 years ago
|
||
Updated•8 years ago
|
Comment 23•8 years ago
|
||
Comment 24•8 years ago
|
||
Comment 25•8 years ago
|
||
Comment 26•8 years ago
|
||
Comment 27•8 years ago
|
||
Comment 28•8 years ago
|
||
Comment 29•8 years ago
|
||
![]() |
||
Comment 30•8 years ago
|
||
Comment 31•8 years ago
|
||
Comment 32•8 years ago
|
||
Comment 33•8 years ago
|
||
Comment 34•8 years ago
|
||
Updated•8 years ago
|
Comment 35•8 years ago
|
||
Comment 36•8 years ago
|
||
Comment 37•8 years ago
|
||
bugherder |
Comment 38•8 years ago
|
||
Reporter | ||
Comment 39•8 years ago
|
||
Comment 40•8 years ago
|
||
Comment 41•8 years ago
|
||
Comment 42•8 years ago
|
||
Comment 43•8 years ago
|
||
Comment 44•8 years ago
|
||
Updated•8 years ago
|
Updated•7 years ago
|
Comment 46•7 years ago
|
||
![]() |
||
Updated•7 years ago
|
Comment 47•7 years ago
|
||
Updated•7 years ago
|
Comment 48•7 years ago
|
||
Updated•7 years ago
|
Comment 49•7 years ago
|
||
![]() |
||
Comment 50•7 years ago
|
||
Comment 51•7 years ago
|
||
bugherder |
Comment 52•7 years ago
|
||
![]() |
||
Comment 53•7 years ago
|
||
Comment 54•7 years ago
|
||
Comment 55•7 years ago
|
||
Comment 56•7 years ago
|
||
Updated•7 years ago
|
Comment 57•6 years ago
|
||
The leave-open keyword is there and there is no activity for 6 months.
:ckerschb, maybe it's time to close this bug?
Comment 58•6 years ago
•
|
||
I don't think this should be closed, without HTTPS
console.log(self.SubtleCrypto)
console.log(self.crypto)
do not log undefined as they should.
Comment 59•6 years ago
|
||
(In reply to Release mgmt bot [:sylvestre / :calixte] from comment #57)
The leave-open keyword is there and there is no activity for 6 months.
:ckerschb, maybe it's time to close this bug?
I am not sure - JC Jones is the webcrypto expert - 302 to him.
Updated•6 years ago
|
Comment 60•6 years ago
|
||
I'm going to try and pick this up here at the end of the quarter. It's added to my backlog, so removing the ni.
Comment 61•6 years ago
|
||
The leave-open keyword is there and there is no activity for 6 months.
:jcj, maybe it's time to close this bug?
Assignee | ||
Comment 63•5 years ago
|
||
It seems Chrome exposes the interface still from https://bugzilla.mozilla.org/show_bug.cgi?id=1333140#c58 however it seems like we should at least hide self.crypto.subtle
though.
Maybe that explains the test failures.
Throwing at try to see what happens:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=c32cc3b5944d692e0e6e871a0a0b59e9ff30d379
Comment 64•5 years ago
|
||
I filed https://bugs.chromium.org/p/chromium/issues/detail?id=1038704 on Chrome.
Assignee | ||
Comment 65•5 years ago
|
||
Updated•5 years ago
|
Assignee | ||
Comment 66•5 years ago
|
||
I think the safe plan here is to match the current Chrome/Webkit implementation which hides self.crypto.subtle
and not require telemetry due to minimal breakage. Then follow up with Bug 1606754 in removing the other interfaces once it's covered with web platform tests etc.
The current patch will land after the code freeze.
Updated•5 years ago
|
Comment 68•5 years ago
|
||
Reporter | ||
Comment 69•5 years ago
|
||
JC: Is my understanding that Mozilla plans to just ship without any compat testing? Just confirming, since that might help make it more tractable to Just Fix the Chrome side :) (where SubtleCrypto's ctor is exposed, but window.crypto.subtle isn't)
Comment 70•5 years ago
|
||
Release Note Request (optional, but appreciated)
[Why is this notable]: It's a potential compatibility issue, though telemetry has shown it's not a large usage in the telemetry cohort and Chrome moved first.
[Affects Firefox for Android]: Yes
[Suggested wording]: In Firefox 75, developers will require Secure Contexts to use the Web Crypto API.
[Links (documentation, blog post, etc)]: https://groups.google.com/d/topic/mozilla.dev.platform/55t-Uyx1TxI/discussion
Comment 71•5 years ago
|
||
(In reply to Ryan Sleevi from comment #69)
JC: Is my understanding that Mozilla plans to just ship without any compat testing? Just confirming, since that might help make it more tractable to Just Fix the Chrome side :) (where SubtleCrypto's ctor is exposed, but window.crypto.subtle isn't)
We'll have a whole cycle of nightly testing for 75, and this brings this small part of WebCrypto in-line with the Web Platform Tests that mandate [SecureContext] for those interfaces.
If something warrants further action in Nightly or Beta 75 we'll discuss it, but at this point it's long overdue, and the intention is to ship to release in 75.
Comment 72•5 years ago
|
||
bugherder |
Comment 73•5 years ago
|
||
Posted site compatibility note for web developers.
Comment 74•5 years ago
|
||
Documentation updates:
- Added Web Crypto to Features restricted to secure contexts
- Improvements to the Crypto interface page; noted secure requirement for window.crypto and Crypto.getRandomValues() and added a bit about the entropy of random numbers
- Updated Window.crypto
- Added the needed bits to CryptoKey to indicate it requires a secure context
- Updated SubtleCrypto
- Updated all subpages of
SubtleCrypto
to include theSecureContext_header
banner - Updated Crypto.getRandomValues() not only with the fact that it's available even on insecure contexts, but also other improvements
- Submitted KumaScript PR 1349 to update GroupData.json with corrected info about the interfaces and dictionaries on the API
- Submitted BCD PR 5884
- Mentioned on Firefox 75 for developers
Comment 75•5 years ago
|
||
Probably enough to mention this on the MDN page for 75, so I'll leave it off the main user-facing release notes.
Description
•