Commit Graph

17213 Commits

Author SHA1 Message Date
Geoff Brown
3115836c5c Bug 1375678 - Enable eslint on testing/modules - additional changes; r=standard8 2017-06-23 15:08:04 -06:00
Geoff Brown
03ec89d132 Bug 1375678 - Enable lint on testing/modules - mechanical changes; r=standard8 2017-06-23 15:08:02 -06:00
Wes Kocher
4fe21d372c Backed out 2 changesets (bug 1369670) for Mn failures in test_capabilities.py on Windows 8 a=backout
Backed out changeset 46db8ae423f2 (bug 1369670)
Backed out changeset e9b7d6dbc698 (bug 1369670)

MozReview-Commit-ID: GL05REhJM2k
2017-06-23 11:48:12 -07:00
Cameron McCormack
902f16605c Bug 1291515 - Part 2: Disable pref for <style scoped>. r=dbaron
MozReview-Commit-ID: 8rBHsSTK9SG

--HG--
extra : rebase_source : db36cfa8139ceb53811239b8ddd800f3d08d6698
2017-06-21 09:30:52 +08:00
Wes Kocher
913ce205d2 Backed out 2 changesets (bug 1291515) for reftest assertions in textarea-fieldset-legend-ref-2.html a=backout CLOSED TREE
Backed out changeset 4fac24cc0437 (bug 1291515)
Backed out changeset 4e8b918dc410 (bug 1291515)

MozReview-Commit-ID: F4yQK5ujqLP
2017-06-25 05:18:22 -07:00
Cameron McCormack
b7af0d0585 Bug 1291515 - Part 2: Disable pref for <style scoped>. r=dbaron
MozReview-Commit-ID: 8rBHsSTK9SG

--HG--
extra : rebase_source : dc514c56968336cd29b4d4207cf14169ee3fc7fa
2017-06-21 09:30:52 +08:00
James Graham
6a1857dae7 Bug 1363428 - Use reftest wait for MathML tests that do click onload, r=ato
MozReview-Commit-ID: CYI4y3B4yNm
2017-06-24 12:03:31 +01:00
James Graham
f6c9b1da3b 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-24 12:03:30 +01:00
James Graham
71f2f1daf6 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-24 12:03:28 +01:00
James Graham
105552d940 Bug 1363428 - Copy the Ahem font into the bundled font directory, r=maja_zf
MozReview-Commit-ID: 3VgrawYWoWp
2017-06-24 12:03:12 +01:00
James Graham
8ce434ae01 Bug 1363428 - Add Ahem to wpt fonts directory, r=maja_zf
MozReview-Commit-ID: 8UWoXdDBNhp
2017-06-24 12:03:12 +01:00
James Graham
147951623f Bug 1363428 - Add per-test-queue metadata to wptrunner, r=ato,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-24 12:03:11 +01:00
James Graham
e9ca85913c Bug 1363428 - Switch wptrunner to use a deque for test groups, r=ato,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-24 12:03:11 +01:00
James Graham
41cffd4ec6 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-24 12:03:11 +01:00
James Graham
5fd8e99e6a 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-24 12:03:11 +01:00
James Graham
90846c0258 Bug 1363428 - Make it possible to close tabless content windows, r=ato
MozReview-Commit-ID: 8xltsYCN3QA
2017-06-24 12:03:10 +01:00
James Graham
dc2eb76fe1 Bug 1363428 - Handle top level reftest window specially in Marionette, r=ato
Because this window is a normal Firefox window but doesn't contain any
tabs, the normal Marionette functions for iterating over windows don't
work well. As a sort of hack, identify this window by the id of its
root element, and special case it when finding windows in Marionette.

MozReview-Commit-ID: LxPv13YDXDu
2017-06-24 12:03:10 +01:00
James Graham
860166c010 Bug 1363428 - Refactor Marionette switchToWindow implementation, r=ato
This allows other commands to implicitly change the window handle, by
calling findWindow with appropriate arguments to get a window
properties object and then passing that to setWindowHandle.

MozReview-Commit-ID: 4NpYxjsMM4T
2017-06-24 12:03:10 +01:00
James Graham
2994bec9c1 Bug 1363428 - Use an iterator for iterating windows, r=ato
MozReview-Commit-ID: FKsw9EST2H7
2017-06-24 12:03:10 +01:00
James Graham
bbadf01cb5 Bug 1363428 - Skip element highlighting if there are no highlights, r=ato
MozReview-Commit-ID: 3rc4XnykV1S
2017-06-24 12:03:10 +01:00
James Graham
887aa1f450 Bug 1363428 - Allow passing flags when drawing to a canavs, r=ato
MozReview-Commit-ID: 8QAFiWcsKNE
2017-06-24 12:03:09 +01:00
James Graham
f4cf348d7b Bug 1363428 - Allow passing in an existing canvas to capture.canvas, r=ato
MozReview-Commit-ID: EGvEr7XfHH9
2017-06-24 12:03:09 +01:00
Emilio Cobos Álvarez
38ab611a70 Bug 1364880: Test non-existent pseudo-element styles. r=bz
MozReview-Commit-ID: 5DH6s2EyXii
2017-06-24 11:02:33 +02:00
Andreas Tolfsen
f931aa2ee1 Bug 1374977 - Log geckodriver version on startup; r=jgraham
MozReview-Commit-ID: 3DyRPpAXUPo

