Commit Graph

16943 Commits

Author SHA1 Message Date
Andrew McCreight
31e39883db Bug 1375262 - Add the ability to pass sandbox options to SpecialPowers.loadChromeScript(). r=jmaher
SpecialPowers.loadChromeScript() sends a script to the child process,
then creates a sandbox, and runs the script in that sandbox. There are
various sandboxOptions that can be passed when creating a sandbox, and
it would be nice to have that functionality for loadChromeScript.

I just need this for wantGlobalProperties, but I might as well make it
as general as possible. I'm not sure all of the types it can take can
actually be serialized across processes, but I guess that's okay.

MozReview-Commit-ID: GoJjXdjizFk

--HG--
extra : rebase_source : 9c2bc190dbf5a080978953cffd64205e8b816367
2017-06-20 15:50:20 -07:00
Greg Mierzwinski
aae2d9402c Bug 1367763 - Run grcov after code coverage collection on linux64-ccov. r=jmaher,marco
This patch adds grcov to linux64-ccov. Grcov is then used after code coverage collection to process the .gcno and .gcda files into a .info (LCOV-style) file. It also uses the 'linked-files-map.json' to rewrite symbolic links to the path that they point to. The .info file that is produced is called 'grcov_lcov_output_stdout' and is stored in the zip file 'code-coverage-grcov.zip'.

MozReview-Commit-ID: 5WhD289N6Fs

--HG--
extra : rebase_source : 9ed60bd96f5e9a479771357e38b0b3b16abd351e
2017-05-29 14:19:54 -04:00
Chris AtLee
84434ba58f Bug 1371513: fix hg debuginstall r=Callek
MozReview-Commit-ID: EAxMJQSSWBM

--HG--
extra : rebase_source : aadb0fe3adfc616ddb3d3f4db23cca323077a34e
2017-06-21 20:02:41 -04:00
Carsten "Tomcat" Book
7fa56f5378 Merge mozilla-central to autoland 2017-06-22 14:11:46 +02:00
Florian Quèze
66f6d259bc Bug 1374282 - script generated patch to remove Task.jsm calls, r=Mossop. 2017-06-22 12:51:42 +02:00
Carsten "Tomcat" Book
4f3bc4dba8 merge mozilla-inbound to mozilla-central a=merge 2017-06-22 12:47:40 +02:00
Phil Ringnalda
cb4caa5dfa Merge m-c to m-i
MozReview-Commit-ID: FKVZCEscusy
2017-06-21 23:50:09 -07:00
Phil Ringnalda
0cbefa7f79 Merge m-c to autoland
MozReview-Commit-ID: J67ilIl6BtO
2017-06-21 23:36:06 -07:00
Phil Ringnalda
08e2f5187b Backed out 3 changesets (bug 1368072) for colliding with a new use of the thing it was renaming
Backed out changeset 1d7e008d7d70 (bug 1368072)
Backed out changeset c4a1ddf9be0d (bug 1368072)
Backed out changeset ba1cdae5a8d6 (bug 1368072)
2017-06-21 23:28:37 -07:00
Wes Kocher
ac0fd2038c Merge inbound to m-c a=merge
MozReview-Commit-ID: 3LXFVwSoMvs
2017-06-21 17:58:17 -07:00
Tobias Schneider
73616729d7 Bug 1363650 - (intersection-observer) Use content area as the intersection rectangle for custom root with overflow clip. r=mattwoodrow
--HG--
extra : rebase_source : f5f559903d704159a062d99fa43360a6222a3ee7
2017-06-21 10:40:44 -07:00
Nathan Froyd
b28fcc5c4b Bug 1372670 - part 5 - add nsIThreadManager::spinEventLoopUntilEmpty; r=erahm,florian
A number of places in JS need to drain the current thread's event queue,
which cannot be done with nsIThreadManager::spinEventLoopUntil, since we
need to not wait for an incoming event when attempting to process one.
2017-06-21 12:59:28 -04:00
Nathan Froyd
452dc60022 Bug 1372670 - part 4 - use nsIThreadManager::dispatchToMainThread more from JS; r=florian
We did an automated conversion for many of these in another bug, but
these instances were either missed or have been added since then.
2017-06-21 12:59:28 -04:00
Nathan Froyd
27c58cf89f Bug 1372670 - part 3 - add spinEventLoopUntil to nsIThreadManager; r=erahm,florian 2017-06-21 12:59:28 -04:00
Joel Maher
5ae491ff90 Bug 1360446 - Intermittent test_click.py TestLegacyClick.test_click. temporarily disable on debug+e10s. r=gbrown
MozReview-Commit-ID: 5izvQ1NnKrD
2017-06-21 10:11:08 -04:00
Wes Kocher
d0eddcaa44 Merge m-c to autoland a=merge
MozReview-Commit-ID: 5D2HzsGopzc
2017-06-21 18:13:41 -07:00
James Graham
187d2e0308 Bug 1375145 - Make xdist hook optional in pytest-mozlog, r=davehunt
MozReview-Commit-ID: 6wVUi9XoLZX

