-
Notifications
You must be signed in to change notification settings - Fork 2k
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 back pointerlock{error|change} events #17816
Conversation
@foolip given #16674 (review) and #17821 can you say if this should live under |
This was a mishap in #16674.
These two events were deleted, but not added anywhere else. Everything else lines up, so this PR should sort it out. |
I've also checked Chromium source to confirm the event ends up fired on |
api/Element.json
Outdated
@@ -6183,6 +6183,136 @@ | |||
} | |||
} | |||
}, | |||
"pointerlockchange_event": { |
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.
Can you move to Document
?
api/Element.json
Outdated
"webview_android": [ | ||
{ | ||
"version_added": "37" | ||
}, | ||
{ | ||
"version_added": "≤37", | ||
"version_removed": "38", | ||
"prefix": "webkit" | ||
} | ||
] |
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.
"webview_android": [ | |
{ | |
"version_added": "37" | |
}, | |
{ | |
"version_added": "≤37", | |
"version_removed": "38", | |
"prefix": "webkit" | |
} | |
] | |
"webview_android": "mirror" |
api/Element.json
Outdated
"webview_android": [ | ||
{ | ||
"version_added": "37" | ||
}, | ||
{ | ||
"version_added": "≤37", | ||
"version_removed": "38", | ||
"prefix": "webkit" | ||
} | ||
] |
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.
"webview_android": [ | |
{ | |
"version_added": "37" | |
}, | |
{ | |
"version_added": "≤37", | |
"version_removed": "38", | |
"prefix": "webkit" | |
} | |
] | |
"webview_android": "mirror" |
As an aside, w3c/pointerlock#21 is a suggestion in the spec to fire the event on |
Updated. Fixing the content page, too. |
Content PR was merged. Merging this, too. |
Summary
#16674 removed the
pointerlockchange
andpointerlockerror
events fromapi/Document.json
.I think the idea was to move them to
api/Element.json
, so this PR adds them back toElement
.Test results and supporting details
https://developer.mozilla.org/en-US/docs/Web/API/Document/pointerlockerror_event and
https://developer.mozilla.org/en-US/docs/Web/API/Document/pointerlockchange_event have broken compat tables (and the pages need to move to Element).
MDN content PR is mdn/content#20806