--HG--
extra : rebase_source : 7955c46e78be50b4e0c23565716f59b8f35df05e
2017-06-23 17:00:48 +01:00
Bob Owen
066ccbd3da Bug 1369670 Part 1: Don't rely on the case of the profile not changing in test_capabilities.py. r=whimboo
This uses os.path.normcase to fix the current issue on automation.
Ideally we would use os.path.samefile but that's not available in python 2.
os.path.realpath is implemented in python 2, but it doesn't resolve symlinks and junction points
and doesn't normalise case.
2017-06-23 16:29:15 +01:00
Joel Maher
fbbe88a9b4 Bug 1353599 - Intermittent test_about_private_browsing.py TestAboutPrivateBrowsing.testCheckAboutPrivateBrowsing. temporarily disable. r=gbrown
MozReview-Commit-ID: HLRHT7a0pEA
2017-06-23 10:29:47 -04:00
Mike Conley
cc4e2f979b Bug 1375956 - Disable browser UI for more Talos tests that should not care about changes in the browser UI. r=jmaher
MozReview-Commit-ID: 37XufCldBHB

--HG--
extra : rebase_source : 946aefaa5f821e25206b80df949593e2de722841
2017-06-23 14:00:52 -04:00
Wes Kocher
ea40157e54 Backed out 16 changesets (bug 1363428) for Wr failures a=backout CLOSED TREE
Backed out changeset e86d6d5c2a25 (bug 1363428)
Backed out changeset a0687a63e7b9 (bug 1363428)
Backed out changeset 858dc97498c7 (bug 1363428)
Backed out changeset 582a8dce7932 (bug 1363428)
Backed out changeset 26ae2fd48587 (bug 1363428)
Backed out changeset 7fa8e20fe001 (bug 1363428)
Backed out changeset 829c13a75667 (bug 1363428)
Backed out changeset a94d2c400b04 (bug 1363428)
Backed out changeset ec4a6b343b37 (bug 1363428)
Backed out changeset c27b94038e71 (bug 1363428)
Backed out changeset d1c03b96d270 (bug 1363428)
Backed out changeset 60c1c95b46ca (bug 1363428)
Backed out changeset b0604d88973f (bug 1363428)
Backed out changeset f0b218979773 (bug 1363428)
Backed out changeset 1d359561373c (bug 1363428)
Backed out changeset 956d6c0a646e (bug 1363428)

MozReview-Commit-ID: K8EBA8ACZLC
2017-06-23 14:13:27 -07:00
James Graham
93e62b517f Bug 1363428 - Use reftest wait for MathML tests that do click onload, r=ato
MozReview-Commit-ID: CYI4y3B4yNm

--HG--
extra : rebase_source : a9410a441aae32d2c201cd9fea16c10571e484b7
2017-06-02 21:24:02 +01:00
James Graham
5412dd2038 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

--HG--
extra : rebase_source : c7d33dc0c92624e05e9e62109606f1ca32bdd288
2017-06-16 18:05:50 +01:00
James Graham
cea57f78b4 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

--HG--
extra : rebase_source : f1810dd4b9f8dcc115528ceaac4894408d85f935
2017-06-16 17:38:15 +01:00
Rail Aliiev
c4a0fc9f76 Bug 1376502 - Check command exit code r=mtabara a=release DONTBUILD
MozReview-Commit-ID: LKcjqBaIsf7

--HG--
extra : rebase_source : 1421ea9f2b8f6468d57221f29013b39c0634d454
2017-06-27 15:58:02 -07:00
James Graham
047b39e813 Bug 1363428 - Copy the Ahem font into the bundled font directory, r=maja_zf
MozReview-Commit-ID: 3VgrawYWoWp

--HG--
extra : rebase_source : 7e544fe8d66806e32d100196fbb411b1bfaebdba
2017-06-01 15:20:11 +01:00
James Graham
92f65fb8bb Bug 1363428 - Add Ahem to wpt fonts directory, r=maja_zf
MozReview-Commit-ID: 8UWoXdDBNhp

--HG--
extra : rebase_source : 53266dc682e98ef967b8767102b1a8f8b61653de
2017-06-01 11:24:17 +01:00
Henrik Skupin
a4b02086a1 Bug 1223277 - Reorder global JS module imports in listener.js. r=ato
Reorder imports so that global ones are done before local imports.

MozReview-Commit-ID: 7xA9XQlxlj4

--HG--
extra : rebase_source : b144401c5c6c47e87beab669f76f2b61fb79e5b6
2017-05-24 21:44:04 +02:00
Rob Wood
747ea49209 Bug 1363104 - Fix perf-reftest to compare perf numbers of basic vs ref pages; r=jmaher
MozReview-Commit-ID: JMtaa9I0atY