--HG--
extra : rebase_source : c2894130a01be8f37383d318ee927fe093b14b68
2017-06-21 18:07:27 +01:00
Carsten "Tomcat" Book
859e15bbda Backed out changeset ea9c2e2a07e5 (bug 1375145) for test failures in /mozlog/pytest_mozlog/plugin.py:10:1 2017-06-22 12:13:36 +02:00
James Graham
3a7558d388 Bug 1375145 - Make xdist hook optional in pytest-mozlog, r=davehunt
MozReview-Commit-ID: 6wVUi9XoLZX

--HG--
extra : rebase_source : cf43a64a98f2cc961918b3666900a4e228b953e7
2017-06-21 18:07:27 +01:00
James Graham
bd8dfcf6a3 Bug 1354750 - Disable loading mozlog plugin with pytest for wpt, r=ato
Loading mozlog from within the executor process makes us prone to
deadlocks since we can't guarantee that the log mutex isn't acquired
when we fork() the parent process, and the python multiprocessing
module doesn't respect posix guidelines about execv()ing a new process
after a fork().

To avoid this specific instance of the probelm we stop pytest loading
the mozlog plugin which we aren't actually using but is loaded by
default when mozlog is available.

MozReview-Commit-ID: IIllNZVOUJz

--HG--
extra : rebase_source : 9281a4d72c82038589937a4f743e1a2447439e95
2017-06-21 16:46:39 +01:00
Carsten "Tomcat" Book
042f077193 Backed out 17 changesets (bug 1363428) for various testfailures
Backed out changeset 70ce0f808a66 (bug 1363428)
Backed out changeset 5a9a4960a48a (bug 1363428)
Backed out changeset a927531f40db (bug 1363428)
Backed out changeset f1114f4af79a (bug 1363428)
Backed out changeset 4ea37712ed33 (bug 1363428)
Backed out changeset 11692e3c22eb (bug 1363428)
Backed out changeset a85d3f3544cb (bug 1363428)
Backed out changeset 6a7985dda6a1 (bug 1363428)
Backed out changeset f09573370d2f (bug 1363428)
Backed out changeset 2b5ad17f890a (bug 1363428)
Backed out changeset c7086fa5816c (bug 1363428)
Backed out changeset d2f9bdba146c (bug 1363428)
Backed out changeset 014b9aeb9ac2 (bug 1363428)
Backed out changeset 41d682cbc05f (bug 1363428)
Backed out changeset e2e74e66ca3e (bug 1363428)
Backed out changeset 97db3b14fafd (bug 1363428)
Backed out changeset 42e2ae612663 (bug 1363428)
2017-06-21 15:16:00 +02:00
Carsten "Tomcat" Book
7177a36cde Merge mozilla-central to mozilla-inbound 2017-06-21 14:55:27 +02:00
James Graham
361ce8984d Bug 1363428 - Update some metadata for stylo-e10s-debug, a=testonly
MozReview-Commit-ID: 2HHgkMpKlvQ
2017-06-21 12:46:24 +01:00
Gerald Squelart
69d1b2fad6 Bug 1374545 - Tests use media.memory_cache_max_size=32KB to exercise both memory&file caches - r=cpearce
This should exercise MemoryBlockCache in about 65% of tests, and FileBlockCache
in 35% of tests.

Also media.memory_caches_combined_limit_kb=256KB, to exercise the fallback to
FileBlockCache when MemoryBlockCaches are using too much memory.

MozReview-Commit-ID: A8k3espEg03

--HG--
extra : rebase_source : dd4fcbaa669912fe02098552a8a564d123f76a33
2017-06-21 14:49:16 +12:00
Phil Ringnalda
44f60566a9 Backed out 3 changesets (bug 1368072) for timeouts in test_TelemetrySession.js and test_fullscreen-api.html and unhandled "TypeError: Services.tm.mainThread.idleDispatch is not a function" promise rejections
Backed out changeset 357635c84e49 (bug 1368072)
Backed out changeset 1797afe16a2a (bug 1368072)
Backed out changeset 4782401394a9 (bug 1368072)

