Commit Graph

442994 Commits

Author SHA1 Message Date
Jean-Yves Avenard
bf482d2ca8 Bug 1207442: Disable ffvpx with libav0.8 and earlier. r=edwin 2015-10-01 19:40:20 +10:00
JW Wang
2f38e6f128 Bug 1209887. Part 3 - remove unused code. r=jya. 2015-10-01 17:21:57 +08:00
JW Wang
1e5ddfde5c Bug 1209887. Part 2 - remove usage of decoder monitor. r=jya. 2015-10-01 17:21:56 +08:00
JW Wang
88f2b7fbdf Bug 1209887. Part 1 - add assertions. r=jya. 2015-09-30 06:55:20 +08:00
Jean-Yves Avenard
3785990cb1 Bug 1209850: Only attempt to initialize decoders as they are required. r=alfredo 2015-10-01 19:07:39 +10:00
Jean-Yves Avenard
6807956b60 Bug 1207312: P2. Amend gtest. r=bholley 2015-10-01 19:07:37 +10:00
Jean-Yves Avenard
181f3f61e0 Bug 1207312: P1. Prevent crash when more than one promise is rejected. r=bholley 2015-10-01 19:07:36 +10:00
Jean-Yves Avenard
e86d2aa8a5 Bug 1209806: P2. Initialize PDM before attempting to use it. r=gerald 2015-10-01 19:05:48 +10:00
Jean-Yves Avenard
e00a89455b Bug 1209806: Remove dependency on libavformat. r=edwin 2015-10-01 19:05:47 +10:00
Lars T Hansen
25b5faa8b8 Bug 1186982 - propagate OOM failures (no test case). r=h4writer 2015-10-01 11:02:40 +02:00
Paul Adenot
5467473807 Bug 1209904 - Optimize OscillatorNode when its frequency is not changin and it's using ::ComputeCustom. r=karlt 2015-10-01 10:52:28 +02:00
Nigel Babu
906147b670 Backed out changeset 04430cc26dba (bug 1180940) for Mulet Gij(4) bustage again.
--HG--
extra : amend_source : 3a0164d64d841349526acd11223cd88501a996f5
2015-10-01 13:53:14 +05:30
Ting-Yu Lin
ef28c788e2 Bug 1209841 - Send synthesized mouse long tap to gecko. r=automatedtester
Instead of using long_press_without_contextmenu() with built-in long tap
injector in AccessibleCaretEventHub to select a word, we can use
DOMWindowUtis to send synthesized mouse long tap events to gecko. This
triggers the code path which is closer to the real events fired by APZ
on B2G.

This change also makes marionette tests cover the focus-changing code by
long tap in AccessibleCaretManager. This is subtle but significant since
it's possible to write focus changing tests via long tap now.

--HG--
extra : commitid : 88Mi3beYfSI
extra : rebase_source : e61d6341a88b56e1c186e53d361b46f35e78f758
2015-09-30 18:29:35 +08:00
Ting-Yu Lin
5dc944a0b6 Bug 1209841 - Support mouse long tap in SendMouseEvent(). r=smaug
This is for synthesizing mouse long tap in marionette test for
AccessibleCaret.

--HG--
extra : commitid : 88Mi3beYfSI
extra : rebase_source : 2879c690e2162ea9eb213db65a81278b11900b01
2015-09-30 18:29:35 +08:00
Ting-Yu Lin
be3a27814f Bug 1209841 - Strip prefix underscore in to_unix_line_ending(). r=automatedtester
--HG--
extra : commitid : 88Mi3beYfSI
extra : rebase_source : e3b8d420e16bd093d22f75ae713a7362ddd1f14b
2015-09-30 18:29:35 +08:00
Ting-Yu Lin
d2db71ade5 Bug 1209841 - Simplify functions related to select word. r=automatedtester
* Use word_location() and long_press_on_location() to implement
  long_press_on_word.
* Use long_press_on_location() instead of
  long_press_without_contextmenu().

--HG--
extra : commitid : 88Mi3beYfSI
extra : rebase_source : 5b11ccf4aafdee3686ddeab5dfefab2e0ecea84d
2015-09-30 18:29:35 +08:00
Ting-Yu Lin
bbd3b85333 Bug 1209841 - Improve move_caret_by_offset() in selection.py. r=automatedtester
* Incorporate the for-loop in python into javascript so that we only
  need to call execute_script() once.
* Add documentation for parameters.