--HG--
extra : rebase_source : c0bee15606940ab8fe0df544a8fc6b24c988803f
2017-06-29 18:18:45 -04:00
Henrik Skupin
3b32d01243 Bug 1223277 - Log outer window id of the content window when framescript is registered. r=ato
It will help a lot for debugging when the outer window id of the
content window gets logged when the frame script gets registered.

MozReview-Commit-ID: D64A1nPEs6l

--HG--
extra : rebase_source : 0e592e10cb1a0979f4331b92dbfcfc905e737120
2017-05-19 11:16:38 +02:00
Henrik Skupin
b654aaca43 Bug 1223277 - Refactor clicks.html and depending unit tests. r=ato
The testcase file clicks.html contains a couple of elements which are
not in use, and makes it hard to keep an overview what's actually used.
Lets refactor it to only keep what's really needed.

MozReview-Commit-ID: D9PVWUSmOHr

--HG--
extra : rebase_source : 0ecc3400c7e291f7923db1e93884b1d279a5e6e9
2017-05-19 11:11:41 +02:00
Gijs Kruitbosch
dd070a9e91 Bug 1352120 - move the bookmarks star into the url bar, r=mak
MozReview-Commit-ID: Ka5Wn2hrb1P

--HG--
extra : rebase_source : e22d25295066386c4becc1a430b78aaa9c40ae4f
2017-06-23 17:35:59 +01:00
Rail Aliiev
f9eae15e91 Bug 1376502 - publish to Balrog no longer works in automation for desktop beta r=mtabara a=release DONTBUILD
MozReview-Commit-ID: LBl93SUu12r

--HG--
extra : rebase_source : 8517aa80bf2c83f6ede65c4afe17cfce344e4179
2017-06-27 13:33:14 -07:00
James Graham
5f59647162 Bug 1376228 - Pass group_metadata through the running state, r=maja_zf
MozReview-Commit-ID: CZUxRLh7j6B

--HG--
extra : rebase_source : 9edcb42c2593a0c2d7bbaec63eaf3af0b09cafc7
2017-06-26 16:37:47 -07:00
Raajit Raj
ee4654fab7 Bug 1360498 - Added update snippet URL to failure in case of network issue r=whimboo
MozReview-Commit-ID: Hs9DR7z8aGS

--HG--
extra : rebase_source : a4e294ecdb0f3ac645a0bf1b31c8b510ee66332b
2017-06-27 23:59:19 +05:30
Andrew Swan
e9b0926a4a Bug 1369517 Make automation work with legacy extensions disabled r=rhelmer
- Set the extensions.legacy.enabled pref for mochitests etc
- Skip a plugin-inside-xpi test for now if legacy extensions
  are force-disabled.  That test can just be removed once we
  get to 57.

MozReview-Commit-ID: As9LtkQTcTS

--HG--
extra : rebase_source : fcc84daef95c453e893cc3b98498fdb87f54b1bb
2017-06-01 21:20:08 -07:00
J. Ryan Stinnett
c1ec6a75b3 Bug 1375952 - Support default values in SpecialPowers.get*Pref. r=jaws
In bug 1338306, support for optional default values was added to the various
get*Pref APIs on the prefs service.  This change exposes that to SpecialPowers
as well.

MozReview-Commit-ID: 6hU73CrQBZQ

--HG--
extra : rebase_source : 316ae4492a61d13ad4717160e97856960679123d
2017-06-23 14:01:19 -05:00
J. Ryan Stinnett
a061186586 Bug 1375952 - Clean up SpecialPowers pref syntax. r=jaws
MozReview-Commit-ID: 27I4eKdBqhB

