Closed Bug 1925952 Opened 1 year ago Closed 1 year ago

Implement attribute waitingforkey on audio/video elements

Categories

(Core :: DOM: Events, task)

task

Tracking

()

RESOLVED FIXED
133 Branch
Tracking Status
firefox133 --- fixed

People

(Reporter: fredw, Assigned: fredw)

References

Details

(Keywords: dev-doc-complete)

Attachments

(2 files)

See https://phabricator.services.mozilla.com/D225944#inline-1255920

We could rely on a flag EventNameType_HTMLMedia to handle the media-specific event handler attributes: onencrypted, onwaitingforkey (the later is not handled yet in the method, but not sure how to test that).

Summary: Refactor HTMLMediaElement::IsEventAttributeNameInternal → Refactor HTMLMediaElement::IsEventAttributeNameInternal()

See callers to nsXMLContentSerializer::IsJavaScript.

Use a flag EventNameType_HTMLMedia to represent event specific to the
media element.

Attachment #9432195 - Attachment description: Bug 1925952 - Refactor HTMLMediaElement::IsEventAttributeNameInternal(). r=smaug → Bug 1925952 - Implement attribute waitingforkey on audio/video elements. r=smaug
Severity: -- → N/A
Type: defect → task
Summary: Refactor HTMLMediaElement::IsEventAttributeNameInternal() → Implement attribute waitingforkey on audio/video elements
Depends on: 1917784
Pushed by fwang@igalia.com: https://hg.mozilla.org/integration/autoland/rev/a0fa1e56a396 Add test to check we don't escape entities in JS attributes. r=smaug https://hg.mozilla.org/integration/autoland/rev/4c149b703e82 Implement attribute waitingforkey on audio/video elements. r=smaug
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/48763 for changes under testing/web-platform/tests
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 133 Branch
Upstream PR merged by moz-wptsync-bot
Keywords: dev-doc-needed

:fredw do you want to nominate this for a release note? (Process info)

Flags: needinfo?(fwang)

I think this is only a small attribute, so probably not worth putting in the release note. I also didn't send an intent to ship or put it under a flag.

Probably we need to update MDN/BCD, though.

Flags: needinfo?(fwang)

MDN docs work for this can be tracked in https://github.com/mdn/content/issues/36558

To be clear, what does this deliver? My "guess" is that previously the HTMLMediaElement events waitingforkeys and encrypted were implemented and can be handled using addEventListener(), but the onXxx handlers on the media elements were not implemented - is that correct?

[It is also possible what this means is that the IDL was present but without implementation - so the two events appears are exposed but don't do anyting]

In other words, in browser compatibility data the earlier implementations of the events probably need to be modified to partial implementations and the full implementation only starts in FF133. Right?

Flags: needinfo?(fwang)

Sorry Fred, you'd think I'd know the terminology, but I haven't use the term "content attribute" vs "idl attribute" before. I infer it means an attribute you can apply to the tag itself in html, and that you mean that this fix means that you now support onwaitinggforkeys handlers applied to audio and video elements?

Flags: needinfo?(fwang)

Thanks! Should all be done now (compat data, mdn release note, and doc for the event (which includes event handler)

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: