Commit Graph

61 Commits

Author SHA1 Message Date
Kris Maglione
fd7e9e6a69 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
2018-04-22 20:55:06 -07:00
Andrew McCreight
272cee1e65 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
2018-02-06 09:36:57 -08:00
Kris Maglione
0bb74efdf1 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
2018-01-29 15:20:18 -08:00
Cosmin Sabou
f09d6d985d 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
fd67f090b2 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
2018-01-29 15:20:18 -08:00
Brindusan Cristian
483ba301cb 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
683a97d172 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
2018-01-29 15:20:18 -08:00
Wes Kocher
b43530454c Merge m-c to inbound, a=merge
MozReview-Commit-ID: 4CJDJBAcVPL
2017-09-08 13:41:21 -07:00
David Anderson
83c21732a2 Rename the Advanced Layers pref to indicate that it's stable. (bug 1385051 part 1, r=milan) 2017-09-08 10:21:18 -07:00
Jean-Yves Avenard
11fa22051b Bug 1392143 - P6. Use constants in coordinate calculations. r=mattwoodrow
This shows how the coordinates were actually calculated. and will make it easier should the video size needs to ever be changed again.

MozReview-Commit-ID: KkQNqz00Aw0
2017-09-07 19:36:20 +02:00
Jean-Yves Avenard
ff381dc3a2 Bug 1392143 - P5. Improve rendering test. r=mattwoodrow
We now check that the canvas is properly scaled by checking if the color immediately on the right of the canvas is correct.

If the rendering failed, we do not bother testing the H264 video decoder.

MozReview-Commit-ID: IwBwKnceLBg
2017-09-07 19:19:35 +02:00
Jean-Yves Avenard
dd4b4bf50b Bug 1392143 - P3. Resize window after moving it. r=mattwoodrow
This ensure that the window still has the intended size if it had been resized due to different DPI setup.

MozReview-Commit-ID: 9oeXbTKQqhe
2017-09-07 17:49:05 +02:00
Jean-Yves Avenard
e5b8754141 Bug 1392143 - P2. Disable hardware decoding for small videos. r=mattwoodrow
As the H264 SanityTest uses a 132x132 videos to determine if the hardware decoder is working, we always use the software decoder for smaller videos.

MozReview-Commit-ID: 8VbZTiJO9mA
2017-09-06 17:02:21 +02:00
Jean-Yves Avenard
68c58da03b Bug 1392143 - P1. Change video size used for testing if h264 decoder is working. r=mattwoodrow
AMD incorrectly decode videos with a resolution that is less than 128x128, as such with the test failing we disable hardware decoding on those machines, even though other resolutions work well.

So we use a 132x132 video instead.

MozReview-Commit-ID: 80mk11CNsil
2017-09-06 15:42:46 +02:00
Wes Kocher
af3b922b5c Backed out 6 changesets (bug 1392143) for lint failures in SanityTest.js a=backout
Backed out changeset 5e167360b1f9 (bug 1392143)
Backed out changeset c1fcfceeefae (bug 1392143)
Backed out changeset 5220b19f1fc0 (bug 1392143)
Backed out changeset ff3a335e7111 (bug 1392143)
Backed out changeset b1627a3a5d77 (bug 1392143)
Backed out changeset 40e16e34df00 (bug 1392143)

MozReview-Commit-ID: KWifvOL8d9s
2017-09-07 16:17:11 -07:00
Jean-Yves Avenard
b401bba1c8 Bug 1392143 - P6. Use constants in coordinate calculations. r=mattwoodrow
This shows how the coordinates were actually calculated. and will make it easier should the video size needs to ever be changed again.

MozReview-Commit-ID: KkQNqz00Aw0
2017-09-07 19:36:20 +02:00
Jean-Yves Avenard
2c2ac80ebc Bug 1392143 - P5. Improve rendering test. r=mattwoodrow
We now check that the canvas is properly scaled by checking if the color immediately on the right of the canvas is correct.

If the rendering failed, we do not bother testing the H264 video decoder.

MozReview-Commit-ID: IwBwKnceLBg
2017-09-07 19:19:35 +02:00
Jean-Yves Avenard
254804b0fa Bug 1392143 - P3. Resize window after moving it. r=mattwoodrow
This ensure that the window still has the intended size if it had been resized due to different DPI setup.

MozReview-Commit-ID: 9oeXbTKQqhe
2017-09-07 17:49:05 +02:00
Jean-Yves Avenard
bc0a02acff Bug 1392143 - P2. Disable hardware decoding for small videos. r=mattwoodrow
As the H264 SanityTest uses a 132x132 videos to determine if the hardware decoder is working, we always use the software decoder for smaller videos.

MozReview-Commit-ID: 8VbZTiJO9mA
2017-09-06 17:02:21 +02:00
Jean-Yves Avenard
61394d756f Bug 1392143 - P1. Change video size used for testing if h264 decoder is working. r=mattwoodrow
AMD incorrectly decode videos with a resolution that is less than 128x128, as such with the test failing we disable hardware decoding on those machines, even though other resolutions work well.

So we use a 132x132 video instead.

MozReview-Commit-ID: 80mk11CNsil
2017-09-06 15:42:46 +02:00
Sebastian Hengst
cfb4f8e4d0 Backed out changeset 6c13864a1bee (bug 1392143) for unexpectedly passing gl suite's dom/canvas/test/webgl-mochitest/test_video_fastpath_mp4.html, at least on Windows 7 debug. r=backout 2017-09-07 14:51:59 +02:00
Sebastian Hengst
992654ce00 Backed out changeset acf2ccf34d75 (bug 1392143) 2017-09-07 14:51:01 +02:00
Jean-Yves Avenard
1f290372bf Bug 1392143 - P2. Disable hardware decoding for small videos. r=mattwoodrow
As the H264 SanityTest uses a 132x132 videos to determine if the hardware decoder is working, we always use the software decoder for smaller videos.

MozReview-Commit-ID: 8VbZTiJO9mA
2017-09-06 17:02:21 +02:00
Jean-Yves Avenard
5f024d472a Bug 1392143 - P1. Change video size used for testing if h264 decoder is working. r=mattwoodrow
AMD incorrectly decode videos with a resolution that is less than 128x128, as such with the test failing we disable hardware decoding on those machines, even though other resolutions work well.

So we use a 132x132 video instead.