--HG--
extra : rebase_source : 77f81eaaaea82de10a8ee4f2051d73363a3a9445
2017-06-23 11:52:45 -05:00
Sebastian Hengst
8ffdf0cbb8 Backed out changeset 6ae271d2dd9f (bug 1353895) for failing /webdriver/interface.html with Navigator interface: attribute webdriver. r=backout
--HG--
rename : testing/web-platform/meta/webdriver/tests/contexts.py.ini => testing/web-platform/meta/webdriver/contexts.py.ini
rename : testing/web-platform/meta/webdriver/tests/interface.html.ini => testing/web-platform/meta/webdriver/interface.html.ini
rename : testing/web-platform/meta/webdriver/tests/navigation.py.ini => testing/web-platform/meta/webdriver/navigation.py.ini
rename : testing/web-platform/tests/webdriver/tests/actions/__init__.py => testing/web-platform/tests/webdriver/actions/__init__.py
rename : testing/web-platform/tests/webdriver/tests/actions/conftest.py => testing/web-platform/tests/webdriver/actions/conftest.py
rename : testing/web-platform/tests/webdriver/tests/actions/key.py => testing/web-platform/tests/webdriver/actions/key.py
rename : testing/web-platform/tests/webdriver/tests/actions/mouse.py => testing/web-platform/tests/webdriver/actions/mouse.py
rename : testing/web-platform/tests/webdriver/tests/actions/sequence.py => testing/web-platform/tests/webdriver/actions/sequence.py
rename : testing/web-platform/tests/webdriver/tests/actions/special_keys.py => testing/web-platform/tests/webdriver/actions/special_keys.py
rename : testing/web-platform/tests/webdriver/tests/actions/support/__init__.py => testing/web-platform/tests/webdriver/actions/support/__init__.py
rename : testing/web-platform/tests/webdriver/tests/actions/support/keys.py => testing/web-platform/tests/webdriver/actions/support/keys.py
rename : testing/web-platform/tests/webdriver/tests/actions/support/refine.py => testing/web-platform/tests/webdriver/actions/support/refine.py
rename : testing/web-platform/tests/webdriver/tests/actions/support/test_actions_wdspec.html => testing/web-platform/tests/webdriver/actions/support/test_actions_wdspec.html
rename : testing/web-platform/tests/webdriver/tests/conftest.py => testing/web-platform/tests/webdriver/conftest.py
rename : testing/web-platform/tests/webdriver/tests/contexts.py => testing/web-platform/tests/webdriver/contexts.py
rename : testing/web-platform/tests/webdriver/tests/cookies.py => testing/web-platform/tests/webdriver/cookies.py
rename : testing/web-platform/tests/webdriver/tests/navigation.py => testing/web-platform/tests/webdriver/navigation.py
rename : testing/web-platform/tests/webdriver/tests/support/__init__.py => testing/web-platform/tests/webdriver/support/__init__.py
rename : testing/web-platform/tests/webdriver/tests/support/asserts.py => testing/web-platform/tests/webdriver/support/asserts.py
rename : testing/web-platform/tests/webdriver/tests/support/fixtures.py => testing/web-platform/tests/webdriver/support/fixtures.py
rename : testing/web-platform/tests/webdriver/tests/support/http_request.py => testing/web-platform/tests/webdriver/support/http_request.py
rename : testing/web-platform/tests/webdriver/tests/support/inline.py => testing/web-platform/tests/webdriver/support/inline.py
rename : testing/web-platform/tests/webdriver/tests/support/merge_dictionaries.py => testing/web-platform/tests/webdriver/support/merge_dictionaries.py
rename : testing/web-platform/tests/webdriver/tests/window_maximizing.py => testing/web-platform/tests/webdriver/window_maximizing.py
2017-07-01 16:27:04 +02:00
Sebastian Hengst
bc34e0bb39 Backed out changeset 342f897311bc (bug 1353895) 2017-07-01 16:24:49 +02:00
Maja Frydrychowicz
62bf7d3e0f Bug 1353895 - Add wait with timeout to test click with navigation; r=jgraham
MozReview-Commit-ID: 1sV2cfXitaB

--HG--
extra : rebase_source : 532d43dc0c57b3e3fa3caed24c64c49255ae1181
2017-06-22 17:04:48 -04:00
Maja Frydrychowicz
7b10e7daf9 Bug 1353895 - Move all wdspec tests into a package; r=jgraham
We need a top-level package for tests and support files so that
support modules are importable from subpackages. For example,
previously webdriver/support/inline.py could not be imported from
webdriver/actions/mouse.py.

I'm creating the package in a subdirectory under webdriver in
order to avoid a name-clash with webdriver, the WebDriver client
library. Part of the motivation for adding the subdirectory rather
than renaming the client library is that it's a relatively
isolated change.

MozReview-Commit-ID: BihAKcNLbXK

