-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add [SecureContext]
tags to the interfaces
#192
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||
---|---|---|---|---|
|
@@ -187,7 +187,7 @@ <h2> | |||
and acceleration. | ||||
</p> | ||||
<pre class="idl"> | ||||
[Exposed=Window] | ||||
[Exposed=Window, SecureContext] | ||||
interface GamepadPose { | ||||
readonly attribute boolean hasOrientation; | ||||
readonly attribute boolean hasPosition; | ||||
|
@@ -361,6 +361,7 @@ <h2> | |||
the main <a href="https://w3c.github.io/gamepad/">Gamepad spec</a>. | ||||
</p> | ||||
<pre class="idl"> | ||||
[SecureContext] | ||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||
partial interface Gamepad { | ||||
readonly attribute GamepadHand hand; | ||||
readonly attribute FrozenArray<GamepadHapticActuator> hapticActuators; | ||||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -1071,7 +1071,7 @@ <h2> | |||||
feedback. | ||||||
</p> | ||||||
<pre class="idl"> | ||||||
[Exposed=Window] | ||||||
[Exposed=Window, SecureContext] | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure this one makes sense either, to be honest. Half of the API is exposed in a regular context, and taking this interface away would probably break things. |
||||||
interface GamepadHapticActuator { | ||||||
[SameObject] readonly attribute FrozenArray<GamepadHapticEffectType> effects; | ||||||
Promise<GamepadHapticsResult> playEffect( | ||||||
|
@@ -1526,7 +1526,7 @@ <h2> | |||||
<pre class="idl"> | ||||||
[Exposed=Window] | ||||||
partial interface Navigator { | ||||||
sequence<Gamepad?> getGamepads(); | ||||||
[SecureContext] sequence<Gamepad?> getGamepads(); | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This wouldn't be web compatible. See #113. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
}; | ||||||
</pre> | ||||||
<p> | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this is valid... it's a partial interface.