Skip to content

Commit

Permalink
Merge pull request #65 from engedy/patch-1
Browse files Browse the repository at this point in the history
Restrict all interfaces to secure contexts
  • Loading branch information
reillyeon authored Feb 27, 2019
2 parents e1f5bb0 + 978b40a commit 0dc1aba
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,10 @@ User agents must also provide an event handler IDL attribute [[!HTML]] named {{W

<pre class="idl">
partial interface Window {
attribute EventHandler ondeviceorientation;
[SecureContext] attribute EventHandler ondeviceorientation;
};

[Constructor(DOMString type, optional DeviceOrientationEventInit eventInitDict), Exposed=Window]
[Constructor(DOMString type, optional DeviceOrientationEventInit eventInitDict), Exposed=Window, SecureContext]
interface DeviceOrientationEvent : Event {
readonly attribute double? alpha;
readonly attribute double? beta;
Expand Down Expand Up @@ -244,7 +244,7 @@ User agents must also provide an event handler IDL attribute [[!HTML]] named {{W
<pre class="idl">
partial interface Window {
attribute EventHandler ondeviceorientationabsolute;
[SecureContext] attribute EventHandler ondeviceorientationabsolute;
};
</pre>
Expand Down Expand Up @@ -274,22 +274,24 @@ User agents must also provide an event handler IDL attribute [[!HTML] named {{Wi
<pre class="idl">
partial interface Window {
attribute EventHandler ondevicemotion;
[SecureContext] attribute EventHandler ondevicemotion;
};
[SecureContext]
interface DeviceMotionEventAcceleration {
readonly attribute double? x;
readonly attribute double? y;
readonly attribute double? z;
};
[SecureContext]
interface DeviceMotionEventRotationRate {
readonly attribute double? alpha;
readonly attribute double? beta;
readonly attribute double? gamma;
};
[Constructor(DOMString type, optional DeviceMotionEventInit eventInitDict), Exposed=Window]
[Constructor(DOMString type, optional DeviceMotionEventInit eventInitDict), Exposed=Window, SecureContext]
interface DeviceMotionEvent : Event {
readonly attribute DeviceMotionEventAcceleration? acceleration;
readonly attribute DeviceMotionEventAcceleration? accelerationIncludingGravity;
Expand Down

0 comments on commit 0dc1aba

Please sign in to comment.