--HG--
rename : testing/web-platform/meta/webdriver/contexts.py.ini => testing/web-platform/meta/webdriver/tests/contexts.py.ini
rename : testing/web-platform/meta/webdriver/interface.html.ini => testing/web-platform/meta/webdriver/tests/interface.html.ini
rename : testing/web-platform/meta/webdriver/navigation.py.ini => testing/web-platform/meta/webdriver/tests/navigation.py.ini
rename : testing/web-platform/tests/webdriver/actions/__init__.py => testing/web-platform/tests/webdriver/tests/actions/__init__.py
rename : testing/web-platform/tests/webdriver/actions/conftest.py => testing/web-platform/tests/webdriver/tests/actions/conftest.py
rename : testing/web-platform/tests/webdriver/actions/key.py => testing/web-platform/tests/webdriver/tests/actions/key.py
rename : testing/web-platform/tests/webdriver/actions/mouse.py => testing/web-platform/tests/webdriver/tests/actions/mouse.py
rename : testing/web-platform/tests/webdriver/actions/sequence.py => testing/web-platform/tests/webdriver/tests/actions/sequence.py
rename : testing/web-platform/tests/webdriver/actions/special_keys.py => testing/web-platform/tests/webdriver/tests/actions/special_keys.py
rename : testing/web-platform/tests/webdriver/actions/support/__init__.py => testing/web-platform/tests/webdriver/tests/actions/support/__init__.py
rename : testing/web-platform/tests/webdriver/actions/support/keys.py => testing/web-platform/tests/webdriver/tests/actions/support/keys.py
rename : testing/web-platform/tests/webdriver/actions/support/refine.py => testing/web-platform/tests/webdriver/tests/actions/support/refine.py
rename : testing/web-platform/tests/webdriver/actions/support/test_actions_wdspec.html => testing/web-platform/tests/webdriver/tests/actions/support/test_actions_wdspec.html
rename : testing/web-platform/tests/webdriver/conftest.py => testing/web-platform/tests/webdriver/tests/conftest.py
rename : testing/web-platform/tests/webdriver/contexts.py => testing/web-platform/tests/webdriver/tests/contexts.py
rename : testing/web-platform/tests/webdriver/cookies.py => testing/web-platform/tests/webdriver/tests/cookies.py
rename : testing/web-platform/tests/webdriver/navigation.py => testing/web-platform/tests/webdriver/tests/navigation.py
rename : testing/web-platform/tests/webdriver/support/__init__.py => testing/web-platform/tests/webdriver/tests/support/__init__.py
rename : testing/web-platform/tests/webdriver/support/asserts.py => testing/web-platform/tests/webdriver/tests/support/asserts.py
rename : testing/web-platform/tests/webdriver/support/fixtures.py => testing/web-platform/tests/webdriver/tests/support/fixtures.py
rename : testing/web-platform/tests/webdriver/support/http_request.py => testing/web-platform/tests/webdriver/tests/support/http_request.py
rename : testing/web-platform/tests/webdriver/support/inline.py => testing/web-platform/tests/webdriver/tests/support/inline.py
rename : testing/web-platform/tests/webdriver/support/merge_dictionaries.py => testing/web-platform/tests/webdriver/tests/support/merge_dictionaries.py
rename : testing/web-platform/tests/webdriver/window_maximizing.py => testing/web-platform/tests/webdriver/tests/window_maximizing.py
extra : rebase_source : 6450e49b4923eeec7749b5d6b8f2e1ed851b19b9
2017-06-22 16:45:57 -04:00
Alex Gaynor
b08206238c Bug 1374557 - Part 2 - Use the new preference to whitelist paths for reading that are needed by tests; r=gcp,haik,jmaher
MozReview-Commit-ID: 4IaTrHPHZaC

--HG--
extra : rebase_source : 28824735f74b369d5755b3bced0f61d22c7c8845
2017-06-21 10:24:16 -04:00
Evelyn Hung
c4f9bd4426 Bug 1348275 - speculative connect to an autocomplete url. r=mak
When we get the usre's frequent visting site from UnifiedComplete.js,
and then open a network connection for it before the user hits
the enter key.

MozReview-Commit-ID: 36moBeeUnyZ

--HG--
extra : rebase_source : 4122534b2d21d2a959fd8dbb8533dd3e0ef75621
2017-06-26 00:24:42 +08:00
Henrik Skupin
3f262882e9 Bug 1374762 - Allow Marionette to handle the safe mode dialog. r=ato
In safe mode the command line hander arguments are getting parsed
after the safe mode dialog has been closed. As such Marionette is
not getting enabled before, and cannot close the dialog.

To workaround the problem the "command-line-startup" observer
notification can be used, which allows to parse the given
arguments before the dialog.

MozReview-Commit-ID: LWzUKCnM0YK

--HG--
extra : rebase_source : d0113a202c64c1766955d6effd1cdf1af96773c0
2017-06-29 22:12:03 -07:00
Sebastian Hengst
5543531191 Backed out changeset 32f1daf0a256 (bug 1372263) for crashing in mochitests dom/ipc/tests/test_CrashService_crash.html and dom/ipc/tests/test_process_error.xul with js::ctypes::ConvertToJS. r=backout on a CLOSED TREE 2017-07-01 00:37:33 +02:00
Sebastian Hengst
c709e5f990 Backed out changeset 6b8840096867 (bug 1372263) 2017-07-01 00:33:10 +02:00
Sebastian Hengst
b0f5713347 Backed out changeset 7dcc7dac37d1 (bug 1372263) 2017-07-01 00:33:05 +02:00
Wes Kocher
0f253d0e4c Backed out changeset 05a807bd0010 (bug 1374762) for eslint failures a=backout 2017-06-30 14:49:27 -07:00
Wes Kocher
c95458a7f5 Backed out changeset 485d1af7805a (bug 1338651) for valgrind issues a=backout 2017-06-30 14:44:28 -07:00
rforbes
cac049009f Bug 1377562 - Turn off LeakSanitizer for ASan fuzzing build. r=decoder
MozReview-Commit-ID: L97sua9dYX4

--HG--
extra : rebase_source : 06ff6e9b589871ad5e97c9e855f77556d1c0d0ab
2017-06-30 13:10:32 -07:00
Wes Kocher
5d1b9df079 Backed out changeset 67ea907faf0d (bug 1355934) for eslint failures a=backout 2017-06-30 14:33:48 -07:00
Henrik Skupin
16a0e92f1c Bug 1374762 - Allow Marionette to handle the safe mode dialog. r=ato
In safe mode the command line hander arguments are getting parsed
after the safe mode dialog has been closed. As such Marionette is
not getting enabled before, and cannot close the dialog.

