Closed
Bug 917945
Opened 11 years ago
Closed 11 years ago
[webvtt] Enable regions to be handled by Gecko correctly upon parsing
Categories
(Core :: Audio/Video, defect)
Core
Audio/Video
Tracking
()
RESOLVED
FIXED
mozilla27
People
(Reporter: reyre, Assigned: reyre)
References
(Blocks 1 open bug)
Details
Attachments
(3 files, 5 obsolete files)
(deleted),
patch
|
Details | Diff | Splinter Review | |
(deleted),
patch
|
Details | Diff | Splinter Review | |
(deleted),
patch
|
Details | Diff | Splinter Review |
We need to update the WebVTTListener class and rename TextTrackRegion* to VTTRegion* as this is how content JS is supposed to see it.
Assignee | ||
Updated•11 years ago
|
Assignee | ||
Comment 1•11 years ago
|
||
Attachment #806778 -
Flags: review?(giles)
Attachment #806778 -
Flags: review?(bzbarsky)
Assignee | ||
Comment 2•11 years ago
|
||
Attachment #806779 -
Flags: review?(giles)
Assignee | ||
Comment 3•11 years ago
|
||
Attachment #806780 -
Flags: review?(giles)
Attachment #806780 -
Flags: review?(bzbarsky)
Assignee | ||
Comment 4•11 years ago
|
||
Depends on bug 895091 which *hasn't* landed yet, but is checked-in so hopefully soon.
Comment 5•11 years ago
|
||
Comment on attachment 806778 [details] [diff] [review]
Part 1 v1: Expose TextTrackRegion* as VTTRegion*
r=me
Attachment #806778 -
Flags: review?(bzbarsky) → review+
Comment 6•11 years ago
|
||
Comment on attachment 806780 [details] [diff] [review]
Part 3 v1: Add VTTRegions to its TextTrack upon receiving them
>+ nsresult rv = UNWRAP_OBJECT(VTTRegion, aCx, &aRegion.toObject(),
What if it fails?
r=me with that fixed.
Attachment #806780 -
Flags: review?(bzbarsky) → review+
Assignee | ||
Comment 7•11 years ago
|
||
Thanks for review Boris.
Carrying forward r=bz.
Attachment #806780 -
Attachment is obsolete: true
Attachment #806780 -
Flags: review?(giles)
Attachment #806911 -
Flags: review?(giles)
Comment 8•11 years ago
|
||
Comment on attachment 806911 [details] [diff] [review]
Part 3 v2: Add VTTRegions to its TextTrack upon receiving them
Review of attachment 806911 [details] [diff] [review]:
-----------------------------------------------------------------
r=me with nit.
::: content/media/test/test_texttrackregion.html
@@ +36,5 @@
> + }
> + is(trackElement.readyState, 2, "Track::ReadyState should be set to LOADED.");
> +
> + var cues = trackElement.track.cues,
> + regions = trackElement.track.regions;
no 'var'?
Attachment #806911 -
Flags: review?(giles) → review+
Updated•11 years ago
|
Attachment #806779 -
Flags: review?(giles) → review+
Comment 9•11 years ago
|
||
Comment on attachment 806778 [details] [diff] [review]
Part 1 v1: Expose TextTrackRegion* as VTTRegion*
Review of attachment 806778 [details] [diff] [review]:
-----------------------------------------------------------------
VTTRegion.webidl has some DOS line endings in my checkout. You might want to fix those while you're moving the file.
Attachment #806778 -
Flags: review?(giles) → review+
Assignee | ||
Comment 10•11 years ago
|
||
(In reply to Ralph Giles (:rillian) from comment #8)
> Comment on attachment 806911 [details] [diff] [review]
> Part 3 v2: Add VTTRegions to its TextTrack upon receiving them
>
> Review of attachment 806911 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> r=me with nit.
>
> ::: content/media/test/test_texttrackregion.html
> @@ +36,5 @@
> > + }
> > + is(trackElement.readyState, 2, "Track::ReadyState should be set to LOADED.");
> > +
> > + var cues = trackElement.track.cues,
> > + regions = trackElement.track.regions;
>
> no 'var'?
Multiline declaration. I can change it to have 'var' per line though if you'd like?
Comment 11•11 years ago
|
||
Oh, sorry. I missed the comment. I find var-per-line easier to read (obviously) but don't feel strongly. Code is correct.
Comment 12•11 years ago
|
||
I missed the *comma*.
Assignee | ||
Comment 13•11 years ago
|
||
Thanks for review Ralph. Replaced the line endings with Unix line endings.
Carrying forward r=rillian,bz
Attachment #806778 -
Attachment is obsolete: true
Assignee | ||
Comment 14•11 years ago
|
||
Had to generate the patch in HG in order to get the line endings to apply cleanly from a patch file.
Carrying forward r=rillian,bz
Attachment #807731 -
Attachment is obsolete: true
Assignee | ||
Comment 15•11 years ago
|
||
Just adding "Part 2" to commit message.
Carrying forward r=rillian.
Attachment #806779 -
Attachment is obsolete: true
Assignee | ||
Comment 16•11 years ago
|
||
Just adding "Part 3" to the commit message.
Carrying forward r=rillian,bz
Assignee | ||
Comment 17•11 years ago
|
||
Assignee | ||
Comment 18•11 years ago
|
||
And an ASAN try: https://tbpl.mozilla.org/?tree=Try&rev=f5d71c0fc875
Assignee | ||
Updated•11 years ago
|
Attachment #806911 -
Attachment is obsolete: true
Comment 20•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/9403fb5920fa
https://hg.mozilla.org/integration/mozilla-inbound/rev/83a2c216da80
https://hg.mozilla.org/integration/mozilla-inbound/rev/a1e5aa8e93ea
Flags: in-testsuite+
Keywords: checkin-needed
Comment 21•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/9403fb5920fa
https://hg.mozilla.org/mozilla-central/rev/83a2c216da80
https://hg.mozilla.org/mozilla-central/rev/a1e5aa8e93ea
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla27
You need to log in
before you can comment on or make changes to this bug.
Description
•