--HG--
extra : commitid : 88Mi3beYfSI
extra : rebase_source : bcf949c8a6055cf6ccaf541f8005fe88256555be
2015-09-30 18:29:34 +08:00
Ting-Yu Lin
2f83c55dc7 Bug 1209841 - Delete test_selectioncarets2.py. r=automatedtester
--HG--
extra : commitid : 88Mi3beYfSI
extra : rebase_source : 5317ce9eca0c6f25d7dd51daba98980880048776
2015-09-30 18:29:34 +08:00
Ting-Yu Lin
2e9cdf1eba Bug 1209841 - Merge test_selectioncarets2.py into test_selectioncarets.py. r=automatedtester
* Eliminate the duplicated code for setting the preferences.
* Rename open_test_html() in test_selectioncarets2.py to
  open_test_html_multirange() to avoid name collision.

--HG--
extra : commitid : 88Mi3beYfSI
extra : rebase_source : b0f79b4b2fe801074286682978105f1c3bcd39de
2015-09-30 18:29:34 +08:00
Nigel Babu
8b5e991515 Backed out changeset c37cbf6f6296 (bug 1204800) for Nexus 4 KK build bustage 2015-10-01 13:05:14 +05:30
Kevin Grandon
d176e0d847 Bug 1204965 - Graphene support. Merge larch into mozilla-central. r=fabrice r=glandium 2015-09-30 23:49:00 +02:00
John Dai
e8f4cf7032 Bug 1204800 - Add tooltool dependencies to phone builds. r=wcosta 2015-09-30 05:02:00 +02:00
Frédéric Wang
ecccd6d85a Bug 1210023 - Fix accessibilityAttributeValue for NSAccessibilityIndexAttribute. r=surkov 2015-10-01 08:40:35 +02:00
Ting-Yu Chou
676d1c6e06 Bug 1209865 - Add gecko profiler marker when mark() of User Timing API is called. r=baku 2015-09-30 16:53:37 +08:00
Nick Fitzgerald
1b51392ac1 Bug 1209779 - Ensure that all null elements are written when streaming profiler JSON; r=shu 2015-09-30 15:38:00 +02:00
Tom Klein
e94a3e4be4 Bug 1209525 - Protect GetGeometryBounds from a singular non-scaling-stroke transform. r=longsonr 2015-09-30 08:05:00 +02:00
Gerald Squelart
3c9a325b39 Bug 1207909 - p2: Fixed a warning (uninitialized 'err') and typo - r=jya 2015-09-30 07:37:00 +02:00
Gerald Squelart
1866c4d412 Bug 1207909 - p1: Fixed ALOGV statement - r=jya 2015-09-30 07:36:00 +02:00
Nils Ohlmeier [:drno]
cdfa84b6c4 Bug 1207451 - removed framing from multi_tcp API. r=bwc
--HG--
extra : transplant_source : %F9%C6%02H%9B%97%C0%2C%AC%07%F4%F6%99%25%09%0D%B6%11b%A1
2015-09-19 12:12:15 -07:00
Miko Mynttinen
132b6bcf2e Bug 1206720 - Remove invalid assertions during response image loading. r=jdm 2015-09-30 16:22:49 +03:00
Andrew Comminos
ca64242190 Bug 1206516 - Use temporary widget to construct style context for GtkInfoBar. r=karlt 2015-09-29 19:32:00 +02:00
Jakob Olesen
36080777ce Bug 1205621 - arm64: Handle OOMs in a safer manner. r=lth
When inserting instructions that encode a pc-relative offset, don't use
a method that depends on getting a pointer to the newly inserted method.

Use the new nextinstrOffset() method when computing the encoding of the
pc-relative offset, and only insert each instruction once.

Propagate OOM from calls to buffer.allocEntry, folowing the approach in
the ARM assembler.
2015-09-24 10:21:00 +02:00
Sean Lin
ca5474513a Bug 1204709 - Disable some presentation mochitests on certain platforms to avoid intermittent issues. r=kwierso 2015-10-01 11:42:27 +08:00
Miko Mynttinen
155f3d3bc5 Bug 1187011 - Don't allow response body with null body status. r=bkelly 2015-09-30 21:50:10 +03:00
sajitk
43d9468d87 Bug 1180940 - Changed return type of AudioDestinationNode::CreateAudioChannelAgent method to return errors, if any methods that it calls fail. Added code to handle the return value in AudioContext::Init(), and its callers. r=baku 2015-09-30 17:51:00 +02:00
Chris Peterson
0c816bee5c Bug 1208357 - Fix -Wshadow warnings in mfbt/decimal. r=Ms2ger sr=Waldo 2015-09-22 20:43:29 -07:00
Catalin Badea
12590da787 Bug 1188545 - Fixup for test_serviceworker_lifetime.html a=testonly 2015-10-01 01:42:18 -04:00
Gregory Szorc
d772ee1cfe Bug 1208320 - Decrease compression level of test zip archives; r=glandium
Compressing C++ unit tests is a long pole when writing test archives.
Experimenting with various levels of compression revealed that
compression level 9 was providing minimal space savings for
significantly longer archiving times and greater CPU usage.

Results of our experimentation of `make -sj8 package-tests` on OS X
with various levels of compression are below. Note: these numbers were
accidentally obtained without JS tests being archived. This skews the
results a little but doesn't impact the analysis below.

ARCHIVE        SIZE       WALL   CPU

(L=9)
cppunittest  76,806,629  30.6s
mochitest    61,276,928   9.4s
reftest      31,204,396  11.0s
ALL         228,146,761  31.2s  75.9s

(L=8)
cppunittest  76,851,593  24.1s
mochitest    61,279,322   8.9s
reftest      31,207,867  10.4s
ALL         228,228,096  24.9s  64.7s

(L=7)
cppunittest  77,102,292  14.3s
mochitest    61,305,147   8.2s
reftest      31,260,359   9.4s
ALL         228,717,803  15.0s  49.1s

(L=6)
cppunittest  77,321,408  11.5s
mochitest    61,336,539   8.2s
reftest      31,303,604   9.2s
ALL         229,123,307  12.2s  44.7s

(L=5)
cppunittest  78,226,404   8.2s
mochitest    61,483,804   7.6s
reftest      31,509,349   8.8s
ALL         230,725,600   9.6s  39.7s

(L=4)
cppunittest  79,733,669   6.3s
mochitest    61,825,519   7.6s
reftest      31,924,171   8.4s
ALL         233,669,991   9.0s  36.4s

(L=3)
cppunittest  82,380,731   5.8s
mochitest    62,554,431   7.1s
reftest      32,696,415   8.1s
ALL         239,180,168   8.9s  34.6s

Levels lower than 3 resulted in larger archives with no decreae in
wall time and marginal decrease in CPU time.

As we can see, lowering the compression level reduces archiving time by
>3x while only increasing total archive size by ~2.5 MB or ~1% for
compression level 5.

Total time hits a plateau around levels 4 and 5. After that, file size
increases faster for little decrease in wall time. I suspect that we're
hitting Python limits from having to process thousands of files: there's
only so fast Python can do I/O and make function calls.

I think choosing 4 or 5 for the new compression level are acceptable.
I went with 5 because the wall time savings from 5 to 4 are marginal and
the archive size does start to increase a bit faster at 4. That being
said, 4 does consume 10% less CPU. I could easily just 4 as well. 5 is
more conservative. We can always change to 4 after seeing results in the
wild.

The end result of this change is `make package-tests` is much faster:

Before:  228,146,761 bytes;  31.2s wall;  75.9s CPU
After:   230,725,600 bytes;  11.4s wall;  45.0s CPU
Delta:    +2,578,839 bytes; -19.8s wall; -30.9s CPU

When you take the whole series into consideration:

Before:  44.2s wall; 84.6s CPU
After:   11.4s wall; 45.0s CPU

Lowering CPU is impressive considering we switched from the C `zip`
implementation to Python!

Keep in mind we were at ~78s wall before e87b74b3db43 introduced
concurrent archive generation!

And we still haven't eliminated the staging of JS tests, which are
several thousand files and a few dozen MB!

--HG--
extra : commitid : D1fD4NUTw2F
extra : rebase_source : c6de72656cfedc98c0cf1c09eefe1dfb84f3639b
2015-09-30 11:33:04 -07:00
Gregory Szorc
0a670f5daa Bug 1208320 - Support configuring zlib compression level; r=glandium
An upcoming commit will introduce a caller that doesn't want the maximum
compression level. This commit introduces arguments to control the
compression level inside written archives.

--HG--
extra : commitid : KkDso3hB2QG
extra : rebase_source : 8fd05aeae5c3555e1169eac6656d584007cd0739
2015-09-30 11:31:00 -07:00
Gregory Szorc
479e915b47 Bug 1208320 - Print message when done with archiving; r=glandium
Metrics are nice. Adding this output clearly demonstrates that C++ unit
tests are the long pole by far: they take ~95% of wall execution time
to archive (~30s total). The next longest archive only takes ~11s to
produce. This will be important if we ever want to reduce archive time
further on optimal hardware.

FWIW, disabling compression will produce a C++ unit test archive in
1.0s. Archives with more files take longer, despite the significantly
smaller sizes.

--HG--
extra : commitid : 6E56aUoZUL2
extra : rebase_source : 48cad51d7fbae883861f35e1b5cb96799b452bfb
2015-09-30 11:29:22 -07:00
Gregory Szorc
1037624226 Bug 1208320 - Do not stage some C++ unit test support files before archiving; r=glandium
Won't impact performance much. But fewer make foo makes porting the C++
unit tests (which are the largest remaining tests) to the Python
archiver easier to grok.

This conversion did change behavior slightly. Previously, startup
cache files weren't being packaged if startup cache was disabled. Now,
we always package them since their presence in the test archive should
be harmless. The original change to guard their inclusion in
ee82e0ae5488 was probably unnecessary.

