Skip to content
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

FF133 HTMLMediaElement add onwaitingforkey event handler #25119

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

hamishwillee
Copy link
Collaborator

FF133 adds support for the onwaitingforkey content attribute in https://bugzilla.mozilla.org/show_bug.cgi?id=1925952

Verified using this test on browserstack FF132 and 133 - works on the later, stalls on the former for onwaitingforkey: https://wpt.live/encrypted-media/media-element-event-handler-attributes.html

I did this by marking the old event version as partial.

Related docs can be tracked in mdn/content#36558

@github-actions github-actions bot added the data:api 🐇 Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API label Nov 19, 2024
Copy link
Contributor

@caugner caugner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just one question regarding the partial support before 133.

Comment on lines +3576 to +3581
{
"version_added": "52",
"version_removed": "133",
"partial_implementation": true,
"notes": "`onwaitingforkey` content attribute not implemented."
}
Copy link
Contributor

@caugner caugner Nov 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you know why we keep this statement? What works in 52-132, and what doesn't work?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@caugner So in 52-133 you can add a JavaScript handler for the waitingforkey event using addEventListener, but you can't use the onwaitingforkey attribute in HTML to add an inline handler for the event. Hence a partial implementation.
In 133 the onwaitingforkey attribute in HTML was added.

I did it this way because this seemed like a partial implementation. But we could pretend it was always a full implementation and just add a note to the other feature "notes": "version 133 adds support for onwaitingforkey content attribute."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data:api 🐇 Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants