Closed
Bug 1276129
Opened 9 years ago
Closed 9 years ago
[webvtt] Use PositionAlignSetting type for VTTCue's positionAlign
Categories
(Core :: Audio/Video: Playback, defect, P2)
Tracking
()
RESOLVED
FIXED
mozilla49
Tracking | Status | |
---|---|---|
firefox49 | --- | fixed |
People
(Reporter: alwu, Assigned: alwu)
References
(Blocks 1 open bug)
Details
(Keywords: dev-doc-needed, site-compat)
Attachments
(4 files)
https://w3c.github.io/webvtt/#enumdef-positionalignsetting
Now we use AlignSetting for the position, and it's wrong.
Assignee | ||
Updated•9 years ago
|
Updated•9 years ago
|
Priority: -- → P2
Assignee | ||
Updated•9 years ago
|
Summary: Use PositionAlignSetting type for VTTCue's position → [webvtt] Use PositionAlignSetting type for VTTCue's position
Assignee | ||
Updated•9 years ago
|
Summary: [webvtt] Use PositionAlignSetting type for VTTCue's position → [webvtt] Use PositionAlignSetting type for VTTCue's positionAlign
Assignee | ||
Comment 1•9 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/56532/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/56532/
Assignee | ||
Comment 2•9 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/56534/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/56534/
Assignee | ||
Comment 3•9 years ago
|
||
* * *
Bug 1276129 - part : modify test.
Review commit: https://reviewboard.mozilla.org/r/56536/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/56536/
Assignee | ||
Comment 4•9 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/56538/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/56538/
Assignee | ||
Comment 5•9 years ago
|
||
Comment on attachment 8758197 [details]
MozReview Request: Bug 1276129 - part1 : introduce PositionAlignSetting.
Review request updated; see interdiff: https://reviewboard.mozilla.org/r/56532/diff/1-2/
Attachment #8758197 -
Flags: review?(giles)
Attachment #8758198 -
Flags: review?(giles)
Attachment #8758199 -
Flags: review?(giles)
Attachment #8758200 -
Flags: review?(giles)
Assignee | ||
Comment 6•9 years ago
|
||
Comment on attachment 8758198 [details]
MozReview Request: Bug 1276129 - part2 : change PositionAlign value in vtt.jsm.
Review request updated; see interdiff: https://reviewboard.mozilla.org/r/56534/diff/1-2/
Assignee | ||
Comment 7•9 years ago
|
||
Comment on attachment 8758199 [details]
MozReview Request: Bug 1276129 - part3 : add & modify test.
Review request updated; see interdiff: https://reviewboard.mozilla.org/r/56536/diff/1-2/
Assignee | ||
Comment 8•9 years ago
|
||
Comment on attachment 8758200 [details]
MozReview Request: Bug 1276129 - part4 : add webvtt tag
Review request updated; see interdiff: https://reviewboard.mozilla.org/r/56538/diff/1-2/
Assignee | ||
Comment 9•9 years ago
|
||
Hi, Ralph,
Could you help me review these patches?
The purpose of this bug is to use PositionAlignSetting for VTTCue's positionAlign, instead of using AlignSetting [1].
Thanks!
[1] https://w3c.github.io/webvtt/#enumdef-positionalignsetting
Assignee | ||
Comment 10•9 years ago
|
||
Comment 11•9 years ago
|
||
Comment on attachment 8758197 [details]
MozReview Request: Bug 1276129 - part1 : introduce PositionAlignSetting.
https://reviewboard.mozilla.org/r/56532/#review53782
Looks good to me. This will need dom peer review as well.
Attachment #8758197 -
Flags: review?(giles) → review+
Comment 12•9 years ago
|
||
Comment on attachment 8758197 [details]
MozReview Request: Bug 1276129 - part1 : introduce PositionAlignSetting.
Adding smaug for dom peer review.
Note that similar changes are needed to add the LineAlignSetting enum. That's being tracked in bug 1276830.
Attachment #8758197 -
Flags: review?(bugs)
Comment 13•9 years ago
|
||
Comment on attachment 8758198 [details]
MozReview Request: Bug 1276129 - part2 : change PositionAlign value in vtt.jsm.
https://reviewboard.mozilla.org/r/56534/#review53784
::: dom/media/webvtt/vtt.jsm:787
(Diff revision 2)
> // position of the cue box. The reference edge will be resolved later when
> // the box orientation styles are applied.
> var textPos = 0;
> - switch (cue.positionAlign) {
> - case "start":
> + switch (cue.computedPositionAlign) {
> + // TODO : modify these fomula to follow the spec.
> + case "line-left":
Please file a new bug now and refernce the bug number in the comment here to make sure it's easy to follow-up.
Attachment #8758198 -
Flags: review?(giles) → review+
Updated•9 years ago
|
Attachment #8758199 -
Flags: review?(giles)
Comment 14•9 years ago
|
||
Comment on attachment 8758199 [details]
MozReview Request: Bug 1276129 - part3 : add & modify test.
https://reviewboard.mozilla.org/r/56536/#review53790
::: dom/media/test/chrome.ini:8
(Diff revision 2)
> + seek.webm
> + seek.webm^headers^
> + vttPositionAlign.vtt
> +
> +[test_webvtt_positionalign.html]
> +tags = webvtt
chrome.ini tests are not compatible with e10s. Please remove the chrome.ini reference and use `SpecialPowers.wrap()` to access chrome-only attributes like `computedPositionAlign` inside a normal mochitest.
See test_texttrack_cue_moz.html for an example.
Comment 15•9 years ago
|
||
Comment on attachment 8758200 [details]
MozReview Request: Bug 1276129 - part4 : add webvtt tag
https://reviewboard.mozilla.org/r/56538/#review53792
Good idea! Make sure to update this after moving the test in Part 3.
Attachment #8758200 -
Flags: review?(giles) → review+
Assignee | ||
Comment 16•9 years ago
|
||
Comment on attachment 8758197 [details]
MozReview Request: Bug 1276129 - part1 : introduce PositionAlignSetting.
Review request updated; see interdiff: https://reviewboard.mozilla.org/r/56532/diff/2-3/
Attachment #8758197 -
Flags: review?(bugs)
Attachment #8758199 -
Flags: review?(giles)
Assignee | ||
Comment 17•9 years ago
|
||
Comment on attachment 8758198 [details]
MozReview Request: Bug 1276129 - part2 : change PositionAlign value in vtt.jsm.
Review request updated; see interdiff: https://reviewboard.mozilla.org/r/56534/diff/2-3/
Assignee | ||
Comment 18•9 years ago
|
||
Comment on attachment 8758199 [details]
MozReview Request: Bug 1276129 - part3 : add & modify test.
Review request updated; see interdiff: https://reviewboard.mozilla.org/r/56536/diff/2-3/
Assignee | ||
Comment 19•9 years ago
|
||
Comment on attachment 8758200 [details]
MozReview Request: Bug 1276129 - part4 : add webvtt tag
Review request updated; see interdiff: https://reviewboard.mozilla.org/r/56538/diff/2-3/
Assignee | ||
Updated•9 years ago
|
Attachment #8758197 -
Flags: review?(bugs)
Comment 20•9 years ago
|
||
Is this a recent spec change? It is after all not backwards compatible change.
Assignee | ||
Comment 21•9 years ago
|
||
Our implementation didn't follow the spec for a long while, so we need to update it.
Comment 22•9 years ago
|
||
Comment on attachment 8758197 [details]
MozReview Request: Bug 1276129 - part1 : introduce PositionAlignSetting.
https://reviewboard.mozilla.org/r/56532/#review53922
ok, this is worrisome change. If anyone is using the attribute, this will break the usage.
And if no one is using the attribute, why to have it at all?
though, I guess the API still rather new, so I guess that could explain if it isn't being used too much.
So fine, but be careful if we see some regressions because of this.
Attachment #8758197 -
Flags: review?(bugs) → review+
Updated•9 years ago
|
Attachment #8758199 -
Flags: review?(giles) → review+
Comment 23•9 years ago
|
||
Comment on attachment 8758199 [details]
MozReview Request: Bug 1276129 - part3 : add & modify test.
https://reviewboard.mozilla.org/r/56536/#review54012
Looks good, thanks!
Updated•9 years ago
|
Keywords: dev-doc-needed
Assignee | ||
Comment 24•9 years ago
|
||
(In reply to Olli Pettay [:smaug] (high review load, please consider other reviewers) from comment #22)
> ok, this is worrisome change. If anyone is using the attribute, this will
> break the usage.
> And if no one is using the attribute, why to have it at all?
> though, I guess the API still rather new, so I guess that could explain if
> it isn't being used too much.
> So fine, but be careful if we see some regressions because of this.
Thanks for your suggestion!
FYI, the Blink [1] and Webkit [2] doesn't support the "positionAlign" yet.
Blink has the implementation, but it's out-of-date and doesn't be enable.
Webkit doesn't have the implementation.
Therefore, I guess we might not have the regression (because no one use now :p) if we're the only one to support this attribute.
[1] https://code.google.com/p/chromium/codesearch#chromium/src/third_party/WebKit/Source/core/html/track/vtt/VTTCue.idl&q=VTTCue&sq=package:chromium&type=cs&l=30
[2] https://github.com/WebKit/webkit/blob/master/Source/WebCore/html/track/VTTCue.idl
Comment 25•9 years ago
|
||
Pushed by alwu@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/d3cf9f70e5fe
part1 : introduce PositionAlignSetting. r=rillian,smaug
https://hg.mozilla.org/integration/mozilla-inbound/rev/1d7eb0adafc6
part2 : change PositionAlign value in vtt.jsm. r=rillian
https://hg.mozilla.org/integration/mozilla-inbound/rev/fb00e0208622
part3 : add & modify test. r=rillian
https://hg.mozilla.org/integration/mozilla-inbound/rev/efa464d5d11b
part4 : add webvtt tag r=rillian
Comment 26•9 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/d3cf9f70e5fe
https://hg.mozilla.org/mozilla-central/rev/1d7eb0adafc6
https://hg.mozilla.org/mozilla-central/rev/fb00e0208622
https://hg.mozilla.org/mozilla-central/rev/efa464d5d11b
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox49:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla49
Comment 27•9 years ago
|
||
Posted the site compatibility doc: https://www.fxsitecompat.com/en-CA/docs/2016/vttcue-positionalign-now-uses-positionalignsetting-instead-of-alignsetting/
Keywords: site-compat
You need to log in
before you can comment on or make changes to this bug.
Description
•