--HG--
extra : commitid : AzU65j0E1q0
extra : rebase_source : 9b8a15dc1a5f3c3d3e453cefb3a99b05f5a77711
2015-09-30 17:41:46 -07:00
Gregory Szorc
a88dbb7290 Bug 1208320 - Do not stage mozbase files before archiving; r=glandium
This prevents copying of 447 files adding to ~4 MB.

--HG--
extra : commitid : 7zTbiQeMQSQ
extra : rebase_source : b3ac223835ba7289ace45aa7d02c5a050d54cc0d
2015-09-30 11:15:51 -07:00
Gregory Szorc
fd090d4a75 Bug 1208320 - Do not stage JS test modules before archiving; r=glandium
Saves 400 KB over 40 files on my machine.

--HG--
extra : commitid : E2U6mnB4tOw
extra : rebase_source : ffc2663a03d7e3287a36c347ac5a747237e86025
2015-09-30 11:04:58 -07:00
Gregory Szorc
611659f236 Bug 1208320 - Do not stage TPS files before archiving; r=glandium
This saves copying of ~100 files comprising ~1 MB. Not significant. But
it gets us a little closer to no staging.

--HG--
extra : commitid : 6Hjnhv4Yi5R
extra : rebase_source : 291c89682a23cde957b3c68f2efe3b6dc3d3d543
2015-09-30 11:03:32 -07:00
Gregory Szorc
022105cc96 Bug 1208320 - Do not stage reftest test files before archiving; r=glandium
This is slightly more involved than earlier changes because reftests
have a one-off mechanism for finding files. Essentially, the master
reftest manifest is loaded, directories are discovered, and every file
in those directories is packaged.

We add support to our test archive generation tool to read sources from
reftest manifests and tell it where the reftest manifests are.
print-manifest-dirs.py was only being used for staging reftest files.
Since we don't do that any more, the functionality doesn't need to exist
in a standalone file, so it has been moved inline into test_archive.py.

This change avoids copying ~26,000 tests consuming 131 MB during test
packaging. This is a majority of the file count that was remaining in
the stage directory at this point. On my machine (which hasn't typically
seen major wall time wins from not staging files due to its fast SSD),
this change made test packaging ~20% faster, reducing wall time from
~50s to ~40s!

A Try push seemed to indicate drastic results with the series up to this
point. Including the already landed changes to generate test archives
concurrently, test packaging times on OS X builders dropped from ~18:40
to 6:29! Times on Linux x64 remained about the same (~2:46). This is
possibly due to these machines already having SSDs and due to normal
variance in performance of builders and EC2 instances.

--HG--
extra : commitid : 34E8V8lSGg7
extra : rebase_source : 720afcd35f6a2b6cb1217df23ae981408a88cb94
2015-09-30 17:39:33 -07:00
Gregory Szorc
d460d0b2dc Bug 1208320 - Do not stage some reftest support files before archiving; r=glandium
After this, only reftest files themselves are staged. Those will be
addressed in a subsequent commit.

--HG--
extra : commitid : 9jWl9Twcizr
extra : rebase_source : 3e4a319d60b7ee7eddecc597eb250184140b1e71
2015-09-30 10:46:52 -07:00
Gregory Szorc
4c71c72f21 Bug 1208320 - Do not stage JIT test files before archiving; r=glandium
This avoids copying 5000+ files consuming ~37 MB on my build
configuration.

--HG--
extra : commitid : 6DmsjUYgjXq
extra : rebase_source : 123dd42a7d0b9cc244a3ab7773010dfc5769a4ac
2015-09-30 10:03:25 -07:00
Gregory Szorc
94d0bd111f Bug 1208320 - Produce cppunittest and reftest packages via Python; r=glandium
With this change, all test ZIP archives are now generated via Python and
mozpack.

This change does not change I/O or file copy behavior at all. There is
still a lot of room for eliminating extra file copies.

--HG--
extra : commitid : 9mWdtDK6wAb
extra : rebase_source : 0f19c627d64d22bf9d65161d4f7df7c9778dea3c
2015-09-30 09:58:31 -07:00
Gregory Szorc
fe96a68dba Bug 1208320 - Produce common tests archive via Python; r=glandium
This doesn't change I/O or copy behavior at all. But it does remove a
one-off make rule.

--HG--
extra : commitid : X0efdFHA0k
extra : rebase_source : c7cb8616461eccd1ff7f8eb3b409bd4944c9e1ec
2015-09-30 17:38:53 -07:00
Gregory Szorc
1c2fb95934 Bug 1208320 - Produce talos test archive without staging files; r=glandium
This is pretty straightforward. This saves ~26 MB of file copies.

--HG--
extra : commitid : ItghoP73zS8
extra : rebase_source : 9656719a6459c1e6fa28165591722fe00d6d9b1d
2015-09-30 09:48:04 -07:00