Граф коммитов

90 Коммитов

Автор SHA1 Сообщение Дата
Timothy Guan-tin Chien 9455e67e2c Bug 1491066 - Allow TextTrackManager to pass cue without videocontrols r=alwu
With UA Widget, the videocontrols container is created lazily.
It won't be a problem for WebVTT.processCues() in vtt.jsm, so
TextTrackManager::UpdateCueDisplay() should not early return there, but pass
nullptr to it.

Differential Revision: https://phabricator.services.mozilla.com/D3667

--HG--
extra : moz-landing-system : lando
2018-09-13 22:38:43 +00:00
Kris Maglione 56f4830bf8 Bug 1484466: Part 2a - Remove no-op generateCI calls. r=mccr8
These stopped having any effect when we switched to ChromeUtils.generateQI,
which does not support automatic nsIClassInfo forwarding.

Differential Revision: https://phabricator.services.mozilla.com/D3707

--HG--
extra : rebase_source : 62a3690304ad7baa760c41eba777aa17b9af33f0
2018-08-18 12:38:31 -07:00
Timothy Guan-tin Chien 8cc930296b Bug 1431255 - Part II, Create a Shadow Root in HTMLMediaElement when enabled, skipping <xul:videocontrols> r=dholbert,smaug
This prevents XBL binding from being attached, and create the Shadow Root to
host controls to be created by the script.

Shadow Root and the JS controls are lazily constructed when the controls
attribute is set.

Set nsVideoFrame as dynamic-leaf so it will ignore content child frames when
the controls are XBL anonymous content, and handles child frames from controls
in the Shadow DOM. The content nodes are still ignored since there is no
<slot>s in our Shadow DOM.

MozReview-Commit-ID: 3hk41iMa07n

--HG--
extra : rebase_source : f6f8a3facc9d83f5626cf5f3b4e3fa27438a8a8f
2018-06-27 11:12:38 -07:00
Kris Maglione a259026c9d Bug 1456035: Part 4 - Convert callers of XPCOMUtils.generateQI to ChromeUtils.generateQI. r=mccr8
This also removes any redundant Ci.nsISupports elements in the interface
lists.

This was done using the following script:

acecb401b7/processors/chromeutils-generateQI.jsm

MozReview-Commit-ID: AIx10P8GpZY

--HG--
extra : rebase_source : a29c07530586dc18ba040f19215475ac20fcfb3b
2018-04-22 20:55:06 -07:00
Boris Zbarsky d49151ed50 Bug 1452183 part 1. Stop using nsIDOMDocumentFragment in IDL files. r=mccr8 2018-04-17 21:13:03 -04:00
Florian Quèze 682b1ec3b2 Bug 1440284 - change this.EXPORTED_SYMBOLS back to var EXPORTED_SYMBOLS in JS modules, r=mccr8. 2018-02-23 20:50:01 +01:00
Andrea Marchesini 806d5dbc75 Bug 1434884 - WebVTT parser must be able to deal with partial lines, r=rillian 2018-02-08 11:45:06 +01:00
Andrew McCreight 5dec0e0beb Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian
This patch was autogenerated by my decomponents.py

It covers almost every file with the extension js, jsm, html, py,
xhtml, or xul.

It removes blank lines after removed lines, when the removed lines are
preceded by either blank lines or the start of a new block. The "start
of a new block" is defined fairly hackily: either the line starts with
//, ends with */, ends with {, <![CDATA[, """ or '''. The first two
cover comments, the third one covers JS, the fourth covers JS embedded
in XUL, and the final two cover JS embedded in Python. This also
applies if the removed line was the first line of the file.

It covers the pattern matching cases like "var {classes: Cc,
interfaces: Ci, utils: Cu, results: Cr} = Components;". It'll remove
the entire thing if they are all either Ci, Cr, Cc or Cu, or it will
remove the appropriate ones and leave the residue behind. If there's
only one behind, then it will turn it into a normal, non-pattern
matching variable definition. (For instance, "const { classes: Cc,
Constructor: CC, interfaces: Ci, utils: Cu } = Components" becomes
"const CC = Components.Constructor".)

MozReview-Commit-ID: DeSHcClQ7cG

--HG--
extra : rebase_source : d9c41878036c1ef7766ef5e91a7005025bc1d72b
2018-02-06 09:36:57 -08:00
Florian Quèze 2b1c8dccb6 Bug 1339461 - script-generated patch to convert foo.indexOf(...) == -1 to foo.includes(), r=Mossop. 2018-02-01 20:45:22 +01:00
Kris Maglione 918ed6c474 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl

--HG--
extra : source : 12fc4dee861c812fd2bd032c63ef17af61800c70
extra : intermediate-source : 34c999fa006bffe8705cf50c54708aa21a962e62
extra : histedit_source : b2be2c5e5d226e6c347312456a6ae339c1e634b0
2018-01-29 15:20:18 -08:00
Cosmin Sabou 9a65a40178 Backed out 3 changesets (bug 1431533) for Android mochitest failures on testEventDispatcher on a CLOSED TREE
Backed out changeset a1eca62826a1 (bug 1431533)
Backed out changeset 34c999fa006b (bug 1431533)
Backed out changeset e2674287e57f (bug 1431533)
2018-01-30 07:17:48 +02:00
Kris Maglione 6476f95b13 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl

--HG--
extra : source : 12fc4dee861c812fd2bd032c63ef17af61800c70
2018-01-29 15:20:18 -08:00
Brindusan Cristian af8879d1eb Backed out 2 changesets (bug 1431533) for ESlint failures on a CLOSED TREE
Backed out changeset 6e56f4c8843e (bug 1431533)
Backed out changeset 12fc4dee861c (bug 1431533)
2018-01-30 02:32:43 +02:00
Kris Maglione c276bb9375 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl

--HG--
extra : rebase_source : c004a023389f1f6bf3d2f3efe93c13d423b23ccd
2018-01-29 15:20:18 -08:00
bechen@mozilla.com 008a43e297 Bug 1420357 - fix postion testcase. r=rillian
1. The default value of position is "auto".
2. follow the spec to parse the position value.

MozReview-Commit-ID: HO7sQ0go5A6

--HG--
extra : rebase_source : ab6066f260abac25d71a1c35511c5389444e000a
2017-11-29 16:16:40 +08:00
bechen@mozilla.com d1d01fcc67 Bug 1417820 - fix regions-id.html. r=rillian
Insert space character when we concatenate the string in HEADER. Then split them by ASCII whitespace.

MozReview-Commit-ID: 12jov2hKK2E

--HG--
extra : rebase_source : ed9dd2c9f0fd64083311166424b47b10e6c9cbdc
2017-11-28 18:40:25 +08:00
bechen@mozilla.com 44a4072755 Bug 1415821 - Correct the behavior for BADCUE state. r=alwu
MozReview-Commit-ID: G59NBC9rcGa

--HG--
extra : rebase_source : 65e54177e6c9fbf964d50059fc38bed4fa3b7f78
2017-11-15 17:21:09 +08:00
bechen@mozilla.com 254e7985a8 Bug 1415821 - Support multi-line parsing for REGION/STYLE block. r=alwu
MozReview-Commit-ID: HhRkv27UPO

--HG--
extra : rebase_source : 91a1342ced7dbdf5956fe1914b2ae4b27aab7bc8
2017-11-15 10:25:02 +08:00
bechen@mozilla.com 4a945299ed Bug 1338030 - region : integrate the RegionNodeBox and RegionCueStyleBox. r=rillian
MozReview-Commit-ID: 8M9x31q2dSK

--HG--
extra : rebase_source : 93d49147d626cf2b5add5d81b5476b5efb696262
2017-11-10 11:40:57 +08:00
bechen@mozilla.com 25491eae61 Bug 1338030 - regionCueStyleBox: implementation RegionCueStyleBox which correspong to "the children WebVTT region object". r=rillian
MozReview-Commit-ID: 2qwU1cYnI50

--HG--
extra : rebase_source : 5b63103e9786a94efcea0e0c7bb0988dfc0cf7a6
2017-11-10 11:40:53 +08:00
bechen@mozilla.com 3c59a3adbb Bug 1338030 - regionNodeBox : implementation RegionNodeBox which correspond to "WebVTT region object". r=rillian
MozReview-Commit-ID: FkrZD0iV1k9

--HG--
extra : rebase_source : 7781f716438c6bf7e2b4550f0b77f245f674fd15
2017-11-10 11:40:24 +08:00
bechen@mozilla.com 23b2f7f8bf Bug 1338030 - parsecontent: refact the parseContent function input argument. r=rillian
Because we need the parseContent function return "document fragment" or "div" or "pseudo cue div" or "pseudo region div" ...
It's better to use enumerate instead boolean flag.

MozReview-Commit-ID: 5zmwXiYreqS

--HG--
extra : rebase_source : 57706a7fbf36b2c65fa93362dbfbf9a30d2d7418
2017-11-10 11:40:08 +08:00
bechen@mozilla.com 66624be395 Bug 1412180 - implement regionID on TextTrackRegion. r=rillian,smaug
MozReview-Commit-ID: 3uFAQuNfGjO

--HG--
extra : rebase_source : 4639ce0d2a1b52b6bbf0119f61a68a4eaaed7b22
2017-11-06 11:18:55 +08:00
bechen@mozilla.com de808e6708 Bug 1409983 - Reorder the shouldCompute() funciton and "remove all child nodes of MediaElement" in vtt.jsm. r=alwu
We should call shouldCompute() function first, then remove all children of MediaElement.