To workaround the problem the "command-line-startup" observer
notification can be used, which allows to parse the given
arguments before the dialog.

MozReview-Commit-ID: LWzUKCnM0YK

--HG--
extra : rebase_source : 5dd538eabbfb76a0d19440eb9fa5ac431bd86f0b
2017-06-29 22:12:03 -07:00
Andrew Halberstadt
e31175ba5d Bug 1372263 - Add additional mochitest selftests for crashes, assertions and leaks, r=jmaher
This also starts running the selftests on linux debug builds, since that's the only place that we
can test assertions and leaks.

MozReview-Commit-ID: JTdTLOLWn5r

--HG--
extra : rebase_source : 643f8d15a550fa39f4d3daba75c60560deefc96e
2017-06-22 16:37:11 -04:00
Andrew Halberstadt
51f70044ef Bug 1372263 - Add ability to skip mochitest selftests based on mozinfo properties, r=jmaher
MozReview-Commit-ID: JTdTLOLWn5r

--HG--
extra : rebase_source : 88da98f77a04891a470d831e837bbeb8a8262a32
2017-06-22 16:36:15 -04:00
Andrew Halberstadt
d37e12c516 Bug 1372263 - Set MOZ_CRASHREPORTER_SHUTDOWN in mozrunner based unittests, r=ted
MozReview-Commit-ID: JTdTLOLWn5r

--HG--
extra : rebase_source : ca5630c1e3f4c79c1b791e80049652e14b722ec2
2017-06-22 16:35:04 -04:00
Ionut Goldan
d8a360b573 Bug 1355934 - transform tpaint into a Pageloader test r=jmaher
MozReview-Commit-ID: J3iZDRp14Br

--HG--
extra : rebase_source : 0ad4fc0428551505a391743bf42f208fee91a360
2017-06-28 11:40:38 -07:00
Wander Lairson Costa
364359914f Bug 1338651: Change docker image home dir to /build. r=dustin,mshal
Using /home/worker is the build directory has a 30% talos performance
loss, because test machines has a /home mount directory.

MozReview-Commit-ID: zehcGJrUQX

--HG--
extra : source : feedcde68c2a54da210f03eb287ab5c862fc982b
extra : amend_source : 96a6ad12e8fbb5dd2f7ff97f5ef183b8400475cf
2017-06-29 15:45:01 -07:00
William Lachance
7c0126fe56 Bug 1377398 - Remove the bespoke PLATFORM_TYPE utility variable r=jmaher
Really the only thing we use it for is generating a counter string
prefix elsewhere in Talos, so let's just create a private function
to do that close to where it's used.

MozReview-Commit-ID: BICrhDAIEHb

--HG--
extra : rebase_source : f3faa1720e69c179b597ca58ee17424182e0cda0
2017-06-29 22:44:22 -07:00
William Lachance
fb8d768e7c Bug 1377398 - Explicitly unsupport WinXP and remove hacks r=jmaher
MozReview-Commit-ID: DkCHu73iX15

--HG--
extra : rebase_source : 83ab617065a8953322a24734ea73b72c813a1cd2
2017-06-30 09:55:59 -07:00
William Lachance
a63bd8d062 Bug 1377398 - Remove unused utility code from talos r=jmaher
MozReview-Commit-ID: KevrlNtHLP4

--HG--
extra : rebase_source : 01284d9e897eae4fb08302c1d2da43dc8a020d59
2017-06-29 23:48:23 -07:00
Nicholas Hurley
df3233b549 Bug 1368080 - Only remove pushed streams from cache when canceling the stream if the ids match. r=mcmanus
MozReview-Commit-ID: 5y0Aj6Bgk9u

--HG--
extra : rebase_source : 015352a4b0a87734afce856fcd7b424e96c6ede8
2017-06-28 10:29:34 -07:00
Maja Frydrychowicz
76de5e3a4c Bug 1376974 - Get all wpt test types working with --try-test-paths try syntax; r=jgraham
`try-test-paths` is set up to map anything under testing/web-platform
to the web-platform-tests flavour. By default, the web-platform-tests flavour
refers to the testharness test type for wptrunner, so we need to account for
reftest and wdspec test types.

This change causes mozharness to omit the test-type argument to wptrunner when
try-test-paths is being used, therefore making wptrunner determine the
appropriate test type for each requested test.

MozReview-Commit-ID: 7TDAShdDM4g

--HG--
extra : rebase_source : fde6ec219f574cd1e536764c0128a6816834f533
2017-06-28 11:13:39 -04:00
James Graham
50eabaa44d Bug 1377886 - Improve handling of reftests in mach wpt-create, r=automatedtester
Create an emmpty reference file if one doesn't exist, and open it in
the editor.

