Skip to content

Commit

Permalink
Expose TextTrack.activeCues
Browse files Browse the repository at this point in the history
  • Loading branch information
ferjm committed Jan 11, 2019
1 parent 2a78625 commit 69a79c7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
7 changes: 7 additions & 0 deletions components/script/dom/texttrack.rs
Expand Up @@ -110,6 +110,13 @@ impl TextTrackMethods for TextTrack {
}
}

// https://html.spec.whatwg.org/multipage/#dom-texttrack-activecues
fn GetActiveCues(&self) -> Option<DomRoot<TextTrackCueList>> {
// XXX implement active cues logic
// https://github.com/servo/servo/issues/22314
None
}

// https://html.spec.whatwg.org/multipage/#dom-texttrack-addcue
fn AddCue(&self, cue: &TextTrackCue) -> ErrorResult {
// FIXME(#22314, dlrobertson) add Step 1 & 2
Expand Down
2 changes: 1 addition & 1 deletion components/script/dom/webidls/TextTrack.webidl
Expand Up @@ -19,7 +19,7 @@ interface TextTrack : EventTarget {
attribute TextTrackMode mode;

readonly attribute TextTrackCueList? cues;
// readonly attribute TextTrackCueList? activeCues;
readonly attribute TextTrackCueList? activeCues;

[Throws]
void addCue(TextTrackCue cue);
Expand Down
6 changes: 0 additions & 6 deletions tests/wpt/metadata/html/dom/interfaces.https.html.ini
Expand Up @@ -9563,15 +9563,9 @@
[TextTrack interface: attribute inBandMetadataTrackDispatchType]
expected: FAIL

[TextTrack interface: attribute activeCues]
expected: FAIL

[TextTrack interface: document.createElement("track").track must inherit property "inBandMetadataTrackDispatchType" with the proper type]
expected: FAIL

[TextTrack interface: document.createElement("track").track must inherit property "activeCues" with the proper type]
expected: FAIL

[TimeRanges must be primary interface of document.createElement("video").buffered]
expected: FAIL

Expand Down

0 comments on commit 69a79c7

Please sign in to comment.