MozReview-Commit-ID: 80mk11CNsil
2017-09-06 15:42:46 +02:00
Marco Castelluccio
190bb2870c Bug 1357517 - Remove Preferences.jsm usage from graphics sanity test. r=mchang 2017-07-31 19:36:32 +02:00
David Anderson
839c7cbab4 Disable Advanced Layers when the sanity test fails. (bug 1377866 part 3, r=mchang) 2017-07-10 19:30:52 -07:00
Florian Quèze
1c0aa1513f Bug 1373387 - Places should not be initialized by the SanityTest window, r=mak. 2017-06-16 09:58:06 +02:00
Jared Wein
0ec522d5b6 Bug 1331661 - Enable the 'quotes' rule for eslint and fix most of the errors with --fix. r=Gijs
MozReview-Commit-ID: 6tv0Z06CO4a
2017-01-17 09:48:17 -06:00
Jared Wein
242ab87626 Bug 1326511 - Enable brace-style and no-multi-spaces eslint rules for toolkit. r=MattN
MozReview-Commit-ID: FuVu8skcqOe
2016-12-30 21:47:25 -05:00
Jared Wein
e3149c378f Bug 1325464 - Enable object-shorthand rule and run 'mach eslint --fix' with the rule enabled. r=MattN
MozReview-Commit-ID: 7E7LPorrEje
2016-12-29 18:34:54 -05:00
Wes Kocher
2d7553dcfd Backed out 3 changesets (bug 1325464) for xpcshell failures a=backout
Backed out changeset 562ddc32cc21 (bug 1325464)
Backed out changeset cd10db6087dd (bug 1325464)
Backed out changeset 4079437c4648 (bug 1325464)
2016-12-29 14:05:44 -08:00
Jared Wein
34e228f767 Bug 1325464 - Enable object-shorthand rule and run 'mach eslint --fix' with the rule enabled. r=MattN
MozReview-Commit-ID: 8WoGr8i6oCR
2016-12-29 15:20:47 -05:00
Dave Townsend
12596ced47 Bug 1316882: Turn on space-infix-ops eslint rule. r=jaws
MozReview-Commit-ID: HBpjT2uHJaZ
2016-11-10 14:48:04 -08:00
Mark Banner
8ddd9bb511 Bug 1315951 - Fix no-unused-vars issues in toolkit/components (except places). r=mossop
MozReview-Commit-ID: 8svkCKZHxsq
2016-11-08 12:49:32 +00:00
Jared Wein
8860cdf2c1 Bug 1294547 - Enable the comma-spacing rule for eslint. r=felipe
MozReview-Commit-ID: RCSDEvvk2I
2016-08-16 15:44:15 -04:00
Jared Wein
2e68ede24e Backout patch for bug 1211647 to allow more time for investigating startup hang/crash on debug builds. r=me
MozReview-Commit-ID: CuG6yjUFQIt
2016-05-25 00:15:49 -04:00
Jared Wein
d5b5c7ed00 Bug 1211647 - Runtime graphics testing window should not be visible after update. r=mchang
MozReview-Commit-ID: 46Bi2eW5NB5
2016-05-24 10:35:44 -04:00
Mason Chang
bb718479c6 Backed out bug 1211647 changeset 3c11b1d79787 due to potential crashes. r=me 2016-04-28 19:34:27 -04:00
Jared Wein
9cce16eae9 Bug 1211647 - Runtime graphics testing visible during session restore. r=mchang
MozReview-Commit-ID: 46Bi2eW5NB5
2016-04-28 13:14:22 -04:00
Ben Kelly
1b40324923 Bug 1268065 Clean up various references to avoid leaking gfxsanity.html window. r=mchang 2016-04-28 01:47:47 -07:00
Chris Pearce
07fe5cb795 Bug 1254942 - Redo sanity check whenever buildId changes. r=mchang
MozReview-Commit-ID: 826Mt89OuPp
2016-03-10 15:01:58 +13:00
Dave Townsend
a2ba043d69 Bug 1245649: Turn on no-trailing-spaces. r=Gijs 2016-02-03 14:22:33 -08:00
David Anderson
bb4a9ab232 Fix exception on timeout in SanityTest.js, and increase the timeout time. (bug 1205819, r=mchang) 2015-09-18 18:37:57 -07:00
Shu-yu Guo
37989840cd Bug 1202902 - Mass replace toplevel 'let' with 'var' in preparation for global lexical scope. (rs=jorendorff) 2015-09-15 11:19:45 -07:00
David Anderson
3f9210c80a Add a timeout to the graphics sanity test. (bug 1195623, r=mchang) 2015-09-03 20:58:48 -07:00
David Anderson
3d89191f67 Backout changeset 3b7d72e5e850 (bug 1196128, r=vladan) 2015-08-24 23:20:30 -04:00
David Anderson
12f2549299 When the sanity test fails, report its snapshot via Telemetry. (bug 1194505, r=mattwoodrow,vladan) 2015-08-13 17:51:31 -07:00
David Anderson
d9c8688dff Fix a typo in SanityTest.js causing skewed Telemetry data. (bug 1191613, r=mchang) 2015-08-06 13:07:36 -07:00
David Anderson
14c163fc4b Annotate crash reports during the graphics sanity test. (bug 1181375 part 2, r=mchang) 2015-07-10 19:44:30 -07:00
David Anderson
e06824e16c Add telemetry for why the graphics sanity test chooses to run. (bug 1181375 part 1, r=mchang) 2015-07-10 19:44:25 -07:00