MozReview-Commit-ID: 5aBLp2AdnzY

--HG--
extra : rebase_source : bae3df50689895e6ac02cc740acea57be5c24b2e
2017-07-03 15:39:20 +01:00
James Graham
04a7d622fd Bug 1377886 - Don't start Firefox with mach wpt-create, r=automatedtester
This confuses people and isn't needed to update the manifest these days.

MozReview-Commit-ID: 4t4zdXLMob5

--HG--
extra : rebase_source : 9c43570073b15d11b3a52c830f9f3fd1f9f063c7
2017-07-03 15:38:10 +01:00
Phil Ringnalda
1d977147a3 Backed out 3 changesets (bug 1372595) for build bustage everywhere except Linux32 and OS X
CLOSED TREE

Backed out changeset 6d9081d16588 (bug 1372595)
Backed out changeset 65c71d2ef601 (bug 1372595)
Backed out changeset 5cbd77708cd9 (bug 1372595)

MozReview-Commit-ID: KXCLB1Rt0KN
2017-06-22 19:23:30 -07:00
Bryce Van Dyk
6b2d7e6552 Bug 1372051 - Remove external media tests from /testing, /build, /python. r=maja_zf
MozReview-Commit-ID: 7X2kYf7HLZY

--HG--
extra : rebase_source : 09421cf96c4d214795362e0f53c51310bff0abba
2017-06-12 10:27:42 +12:00
Andreas Tolfsen
5a99ed9a0e Bug 1372595 - Return single cookie for GetNamedCookie; r=jgraham
The GetNamedCookie command currently returns a JSON Array of one,
retained cookie, after it has removed the cookies that don't match by
name.

This is in violation of the WebDriver specification, which says it must
return the cookie serialisation directly.

MozReview-Commit-ID: 9yEiarEGBez

--HG--
extra : rebase_source : ad4acfb9510354a86a0b604cacf32cfd5c4f8e5d
2017-06-16 16:46:34 +01:00
Andreas Tolfsen
a1145f3db2 Bug 1372595 - Return cookie expiry timestamp; r=whimboo
The expires property on nsICookie2 does not exist and we are
consequently returning it as undefined, which gets omitted in the JSON
serialisation to the client.

This patch changes it to return the correct property so that the expiry
property is returned as part of the serialised cookie.

MozReview-Commit-ID: IIjf4NWnUoQ

--HG--
extra : rebase_source : 5e2dc27fb550a010dcbe40eee49d9ae31244d749
2017-06-16 16:41:59 +01:00
Andreas Tolfsen
2693c4cbc6 Bug 1372595 - Let resource URL protocol be configurable; r=jgraham
The url fixture is used to access hosted files on the wptserve instance.
This patch makes it possible to choose between different wptserve HTTPDs
based on the protocol.

The default remains the HTTP protocol.

MozReview-Commit-ID: FvtMMUSlB4M

--HG--
extra : rebase_source : 42a25ebc1a0ca6a3d664ba4949711dd11a6f4007
2017-06-13 16:37:38 +01:00
Wes Kocher
b17932664d Merge m-c to autoland, a=merge
MozReview-Commit-ID: 1dQBCh5pBY6
2017-06-22 14:21:39 -07:00
Wes Kocher
3947450ee6 Merge autoland to central, a=merge
MozReview-Commit-ID: DBM5ExEXtYD
2017-06-22 14:10:19 -07:00
Marco Bonardo
a60ccaff04 Bug 1263378 - Intermittent leaks from browser_bug461710.js. r=standard8
MozReview-Commit-ID: FQQkGaiE0xZ

--HG--
extra : rebase_source : 5cdb8a0de4cdc5afd923ab596f9c01ebf344bc9f
2017-06-21 13:30:13 +02:00
Joel Maher
afb22b6e36 Bug 1372037 - Windows 10 permafailure /2dcontext/building-paths/canvas_complexshapes_beziercurveto_001.htm. disable for win10. r=gbrown 2017-06-22 10:52:42 -04:00
Joel Maher
1ebf703f3d Bug 1373780 - /mixed-content/imageset.https.sub.html. temporarily disable. r=gbrown
MozReview-Commit-ID: JPnBEYFQiQf
2017-06-22 10:17:42 -04:00
Andrew Swan
527d6f830c Bug 1373772 Use webextensions in marionette unit tests r=whimboo
These tests currently use legacy extensions that won't work in 57,
switch them to webextensions.

MozReview-Commit-ID: 8lZrqjYSrar

--HG--
extra : rebase_source : bf8f6db2daedcddb8c554325498da7cec5159118
extra : source : 75fe2d21cdff9767c9a96682375d261475c284d1
2017-06-13 20:54:17 -07:00
Ho-Pang Hsu
d76ced1949 Bug 1290951 - P4.1: Add a new wpt test for extended bytecheck. r=bkelly 2017-06-07 14:06:52 +08:00
Erica Wright
8f442c723b Bug 1219725 - Add a button for session restore to the tab bar. r=dao,Gijs,mikedeboer,whimboo ui-r=shorlander
MozReview-Commit-ID: 6zrEbIxXp8c

