The 'SecureContext' WebIDL attribute controls the exposure of a given interface, method, attribute, etc. If present, it ensures that the given item will be exposed only in a "Secure Context", as defined by https://w3c.github.io/webappsec-secure-contexts/.
Features wish to lock themselves to secure contexts; this IDL attribute enables them to do so in a standardized way, which should reduce the amount of custom code we stuff into various parts of the system.
The IDL attribute is in use in a number of specs today, and I expect that number to grow over time. Supporting it seems like a good idea.
Intent to ship: https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/ILe65HVid88
Comment 1 by mkwst@chromium.org
, Aug 4 2016Labels: -Type-Bug -Pri-3 M-54 OS-Android OS-Chrome OS-Linux OS-Mac OS-Windows Pri-2 Type-Feature