MozReview-Commit-ID: 6kdcSkERjTD
2017-06-20 21:41:14 -07:00
Wes Kocher
c0e1236f1a Merge autoland to m-c a=merge
MozReview-Commit-ID: LFtpTAueYrF
2017-06-20 18:24:29 -07:00
Andrew Halberstadt
801192a683 Bug 1373796 - Normalize xpcshell manifests in errorsummary, r=jgraham
MozReview-Commit-ID: It2HPXMuqLA

--HG--
extra : rebase_source : 5fa209652e5deb0e58e58b66a380f670ee2473de
2017-06-20 10:52:33 -04:00
Sebastian Hengst
c5ea7e6f4f Backed out changeset 6731e1742804 (bug 1371405) for failing webdriver/contexts.py | contexts.py::test_window_size_types. r=backout 2017-06-20 21:23:43 +02:00
Sebastian Hengst
2f986ef967 Backed out changeset 2165c3e795b8 (bug 1371405) 2017-06-20 21:23:14 +02:00
Sebastian Hengst
319bdce422 Backed out changeset 9f4ce21f8652 (bug 1371405) 2017-06-20 21:23:09 +02:00
Sebastian Hengst
d4d94c196f Backed out changeset 010032851619 (bug 1371405) 2017-06-20 21:23:05 +02:00
James Graham
4480587bb8 Bug 1294820 - Add support for running wpt from one-click loaner mach environment, r=ahal
Allow running |mach wpt| on one click loaners in order to run
web-platform-tests tests.

This implementation is just like the one for other testsuites using
thee packaged tests rather than the checkout that we get with wpt, at
least on Linux. That's also where the tests run from so it seems
reasonable for now. Moving to the checkout in the future could remove
some of the logic here by using a fake mozbuild environment so that
the testsuite itself doesn't have to implement anything much.

MozReview-Commit-ID: CaewrdjJ2ef

--HG--
extra : rebase_source : 491b8014d48f06ff5bd41b28cc985608981fbdf4
2017-06-19 19:20:41 +01:00
Alex Gaynor
6f7e5916ce Bug 1374718 - removed strictContentSandbox mochitest option; r=bobowen
For a while now it has been making the content process sandbox less strict.

MozReview-Commit-ID: Am6fGzViaLk

--HG--
extra : rebase_source : 0bc037f205896c866559a7ab1f7e2c042c3142db
2017-06-20 13:30:45 -04:00
Wes Kocher
bb24138b9d Merge m-c to inbound, a=merge
MozReview-Commit-ID: CaSKFN9T7N4
2017-06-21 18:05:27 -07:00
Kris Maglione
40a2e05893 Bug 1375219: Remove MozAfterPaint listener before calling await. r=mconley
MozReview-Commit-ID: 7PIjbvtPObl

--HG--
extra : rebase_source : 4e7dbf9d6af0790b6907bf544145f7b0adb7abfa
2017-06-21 12:13:44 -07:00
Geoff Brown
adeec452ba Bug 1371833 - In 'mach test-info', use posix paths for queries; r=jmaher 2017-06-21 13:59:28 -06:00
Andrew McCreight
aa2e0787df Bug 1375188 - Don't import TextEncoder from osfile.jsm in CoverageUtils.jsm. r=Gijs
This import is unnecessary, because the WebIDL interface for
TextEncoder has Exposed=System, so it is available on the JSM
global. I can revert some of the changes from bug 1348103 at the same
time.

I need to remove this import, because it will break with shared JSM
globals.

MozReview-Commit-ID: BKmaH8iTFnI

--HG--
extra : rebase_source : bbb2944245ec2d8040f5138e1c6ee00ea05a52a3
2017-06-21 09:28:52 -07:00
Jared Wein
ca9062af98 Bug 1357801 - Run Kraken in a chromeless browser window so as to remove any noise from UI changes. r=mconley
MozReview-Commit-ID: GcDOSRJA7TR

--HG--
extra : rebase_source : fe7b45f327fabfa4a3cb1b29a0019a2fddb69f52
2017-06-21 15:55:45 -04:00
Mike Conley
3e797b289e Bug 1375096 - Make tpaint use TalosContentProfiler so that we can get full profiles from automation. r=jmaher
MozReview-Commit-ID: 9Si9rHeabWF

--HG--
extra : rebase_source : 66f48ae9934d40996bfde8e2ac1bb7d3abae8a42
2017-06-21 11:55:19 -04:00
Mike Conley
94d7810f7e Bug 1375096 - Make it so that TalosContentProfiler beginTest and finishTest can be called without the profiler being enabled. r=jmaher
MozReview-Commit-ID: ERpWl1ZNIFi