--HG--
extra : rebase_source : 20ba3acdb18e98940e90f099f18c02934dee0e8b
2017-06-20 11:33:55 -07:00
Andreas Tolfsen
4a968ad679 Bug 1375207 - Display hash from whence geckodriver came in --version; r=jgraham
Because we no longer can tag geckodriver releases in mozilla-central,
we need to include build information in the program itself.  In the
version information message displayed when passing the --version flag,
we now include the current tip's SHA1 and build date following the
version number.

This patch could be made simpler by dumping this information correctly
formatted into a text file in the output directory, but it was requested
in https://bugzilla.mozilla.org/show_bug.cgi?id=1374977 to also include
the version information in the log output, which means we need to access
it differently and in different places.

MozReview-Commit-ID: CbFQn7IV8ew

--HG--
extra : rebase_source : dcc38ba7b5f209e9878755d5d75b611e22b5253d
2017-06-22 16:28:18 +01:00
Andreas Tolfsen
d27785f266 Bug 1375207 - Quench unused import warning for CookieResponse; r=jgraham
MozReview-Commit-ID: KMOlSXXyvuB

--HG--
extra : rebase_source : 23e312eb8f973263d8e6c996ca65ddab6cce2c66
2017-06-22 16:21:51 +01: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
James Graham
8746d960ea Bug 1363428 - Make it possible to close tabless content windows, r=ato
MozReview-Commit-ID: 8xltsYCN3QA
2017-06-21 11:25:56 +01:00
James Graham
f8dfe0f78a Bug 1363428 - Handle top level reftest window specially in Marionette, r=ato
Because this window is a normal Firefox window but doesn't contain any
tabs, the normal Marionette functions for iterating over windows don't
work well. As a sort of hack, identify this window by the id of its
root element, and special case it when finding windows in Marionette.

MozReview-Commit-ID: LxPv13YDXDu
2017-06-21 11:25:56 +01:00
James Graham
53829cedb9 Bug 1363428 - Refactor Marionette switchToWindow implementation, r=ato
This allows other commands to implicitly change the window handle, by
calling findWindow with appropriate arguments to get a window
properties object and then passing that to setWindowHandle.

MozReview-Commit-ID: 4NpYxjsMM4T
2017-06-21 11:25:56 +01:00
James Graham
f567c04584 Bug 1363428 - Use an iterator for iterating windows, r=ato
MozReview-Commit-ID: FKsw9EST2H7
2017-06-21 11:25:56 +01:00
James Graham
e1fda68800 Bug 1363428 - Skip element highlighting if there are no highlights, r=ato
MozReview-Commit-ID: 3rc4XnykV1S
2017-06-21 11:25:56 +01:00
James Graham
af0c956684 Bug 1363428 - Allow passing flags when drawing to a canavs, r=ato
MozReview-Commit-ID: 8QAFiWcsKNE
2017-06-21 11:25:55 +01:00
James Graham
09adef1916 Bug 1363428 - Allow passing in an existing canvas to capture.canvas, r=ato
MozReview-Commit-ID: EGvEr7XfHH9
2017-06-21 11:25:55 +01:00
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
James Graham
1c809e6f6a Bug 1363428 - Add per-test-queue metadata to wptrunner, r=ato,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

--HG--
extra : rebase_source : feb714ec04c44f6b6d2709ae1acbb621f8b0771d
2017-05-10 14:56:20 +01:00
James Graham
78b7c6d475 Bug 1363428 - Switch wptrunner to use a deque for test groups, r=ato,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

--HG--
extra : rebase_source : 8dbe7321a41d79f9bca1efa90494b514d16f07db
2017-05-28 21:14:28 +01:00
James Graham
685665d899 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

--HG--
extra : rebase_source : 7b5416cfc1a26c54432346de3822a2685b41f9c9
2017-05-10 11:41:33 +01:00
James Graham
c9e960f859 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

--HG--
extra : rebase_source : ab5a2ef2e450b9bbdc6bc3c9487ed5dfda2c1d4b
2017-05-10 10:51:10 +01:00
James Graham
2859180072 Bug 1363428 - Make it possible to close tabless content windows, r=ato
MozReview-Commit-ID: 8xltsYCN3QA

--HG--
extra : rebase_source : d872ea84c98203485815b5082088ce148e2b4411
2017-06-09 18:28:10 +01:00
James Graham
c5fde398ab Bug 1363428 - Handle top level reftest window specially in Marionette, r=ato
Because this window is a normal Firefox window but doesn't contain any
tabs, the normal Marionette functions for iterating over windows don't
work well. As a sort of hack, identify this window by the id of its
root element, and special case it when finding windows in Marionette.

MozReview-Commit-ID: LxPv13YDXDu

--HG--
extra : rebase_source : 8c0aa7a4aeff69e1d7c86ba7cbb6c421abd0c31d
2017-05-09 19:05:49 +01:00