MozReview-Commit-ID: 6623Xn6T4mx

--HG--
extra : rebase_source : 51c328d0b87b977aa2f2fefbc7ded150501985b2
2017-10-19 16:30:38 +08:00
Andrea Marchesini 6b24a13ac2 Bug 1403232 - Fixing the WebVTT parser when the buffer uncompleted, r=bechen 2017-09-27 07:38:15 +02:00
Kris Maglione 8b415f700f Bug 1394556: Part 1 - Fix strict mode errors in JSM scripts. r=Mossop
MozReview-Commit-ID: 4LmJQql7Y2c

--HG--
extra : rebase_source : f18b5547a5a57db4e8b990bfc34f06690ac9da7a
extra : histedit_source : 7281bafbde4bf231752d9d868ec8ca1d2f55a2f9
2017-08-30 01:50:27 -07:00
bechen 172da9b6e3 Bug 1360718 - Render the webvtt cues when hiding the control bar. r=alwu
"video.controls = false" will remove the binding of videocontrols which is a xul element.
In vtt.jsm, we need to remember the last show/hide status of videocontrols, then render cues when status changed.

MozReview-Commit-ID: 30rebAuqmxy

--HG--
extra : rebase_source : e011ec0679ab03071e01b91c124c5b72e481a8da
2017-05-09 17:49:42 +08:00
bechen e59ddbbcaa Bug 1353689 - selectors/cue : Enable testcases under */selector/* . Fix the padding and overflow issue. r=rillian
MozReview-Commit-ID: 6jdlx01hEv7

--HG--
extra : rebase_source : 93a63954d5b64cb8a33de1ce560da8f97a5a2001
2017-04-17 17:27:23 +08:00
Iris Hsiao 7aacf33d10 Backed out 9 changesets (bug 1353689) for web platform reftest failures
Backed out changeset 80ac3ea1427e (bug 1353689)
Backed out changeset 9a5b36fefb22 (bug 1353689)
Backed out changeset 44c5f4b4cdfc (bug 1353689)
Backed out changeset 7f2790b4c963 (bug 1353689)
Backed out changeset 8d8d2824a763 (bug 1353689)
Backed out changeset d3ced5751998 (bug 1353689)
Backed out changeset 5179ebf1e982 (bug 1353689)
Backed out changeset ebf24732e9b3 (bug 1353689)
Backed out changeset e81924e4cff3 (bug 1353689)
2017-04-21 13:38:28 +08:00
bechen d116c9373e Bug 1353689 - selectors/cue : Enable testcases under */selector/* . Fix the padding and overflow issue. r=rillian
MozReview-Commit-ID: 6jdlx01hEv7

--HG--
extra : rebase_source : 93a63954d5b64cb8a33de1ce560da8f97a5a2001
2017-04-17 17:27:23 +08:00
bechen adb93a2342 Bug 1318542 - Add preference "media.webvtt.pseudo.enabled". r=rillian
MozReview-Commit-ID: BrdCPgapAYi

--HG--
extra : rebase_source : fdfd90313373394f2dc7f36c61a3a3fbd06c70f3
2017-04-05 10:48:49 +08:00
bechen 30f3430251 Bug 1318542 - Make CueStyleBox apply ::cue. r=heycam,rillian
MozReview-Commit-ID: CNhFlffGAfh
* * *
[mq]: trash

MozReview-Commit-ID: KY2DfqPDmx0

--HG--
extra : rebase_source : fb16313ac5715ec1f544f8a80d0bad26aa42013d
2017-04-05 10:47:36 +08:00
bechen 8ea323865a Bug 1347829 - If the timestamp "<00:00.005" missing the last ">" character, we still parse it. r=alwu
MozReview-Commit-ID: KzW1uTSyDE

--HG--
extra : rebase_source : e1543cdc26d4d19d30582827cfd7d8f2961c59cb
2017-03-20 16:32:16 +08:00
Iris Hsiao 235acee47e Backed out changeset 8db1c2fd27c9 (bug 1347829) for web platform tests failures 2017-03-20 16:06:43 +08:00
bechen 48a8641a54 Bug 1347829 - If the timestamp "<00:00.005" missing the last ">" character, we still parse it. r=alwu
MozReview-Commit-ID: KzW1uTSyDE

--HG--
extra : rebase_source : cac3f211d9b89f9cc89fe8cbaf7bf90d66ff7e72
2017-03-17 11:17:52 +08:00
bechen 622a99a3ec Bug 1344604 - Return null if there is an incomplete tag in nextToken(). r=alwu
MozReview-Commit-ID: 5mvFhaAx2s5

--HG--
extra : rebase_source : 5ca9f9ae29cbe5bc5a7fdf31489212d252f52656
2017-03-16 15:25:34 +08:00
Florian Quèze 9d62681259 Bug 1345253 - Use element.firstChild.remove() instead of element.removeChild(element.firstChild), r=jaws. 2017-03-08 10:17:52 +01:00
bechen ea5fd5a6e9 Bug 1307710 - part3: fix ProcessingInstruction node for testcase. r=rillian
MozReview-Commit-ID: 9Wc98cOVjHD

--HG--
extra : rebase_source : 91e8c85f2372bba59af4685f1905301f8d691410
2017-03-03 11:34:33 +08:00
bechen 2210d5e1e8 Bug 1307710 - part2: webvtt cue voice span and language span need annotation. r=rillian
MozReview-Commit-ID: FqUMAt436ZP

--HG--
extra : rebase_source : ee75d2e5ac518cb8e5f8f3735ef54359e4a5db5b
2017-03-01 15:16:51 +08:00
bechen 5527619fbb Bug 1307710 - part1: Return Documentfragment instead of div for convertCueToDOMTree. r=rillian,smaug
MozReview-Commit-ID: KV1MNaMhNOG

--HG--
extra : rebase_source : 4ef3b2565cc890a9e7ffc230b61aef3d24c58568
2017-03-01 15:01:52 +08:00
bechen b150d24dbe Bug 1339355 - Remove the RTL table. r=heycam
MozReview-Commit-ID: GSNRA0XLHHX

--HG--
extra : rebase_source : f00324e56aed3e376297e0bbf3f2cbe6a47e9d6b
2017-02-16 15:08:04 +08:00
bechen 16d0b4a5e5 Bug 1294833 - Dump the pref "media.webvtt.regions.enabled" when exception for creating VTTRegion. r=jwwang
MozReview-Commit-ID: GuErJbUOv8U
2017-02-10 15:15:20 +08:00
Ralph Giles 1721921258 Bug 1328966 - Accept \r as a valid line ending. r=alwu
See https://w3c.github.io/webvtt/#webvtt-line-terminator for
allowed values.

MozReview-Commit-ID: C62Lu4PNQRE

--HG--
extra : rebase_source : 7c9215477ad39dbe319374357ef8f19d96ed423c
2017-01-12 11:20:26 -08:00
Ray Lin 8c3d97d3bc Bug 1271765 - Part 2: Desktop media control visual refresh. r=jaws
MozReview-Commit-ID: 1GfyGmrhgCs

--HG--
extra : rebase_source : e3b49788ddac0537281c8e2fb33c66b31e631db3
2016-10-12 13:31:32 +08:00
Wes Kocher c2c5f83043 Backed out 3 changesets (bug 1271765) for win8 mochitest(5) failures a=backout
Backed out changeset 022a4a018996 (bug 1271765)
Backed out changeset 1d96f03289f8 (bug 1271765)
Backed out changeset 57317a080c99 (bug 1271765)
2016-11-15 10:50:59 -08:00
Ray Lin 55062c0a73 Bug 1271765 - Part 2: Desktop video control visual refresh. r=jaws
MozReview-Commit-ID: 1GfyGmrhgCs

--HG--
extra : rebase_source : 8d4fc403c481fcdedf3976cdd97cc56ccc8344f9
2016-10-12 13:31:32 +08:00
Phil Ringnalda 7c7dd328d1 Backed out 3 changesets (bug 1271765) for -Werror bustage
CLOSED TREE

Backed out changeset 235ea1c681db (bug 1271765)
Backed out changeset 02d34b18d76b (bug 1271765)
Backed out changeset 088113647629 (bug 1271765)
2016-11-07 18:51:18 -08:00
Ray Lin d4e6a883c6 Bug 1271765 - Part 2: Desktop video control visual refresh. r=jaws
MozReview-Commit-ID: 1GfyGmrhgCs

--HG--
extra : rebase_source : 95795497077a1c18c7b81a88da85d166ad784871
2016-10-12 13:31:32 +08:00
Tom Tromey 5538d692d3 Bug 1286877 - do not set c-basic-offset for python-mode; r=gps
This removes the unnecessary setting of c-basic-offset from all
python-mode files.

This was automatically generated using

    perl -pi -e 's/; *c-basic-offset: *[0-9]+//'

... on the affected files.

The bulk of these files are moz.build files but there a few others as
well.

MozReview-Commit-ID: 2pPf3DEiZqx

--HG--
extra : rebase_source : 0a7dcac80b924174a2c429b093791148ea6ac204
2016-07-14 10:16:42 -06:00
Alastor Wu c1e061c2ec Bug 1283803 - part5 : fix the fail test. r=rillian
MozReview-Commit-ID: LgjDpvW2rQj

--HG--
extra : rebase_source : d8e88bb44acdca26ae415d81a4b50d203b78f51d
2016-07-19 17:07:41 +08:00