--HG--
extra : rebase_source : fc679a3732100edb5bdc396a1b35e7d0983ceacf
2017-06-21 12:02:58 -04:00
Andreas Farre
a89aab3e1d Bug 1368072 - Use idleDispatchToMainThread instead. r=ato
Adapt to the move of nsIThread.idleDispatch to
nsIThreadManager.idleDispatchToMainThread.
2017-06-21 12:36:41 +02:00
James Graham
013a7df773 Bug 1363428 - Disable some unstable reftests on macOS, a=testonly
MozReview-Commit-ID: FS7JOYP1Jnd
2017-06-21 11:25:59 +01:00
James Graham
fe67da6792 Bug 1363428 - Use the internal reftest implementation by default on Linux and OSX, r=ato
This is faster and works better in some cases (e.g. with SVG). However
it doesn't work correctly on Windows yet, so remains disabled there by default.

MozReview-Commit-ID: AXyeFUGfVgx
2017-06-21 11:25:59 +01:00
James Graham
74259b962f Bug 1363428 - Update expectation data for reftest changes, r=ato
The internal reftest harness changes some results, but it's not clear
that it's overall better or worse than the old one, so just update the
expectation metadata for now.

MozReview-Commit-ID: KSE2z1Ct72t
2017-06-21 11:25:58 +01:00
James Graham
b99bf83929 Bug 1363428 - Copy the Ahem font into the bundled font directory, r=maja_zf
MozReview-Commit-ID: 3VgrawYWoWp
2017-06-21 11:25:58 +01:00
James Graham
7490670b16 Bug 1363428 - Add Ahem to wpt fonts directory, r=maja_zf
MozReview-Commit-ID: 8UWoXdDBNhp
2017-06-21 11:25:58 +01:00
James Graham
5f72670579 Bug 1363428 - Add per-test-queue metadata to wptrunner, r=maja_zf
This adds a metadata object associated with each test queue, and uses
it to pass cache information into the marionette internal reftest
implementation so that we are able to cache only those canvases that
will be reused.

MozReview-Commit-ID: zASrlvnri3
2017-06-21 11:25:58 +01:00
James Graham
3a8d561171 Bug 1363428 - Switch wptrunner to use a deque for test groups, r=maja_zf, jdm
Initially wptrunner had a single test queue that was shared between
all processes. Then for --run-by-dir it changed to a queue of
queues. This change makes it a queue of deques, which is simpler,
since the test queues themselves are no longer shared between
processes. It also changes the implementation when we aren't using
--run-by-dir but are using multiple processes to pre-group the tests
into N queues rather than sharing a single queue between all
processes. This is necessary to use the deque of course, but
importantly anticipates a change in which we will pre-compute per
queue metdata for each queue; that doesn't work well with one shared
queue. The downside of this change is that there is no work stealing,
so it may be less efficient if we randomly assign many slow jobs to
one particular process.

MozReview-Commit-ID: 7e0Odk7yDwr
2017-06-21 11:25:57 +01:00
James Graham
1cb6f7c311 Bug 1363428 - Support Marionette reftest implementation in wptrunner, r=maja_zf
Add an InternalReftestImplmentation that runs reftests using the
built-in Marionette reftest primitives rather than screenshots. This
is actiivated using the --internal-reftest switch, although that may
become the default in the future.

MozReview-Commit-ID: 6HxGuBsTITf
2017-06-21 11:25:57 +01:00
James Graham
a7e4a9aded Bug 1363428 - Add reftest-specific endpoints to Marionette, r=ato
This adds commands to start a reftest session, run a test, and end the
session. It as assumed that after you start a reftest session you will
just run reftests until you end the session. When starting a session
the user provides a string indicating when screenshots should be
taken, and an object mapping urls to a count of the number of times
that url is expected to be used in the session, to help with
caching. Running the tests takes a url to a test, an expected status,
a timeout, and a nested list of possible references, in which each
entry at a specific level is combined by OR and nested references are
combined by AND.

The implementation is heavilly inspired by the existing reftest
harness, starting a minimal window with no tabs, and loading the urls
directly in there. In order to get a screenshot in the e10s case we
have to pass the DRAW_VIEW and USE_WIDGET_LAYERS flags when taking the
screenshot.

For performance we heavily cache canvases; for references that will be
repeated we cache the full canvas with image, and we also cache a
single canvas to use for all other screenshots to avoid the overhead
of repeatedly creating a new canvas element.

MozReview-Commit-ID: JOFvtmH7tg
2017-06-21 11:25:57 +01:00