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

17401 Коммитов

Автор SHA1 Сообщение Дата
Wes Kocher fe8f466015 Merge m-c to autoland a=merge
MozReview-Commit-ID: 3aVeSLStD5W
2017-07-03 17:42:41 -07:00
Carsten "Tomcat" Book 2aefedb342 Merge mozilla-central to mozilla-inbound 2017-07-03 11:01:38 +02:00
Christoph Kerschbaumer f5cc030d01 Bug 1377565 - Rewrite html/browsers/the-window-object/window-named-properties.html to conform with data: URI inheritance model. r=annevk 2017-06-30 14:13:01 -07:00
Phil Ringnalda 915412e692 Merge m-i to m-c, a=merge
MozReview-Commit-ID: HINQtggBLDr
2017-07-01 17:36:09 -07:00
Emilio Cobos Álvarez 685504c886 Bug 1372041: Further update test expectations. r=heycam
These were reviewed on the bug, but I accidentally filtered them out when
splitting patches.

MozReview-Commit-ID: 2Db8cUneO3M
2017-07-02 19:22:36 +02:00
Frederik Braun 56838ddb04 Bug 1351608 - Disable warnings for existing violations to no-unsanitize rule r=Standard8.
MozReview-Commit-ID: 7cTNL5jMtRw
2017-07-03 20:07:02 +01:00
Bob Clary da4cc82a3f Bug 1364095 - add AWSY to OSX for release/trunk/try, r=erahm,jmaher. 2017-07-03 11:27:14 -07:00
Maja Frydrychowicz 3b8342dbea Bug 1353895 - Add wait with timeout to test click with navigation; r=jgraham
MozReview-Commit-ID: 1sV2cfXitaB

--HG--
extra : rebase_source : f74c9eacc3f5862c35da80a76bde01f3dbead8ee
2017-06-22 17:04:48 -04:00
Christoph Kerschbaumer 9a421201d1 Bug 1377467 - Set pref data_uri.unique_opaque_origin for web platform tests. r=jgraham 2017-06-30 10:13:08 -07:00
Shawn Huang 4cab29da52 Bug 1345457 - Part 2: Assert upload.abort and upload.loadend events before abort, r=annevk
Per https://xhr.spec.whatwg.org/#request-error-steps xhr.upload.onabort fires before xhr.onabort
2017-06-30 10:48:36 -07:00
Beekill95 2c51be9561 Bug 1331937 - Extend session restore Talos test with many windows. r=mikedeboer,jmaher
MozReview-Commit-ID: LjaSszpTLOe
2017-06-28 09:42:34 +07:00
Carsten "Tomcat" Book daa67cc9e3 merge mozilla-inbound to mozilla-central a=merge 2017-06-30 12:59:45 +02:00
Carsten "Tomcat" Book f6130d3fe8 Backed out changeset feedcde68c2a (bug 1338651) for bustage 2017-06-30 09:41:23 +02:00
Sebastian Hengst badadd5e0a Backed out changeset 15cc8dd66362 (bug 1331937) for eslint failure at testing/talos/talos/startup_test/sessionrestore/profile-manywindows/sessionstore.js:2: Unexpected token ':'. r=backout 2017-06-29 23:53:17 +02:00
Maja Frydrychowicz 07f670d5b8 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/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 : cb2aed22a39fc5b720c70e4b9864ebe20ee8ce40
2017-06-22 16:45:57 -04:00
Henrik Skupin 3aa7fa87be Bug 1368439 - Retrieve content browser title via parent process. r=automatedtester
To retrieve the title of the currently selected content browser
it is not necessary to call into the frame script. Instead just
take the value from the parent process directly.

MozReview-Commit-ID: KEpYKLIydrJ

--HG--
extra : rebase_source : 8b179de7057f8655a81656bd4d95b1562edb9f54
2017-07-02 04:31:18 -07:00
Henrik Skupin 2af21d96fe Bug 1368439 - Remove unused GetAppCacheStatus command. r=automatedtester
MozReview-Commit-ID: ARETprd7n8t

--HG--
extra : rebase_source : cacb5051de689f73156f4460bcd47de0f09f2df1
2017-07-02 13:55:12 +02:00
Henrik Skupin f059a7e6ea Bug 1360687 - Synchronize webextension from Puppeteer with Marionette harness. r=davehunt
The current webextension in Marionette harness tests doesn't have an
addon id and as such will not be able to be installed outside of
about:debugging. This patch synchronizes the updated webextension
from Puppeteer with Marionette harness.

MozReview-Commit-ID: AjdDQpySnBl

--HG--
extra : rebase_source : c9a498aee2f9ade6dee31971a3b4889d63b19ec6
2017-06-28 13:54:13 -07:00
Henrik Skupin ec26b7c6ea Bug 1360687 - Update puppeteer notification class for webextensions. r=davehunt
To support webextensions in Puppeteer the current restartless
extension gets replaced by a webextension. It allow us to test
at least the permission notification. This patch only adds basic
support.

MozReview-Commit-ID: FKq76qcOxKu

--HG--
extra : rebase_source : 1dc81e80c43d3ec61f3ff405fa7807a08ab1d45e
2017-06-29 15:46:45 -07:00
Henri Sivonen a0fe0048af Bug 562590 - Make incomplete byte sequences near HTML EOF emit a REPLACEMENT CHARACTER. r=emk
MozReview-Commit-ID: 6NF4rMWxyVu

--HG--
extra : rebase_source : 0d4f557cd14f256f9100b16c27a00df381bfbdb1
2017-06-22 14:32:34 +03:00
Greg Mierzwinski 47a40f4e91 Bug 1374663 - Update used GRCOV version and change its usage. r=marco
This patch upgrades the GRCOV version being used and changes how it is used in 'codecoverage.py'.

MozReview-Commit-ID: 6fjUB6sV3gy

--HG--
extra : histedit_source : 419133ee55f9a37725845994e0ff16a9c59b2bad
2017-06-29 13:31:56 -04:00
Christoph Kerschbaumer 8288ca1b7e Bug 1377245 - Convert old-tests/submission/Opera/script_scheduling/099.html to not use data: URI. r=smaug 2017-06-29 13:49:14 -07:00
Beekill95 80cf974a9f Bug 1331937 - Extend session restore Talos test with many windows. r=mikedeboer, r=jmaher
MozReview-Commit-ID: LjaSszpTLOe
2017-06-28 09:42:34 +07:00
Wander Lairson Costa ad280021a7 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 : rebase_source : e9ce75ecf18e7d4c829e369f5fbd1df8d6449edf
2017-06-29 15:45:01 -07:00
Carsten "Tomcat" Book 1367c473cd Merge mozilla-central to mozilla-inbound 2017-06-29 15:49:39 +02:00
Carsten "Tomcat" Book 5f00ae3a8b merge mozilla-inbound to mozilla-central a=merge 2017-06-29 15:47:04 +02:00
Bob Owen 9e3ea29587 Bug 1369670 Part 1: Resolve to the real path names when comparing the profile paths in test_capabilities.py. r=whimboo
Unlike python 3, python 2 doesn't have a proper implementation of realpath or
samefile for Windows. However there is a function convert_path in FixTk.py that
was added to python 2 to fix an issue with tcl installations and symlinks, so
we use that as this is just for testing.
2017-06-23 16:29:15 +01:00
James Graham 6035ebf6c6 Bug 1376977 - Update mozlog version number for release, r=whimboo
MozReview-Commit-ID: 6NPCSOXnSAI
2017-06-28 20:06:18 -07:00
Sebastian Hengst ef391e8a9f merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-06-29 03:22:24 +02:00
Paolo Amadini 06de7cf6bf Bug 1374242 - Remove obsolete whitelisting of unhandled rejections. r=Mossop
The whitelisting function thisTestLeaksUncaughtRejectionsAndShouldBeFixed was replaced by expectUncaughtRejection, and existing calls did not take effect anymore.

MozReview-Commit-ID: 3uOxkgWYWEz

--HG--
extra : rebase_source : 6b27b77da78743880529adae7adf4ec2aa64dfea
extra : intermediate-source : 5809a30a0c4817509beb1078cf336d8367b8107a
extra : source : 6f0394b523a66dab444b8551deb8f3c6c81d8f31
2017-06-29 00:13:06 +01:00
Paolo Amadini be3f9ed657 Bug 1374241 - Add self-tests for unhandled rejection handling in browser-chrome tests. r=Mossop
MozReview-Commit-ID: 9gloXfhfZ3x

--HG--
rename : testing/mochitest/tests/browser/browser_fail_add_task.js => testing/mochitest/tests/browser/browser_fail_add_task_uncaught_rejection.js
extra : rebase_source : e4ce3389715d144711f23d10e2779ccd7fece134
extra : intermediate-source : 971751d97bb4c13a565f35db82cd411d68fa36e7
extra : source : c9c01c06908add6e1631121bed3d0cfaa8feeefa
2017-06-29 00:12:58 +01:00
Sebastian Hengst 5b82b79d9c Backed out changeset 1cd9e27f0fa1 (bug 1351608) 2017-06-29 01:01:15 +02:00
Justin Wood 0142e0f146 Bug 1376550 - Make OSX complete.mar's generated via ./mach repackage mozharness configs r=aki
Support OSX Signed nightlies (in the complete.mar too)

MozReview-Commit-ID: 6iPrPhjj34g

--HG--
extra : rebase_source : 55a6bcf1910f1cae084cf32f6cf47ecf44b500aa
2017-06-27 14:26:16 -07:00
Carsten "Tomcat" Book 7918eeee02 merge mozilla-inbound to mozilla-central a=merge 2017-06-28 13:23:29 +02:00
Ryan VanderMeulen 2edcd80e00 Merge m-c to autoland. a=merge 2017-06-27 20:07:08 -04:00
Ryan VanderMeulen 309d4a291b Backed out 3 changesets (bug 1364896) for causing bug 1376466.
Backed out changeset 5c870a786e94 (bug 1364896)
Backed out changeset 134d9ee1e545 (bug 1364896)
Backed out changeset 8f52f28a9eaa (bug 1364896)
2017-06-27 14:32:07 -04:00
Carsten "Tomcat" Book 4e00eff077 merge mozilla-inbound to mozilla-central a=merge 2017-06-27 10:56:41 +02:00
Andrew Halberstadt 95c0561603 Bug 1372567 - Fix problems with mochitest structured logging, r=jgraham
The mochitest harness uses testEnd multiple times to log various failures. This can result
in several testEnd messages, which will soon cause mozlog to spit out an error. Instead,
these should be testStatus.

This also starts using mozlog's assertion_count log action to log test assertions (again,
instead of testEnd).

MozReview-Commit-ID: FFsyicSso5Y

--HG--
extra : rebase_source : 5e8d02714fcf24f2b86a9867b0403bbda0d00f91
2017-06-21 08:40:19 -04:00
Sebastian Hengst d787a096f5 merge mozilla-central to autoland. r=merge a=merge 2017-06-29 03:21:05 +02:00
Ryan VanderMeulen a8806a9105 Merge m-c to inbound. a=merge 2017-06-27 20:06:39 -04:00
Geoff Brown 14713f207c Bug 1365636 - Wait for geckoview crash directory to be created; r=jmaher 2017-06-28 16:58:24 -06:00
Geoff Brown 39b260e512 Bug 1365636 - Cause geckoview job to fail when no crash directory found; r=jmaher
"Automation Error" is not sufficient to turn a mozharness job orange.
mochitest-plain failures of this type normally cause job failure by not
printing out the test suite summary. This patch uses the same technique
for geckoview tests: If a crash is detected, do not print a test summary,
so that mozharness will subsequently fail the job.
2017-06-28 16:58:22 -06:00
Tom Prince ff4fac84e1 Bug 1371734 - Fix tooltool cache on thunderbird's buildbot. r=jlund
--HG--
extra : amend_source : 96cff8c535bb92c53be79a2fdef12aaaaf3f6610
2017-06-09 10:06:00 -04:00
David Burns ba70f4f34a Bug 1370223: Add Window Maximize wdspec tests r=ato
This adds tests for section 10.7.3 of the WebDriver
specification as detailed in
https://w3c.github.io/webdriver/webdriver-spec.html#resizing-and-positioning-windows

MozReview-Commit-ID: 96Ls86ONve0

--HG--
extra : rebase_source : d03e13e7d6a8527fb215cf7d0540088583e72263
2017-06-16 09:39:05 +01:00
Henrik Skupin 200da78a40 Bug 1223277 - Return immediately when click command closes tab or window. r=ato
In some cases the click command can trigger the closing of the
currently selected tab or window. To not cause a hang when waiting
for a response from the removed framescript, the tab and window
closing events have to be observed. Also the command has to return
immediately.

MozReview-Commit-ID: 9WeXryrKEJr

--HG--
extra : rebase_source : a7a23cf19e55eecbf957d48c2182a601d63d0909
2017-06-26 16:55:02 -07:00
Henrik Skupin d96b3fb2bc Bug 1223277 - TcpTransport.close() should't care about errno 107. r=ato
Beside Errno 57 there is also Errno 107 (Transport endpoint is not
connected) which can happen in case of an unexpected crash/shutdown
of Firefox. Then calling shutdown() on the socket to stop the
communication will fail.

This is most likely a race and can happen after receiving a reply
from the server, and before sending another command.

MozReview-Commit-ID: 3S5Ko4XVUAJ

--HG--
extra : rebase_source : 59d79ab5da2c4e67b64bc90501660a7603a993c8
2017-06-22 21:10:44 +02:00
Henrik Skupin 4840d12a94 Bug 1223277 - Disable Marionette unit tests for ASAN builds. r=ato
Tests are causing issues for us due to slow running builds and
delayed creation of minidump files. Also we don't see a value
yet to have those tests running for ASAN. Once bug 1348961 is
fixed we could re-evaluate.

MozReview-Commit-ID: BZHa1O5F6ep

--HG--
extra : rebase_source : 28e1977607eb803c4167315cf32f56e5b2e0ba31
2017-06-27 11:05:48 -07:00
Henrik Skupin 505f86c3ab Bug 1223277 - Improve Marionette unit tests for delayed crashes. r=ato
In case of delayed shutdowns of Firefox we currently miss to detect the
created minidump files because the mozcrash mock gets removed right after
the crash causing command has been executed. To prevent this the mock
has to be active from setUp until tearDown.

Also we should not silently ignore the case that the minidump folder
cannot be deleted. Because it means no crash happened, or the folder
has not been created.

MozReview-Commit-ID: KncJ5BHi7M5

--HG--
extra : rebase_source : 63c947b0a7fe16de0eed19a8e0359721d9f4051d
2017-06-22 11:45:10 +02:00
Johann Hofmann acba8482a8 Bug 1364896 - Part 3 - Add a test for contextmenu touchmode. r=dao,jmaher
This also adds a utility function for synthesizing native touch
events to Eventutils.js.

I did not add a test for searchbar because of intermittent issues
with showing the contextmenu (that are not reproducible manually).
I believe this is rather related to searchbar functionality than
my patches.

MozReview-Commit-ID: Dqm92Saosxz

--HG--
extra : rebase_source : d5c4333609b68773e62447bd3158cadfa89b803b
2017-06-23 11:48:35 +02:00
Rob Wood 952a93452f Bug 1375073 - Modify talos startup test framework to support receiving multiple values from a single iteration; r=jmaher
MozReview-Commit-ID: EUGt71dB6f6

--HG--
extra : rebase_source : 81e1139a7556f17dc5e26f649305a1ede9a976bf
2017-06-23 15:01:08 -04:00
Carsten "Tomcat" Book 259377b6ab merge mozilla-inbound to mozilla-central a=merge 2017-06-26 13:25:51 +02:00
Tooru Fujisawa 4735d8aaac Bug 1375938 - Fix documentation comment about synthesizeNativeOSXClick. r=smaug DONTBUILD 2017-06-25 23:57:56 +09:00
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
Marco Castelluccio 6a02b0ecf6 Bug 1380712 - Update grcov after modification of the linked-files-map.json format. r=jmaher
--HG--
extra : rebase_source : 1304c45720d024970a8288257e042d62c2ee8b7f
2017-07-13 18:52:00 +02:00
Marco Castelluccio 57b705e719 Bug 1380743 - Ignore gcc/** files when generating info file via grcov. r=jmaher 2017-07-13 20:11:39 +02: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
James Graham 5615725398 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

--HG--
extra : rebase_source : 9b53d8b10e2341624c3add5e9975aab47e0b320f
2017-05-09 18:59:09 +01:00
James Graham a79e689564 Bug 1363428 - Use an iterator for iterating windows, r=ato
MozReview-Commit-ID: FKsw9EST2H7

--HG--
extra : rebase_source : 87ae70226adf947e4b7990348ba94b277cff11d1
2017-05-09 17:49:09 +01:00
James Graham d090e05ce4 Bug 1363428 - Skip element highlighting if there are no highlights, r=ato
MozReview-Commit-ID: 3rc4XnykV1S

--HG--
extra : rebase_source : a4b4f7a54b4f92ebbc00dd76127e2db7782e755a
2017-05-09 17:26:45 +01:00
James Graham 3d82db9e19 Bug 1363428 - Allow passing flags when drawing to a canavs, r=ato
MozReview-Commit-ID: 8QAFiWcsKNE

--HG--
extra : rebase_source : 1ed9d27f877b61c4c935063dfa75d7035bd174d8
2017-05-09 17:26:08 +01:00
James Graham 42f93b4c79 Bug 1363428 - Allow passing in an existing canvas to capture.canvas, r=ato
MozReview-Commit-ID: EGvEr7XfHH9

--HG--
extra : rebase_source : ad906ada5a238ec174edacb0db859127404a063f
2017-05-09 17:23:47 +01:00
Sebastian Hengst e8d1af47bc Backed out changeset a0f804d0b487 (bug 1375173) for failing Windows taskcluster builds in selftest.py | XPCShellTestsTests.testAddTaskRunNextTest. r=backout on a CLOSED TREE 2017-06-23 19:08:42 +02:00
Andrew Halberstadt 4dc85c3032 Bug 1375173 - Fix bug preventing running xpcshell from ./mach test, r=jgraham
MozReview-Commit-ID: FxPAAP3r9k0

--HG--
extra : rebase_source : ef80d10b9ca9ae7930b30c2496f636d15d110930
2017-06-23 08:25:21 -04:00
Henrik Skupin 97651e224a Bug 1375259 - Fix FennecInstance.close() for removal of restart keyword. r=ato
On bug 1373635 the restart keyword has been removed from
GeckoInstance.close(), but it was missed for FennecInstance,
which calls this method.

MozReview-Commit-ID: 5cEFJ6JXIVl

--HG--
extra : rebase_source : 057db73615fa59107bc37585a8cc516e693ea851
2017-06-23 14:52:41 +02:00
Ryan VanderMeulen dacc2546ba Backed out 6 changesets (bug 1223277) for causing Marionette test regressions.
Backed out changeset 85c86dc86122 (bug 1223277)
Backed out changeset aacd8d27b192 (bug 1223277)
Backed out changeset e6921a7229a3 (bug 1223277)
Backed out changeset b9f95fc81d23 (bug 1223277)
Backed out changeset 547744157e2a (bug 1223277)
Backed out changeset afbaa1138de3 (bug 1223277)
2017-06-23 12:15:23 -04:00
Phil Ringnalda 8cd6bc033e Backed out changeset 25838d44520a (bug 1372567) for unexpected assertion counts in and between test_bug394239.html and test_bug402380.html
MozReview-Commit-ID: 44gjACDeSV
2017-06-23 08:28:05 -07:00
Henrik Skupin 9737c986a6 Bug 1223277 - Return immediately when click command closes tab or window. r=ato
In some cases the click command can trigger the closing of the
currently selected tab or window. To not cause a hang when waiting
for a response from the removed framescript, the tab and window
closing events have to be observed. Also the command has to return
immediately.

MozReview-Commit-ID: 9WeXryrKEJr

--HG--
extra : rebase_source : 682d67d51109c57a6de1a129492ebb5b635d7c56
2017-05-24 21:44:37 +02:00
Henrik Skupin 99b7841d93 Bug 1223277 - TcpTransport.close() should't care about errno 107. r=ato
Beside Errno 57 there is also Errno 107 (Transport endpoint is not
connected) which can happen in case of an unexpected crash/shutdown
of Firefox. Then calling shutdown() on the socket to stop the
communication will fail.

This is most likely a race and can happen after receiving a reply
from the server, and before sending another command.

MozReview-Commit-ID: 3S5Ko4XVUAJ

--HG--
extra : rebase_source : f808ee62188255ae1aaabac8e1fd3691eba6b2e6
2017-06-22 21:10:44 +02:00
Henrik Skupin 98d13ae504 Bug 1223277 - Improve Marionette unit tests for delayed crashes. r=ato
In case of delayed shutdowns of Firefox we currently miss to detect the
created minidump files because the mozcrash mock gets removed right after
the crash causing command has been executed. To prevent this the mock
has to be active from setUp until tearDown.

Also we should not silently ignore the case that the minidump folder
cannot be deleted. Because it means no crash happened, or the folder
has not been created.

MozReview-Commit-ID: KncJ5BHi7M5

--HG--
extra : rebase_source : 63c947b0a7fe16de0eed19a8e0359721d9f4051d
2017-06-22 11:45:10 +02:00
Henrik Skupin 7a2a397654 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
Henrik Skupin 29b61fdb0c 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 a7a55e0f21 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
Andreas Tolfsen b51e4887c3 Bug 1371733 - Move cookie service to chrome space; r=whimboo
The cookie service relies on the current document's
domain which is accessible from chrome space through
this.curBrowser.contentBrowser.contentURI.host.

As it is implemented currently, Marionette's cookie service jumps
between chrome- and content space more than necessary.  This incurs
significant serialisation and IPC overhead, considering that the domain,
hostname, and current path information is readily available in chrome
space.

This patch removes all cookie-related functionality from
testing/marionette/listener.js, and implements a pure chrome-only
version of the service.  It does, however, not try to fix conformance
issues with the WebDriver specification, of which there are many.

Some of the algorithms, especially to do with iteration over cookies,
implemented in cookie.iter, is also highly suboptimal.  I have not
fundamentally changed any algorithms, and so my recommendation is to
address this later when addressing potential conformance bugs.

MozReview-Commit-ID: Fgs8ocbDJxb

--HG--
extra : rebase_source : 16470d5341459e40b1ceed12728451d517bbc490
2017-06-12 18:05:22 +01:00
Andreas Tolfsen abcc631524 Bug 1371733 - Add tests for custom assertion errors; r=whimboo
The last commit discovered a bug that one assertion's error message was
not being propagated.  This adds extensive tests for this, for all the
remaining assertions to ensure this does not regress in the future.

MozReview-Commit-ID: EK91mUPeweG

--HG--
extra : rebase_source : f429a4cdd420c8d078419754d3cb0c39ac418ef1
2017-06-12 18:18:48 +01:00
Andreas Tolfsen d26d0d6594 Bug 1371733 - Propagate error message of assert.object; r=whimboo
The err argument to assert.object is currently being dropped, which
means we loose the specialised and the custom error message.

This patch propagates the error message like we do for all other
assertions in this module.

MozReview-Commit-ID: GwuBSbqKfk1

--HG--
extra : rebase_source : 86c57aaaf60526eaf65345b9d5e38378920419e3
2017-06-12 18:02:39 +01:00
Andreas Tolfsen d69ce374f7 Bug 1371733 - Singularise cookie module name; r=whimboo
Marionette uses singular module names.  Make the cookie module
fall in line by renaming it from testing/marionette/cookies.js to
testing/marionette/cookie.js.

MozReview-Commit-ID: H4jyvI3lFxz

--HG--
rename : testing/marionette/cookies.js => testing/marionette/cookie.js
extra : rebase_source : 6da48d3d9215de34ccb97823c0430766538fb45f
2017-06-09 18:06:51 +01:00
Andreas Tolfsen ef6448769d Bug 1371733 - Encode currentURL as URL object; r=whimboo
Instead of returning a string representation of the current locaton from
GeckoDriver#currentURL, we encode it as a URL object.

browser.Context#currentURL is also renamed to currentURI to reflect that
it now returns an nsIURI object.

The motivation behind this change is that we need to access a URL's port,
protocol, pathname, and hostname separately.

MozReview-Commit-ID: DM7gkrHhFpb

--HG--
extra : rebase_source : 1c8c3535bebc1e91a7f8ddaa88278cc78f66cf56
2017-06-13 14:46:59 +01:00
Andreas Tolfsen 12af514ac6 Bug 1375425 - Namespace WebDriver commands; r=automatedtester
We want to namespace the WebDriver commands so that we in the future can
use Marionette without activating the WebDriver functionality.  Today,
Marionette sets up a lot of state which is not needed if the client only
needs Marionette for installing an addon.

Namespacing the WebDriver commands is the first step towards a future
where features can be enabled and disabled at runtime.

MozReview-Commit-ID: E2lAGKb833F

--HG--
extra : rebase_source : 2d72274e4d85506f3af319e2ca36600128faa6f6
2017-06-22 13:07:02 +01:00
Andreas Tolfsen 670d9c4945 Bug 1375425 - Correct l10n service namespace; r=automatedtester
We don't want to support multiple namespaces in service endpoints as it
will add unecessary complexity when we in the future support enabling-
and disabling services on an individual level.  This patch drops the
"localization" namespace and exposes "L10n:*".

MozReview-Commit-ID: IhqG72vMohJ

--HG--
extra : rebase_source : 9d675e2915f8ae25bcc9fdedab3e2095038990f0
2017-06-22 12:59:33 +01:00
Andreas Tolfsen 09256d7b98 Bug 1375425 - Correct addon service namespace casing; r=automatedtester
Use the Gecko IPC name format.

MozReview-Commit-ID: 22h1ObWKs20

--HG--
extra : rebase_source : 2f5e4d2b79b82c00cafcedbec98c942af114bf6c
2017-06-22 12:55:00 +01:00
Andreas Tolfsen fa49e7fca2 Bug 1375425 - Namespace the Marionette service; r=automatedtester
The Marionette service provides commands that are specific to Marionette
operation, such as setting the target (context) for all other commands,
deciding whether to accept new connections, and quitting the browser.

MozReview-Commit-ID: 7NIbaAUzybx

--HG--
extra : rebase_source : c46395d87fb60214a9bd434e71dd2d622f050d91
2017-06-22 12:11:21 +01:00
Andreas Tolfsen 5c81559723 Bug 1375425 - Remove deprecated commands; r=automatedtester
The "timeouts" command could have been removed in Firefox 55, and
"quitApplication" can be removed with Firefox 56.

MozReview-Commit-ID: Fe7x8Yy0vSb

--HG--
extra : rebase_source : fc8b2c3c27f76a472cbdd8681efff06ca60e00f7
2017-06-22 10:42:55 +01:00
Andreas Tolfsen 3b4771f13f Bug 1375425 - Remove undefined commands; r=automatedtester
The getMarionetteID, sayHello, and setTestName commands are not
implemented but defined in the command list.

MozReview-Commit-ID: 7Yzgrp9qpeX

--HG--
extra : rebase_source : e34d2ef599525b3fc751a43a6edcd917a72b6725
2017-06-22 10:41:23 +01:00
Andrew Halberstadt 3ae2df8c76 Bug 1372567 - Fix problems with mochitest structured logging, r=jgraham
The mochitest harness uses testEnd multiple times to log various failures. This can result
in several testEnd messages, which will soon cause mozlog to spit out an error. Instead,
these should be testStatus.

This also starts using mozlog's assertion_count log action to log test assertions (again,
instead of testEnd).

MozReview-Commit-ID: FFsyicSso5Y

--HG--
extra : rebase_source : f6f3ab02e1c9ef693ea6a857f3e6dc863a075135
2017-06-21 08:40:19 -04:00
James Graham f65c4659a7 Bug 1375661 - Add a --list-tests option to wptrunner, r=ahal
MozReview-Commit-ID: 3SVF187zmrR

--HG--
extra : rebase_source : 318fef0c0b80f7e5f0fcd735e66d8e6f137d12d5
2017-06-14 13:18:01 +01:00
Mike Hommey dd3660441c Bug 1374946 - Only download what's needed for l10n repacks. r=Callek
As of bug 1373150, l10n repacks do not require a anything to compile, so
they can stop downloading most toolchains from tooltool. However some
tools are still required, such as mozmake on Windows and DMG-related
tools on cross OSX.

--HG--
extra : rebase_source : f46e851c7941491530ce65490d0cfce4f9f02e35
2017-06-21 16:36:23 +09:00
Henrik Skupin bc0f54dd08 Bug 1366199 - Release marionette-harness 4.1 and marionette-driver 2.3.0. r=maja_zf
MozReview-Commit-ID: GOrSXY8aHFJ

--HG--
extra : rebase_source : 05f6ff7b25bf55a5f7a073e1ddfca57d3a26287b
2017-06-28 10:18:13 -07:00
Henrik Skupin 9b6fba71c7 Bug 1366199 - Relax marionette-harness depencency for AWSY. r=erahm
MozReview-Commit-ID: Js5ppUYSSpn

--HG--
extra : rebase_source : 49bcf0fb53157dedbf1bfcad49f4684dfe610a7c
2017-06-28 14:57:03 -07:00
Henrik Skupin 25cda893fb Bug 1375104 - Combine standard and Gecko log for Marionette. r=ato,maja_zf
In automation we should combine the standard logging and
the gecko log by default to ease the investigation of test
failures. It will also provide crash/assertion output
without having to search for it in other log files.

Also the custom error list has been replaced with the
default base and harness error lists as used by other
harnesses, which prevents false assumptions by the parser
when the trace log contains returns of expected errors.

MozReview-Commit-ID: 1rQ6maOqD3V

--HG--
extra : rebase_source : 77e94ffc6b77ac0467214321ed566f58c4e46f0e
2017-06-24 12:00:56 +02:00
Andreas Tolfsen 0025816358 Bug 1376586 - Add back quitApplication command alias; r=davehunt
The quitApplication command was accidentally removed in 1e96a289d28a.
This adds it back as a recognised command alias in order to not break
geckodriver.

MozReview-Commit-ID: IZ0h8dv9ILt

--HG--
extra : rebase_source : 61550dae3a71973a2028d6384bc3eab388c17c21
2017-06-27 14:48:36 -07:00
Andreas Tolfsen 57744ed223 Bug 1378227 - Reintroduce window test for Marionette:GetWindowRect; r=whimboo
When linting the Marionette server code,
https://searchfox.org/mozilla-central/commit/de001d80b777ff0fcfa823a52e8d49b4981af040
accidentally removed the missing window check from the
Marionette:GetWindowRect command.  This change reintroduces the
check that was accidentally removed.

MozReview-Commit-ID: FkDOUKR2dIi

--HG--
extra : rebase_source : abc32aec9b005f341d1e1deb1bbc9a3132dd35cb
2017-07-09 17:15:28 +01:00
Wander Lairson Costa f53f82ef11 Bug 1375159: Disable macosx64-devedition buildbot tests scheduling. r=catlee
They are now scheduled in Taskcluster.

MozReview-Commit-ID: GVAjou4kVuO

--HG--
extra : rebase_source : 812d2f33862ba6e1b9565e8f1739373eb9ebd07d
2017-06-21 15:09:47 -03:00
Andreas Tolfsen 912429a173 Bug 1370863 - Remove log and getLogs commands from Marionette; r=automatedtester
MozReview-Commit-ID: HFZfJGwSqyT

--HG--
extra : rebase_source : 689dc42349854ad7ba6c717263dbb2c1260c7ae1
2017-06-07 14:17:41 +01:00
Andreas Tolfsen f93cf30ebe Bug 1370863 - Remove log() call from WPT Marionette executor; r=jgraham
MozReview-Commit-ID: G1EKpTswJ8h

--HG--
extra : rebase_source : 253e0357260d95c175af5816053739f116818e84
2017-06-09 14:23:56 +01:00
Andreas Tolfsen 2a8d5de8c8 Bug 1370863 - Remove Marionette.log API from client; r=automatedtester
MozReview-Commit-ID: FjBQ2p1DyLn

--HG--
extra : rebase_source : 00561c25a0432fb8042ea0f5ba2e6b6563272d00
2017-06-09 14:28:15 +01:00
Andreas Tolfsen fbe1c6662b Bug 1370863 - Stop using Marionette.log API in harness; r=automatedtester
MozReview-Commit-ID: 33ZPdJ486rJ

--HG--
extra : rebase_source : e5cff00c41f09afb8f01d18d830bc601cb5a6171
2017-06-09 14:27:27 +01:00
Andreas Tolfsen 93e3a7df66 Bug 1364319 - Make setWindowRect deterministic; r=automatedtester,maja_zf
The Marionette setWindowRect command is meant to provide a blocking API
for resizing and moving the window.  This currently has an intermittent
rate of ~0.254 with the WPT conformance test.

The main issue in providing a blocking API is that the DOM resize
event fires at a high rate and needs to be throttled.  We are able to
throttle this successfully with requestAnimationFrame, and before that,
a hard-coded 60 fps setTimeout delay.  To the naked eye, this appears to
synchronise window resizing before returning the resposne to the client.

However, occasionally the response contains the wrong window size.
window.outerWidth and window.outerHeight do not appear to be
deterministic as DOM properties are not synchronously populated.

Calls to ChromeWindow.outerWidth and ChromeWindow.outerHeight sometimes
also returns inconsistent values.  Tests, document in the bug, have
shown that somtimes, the returned window size from the setWindowRect
command is correct, and that the size from the subsequent getWindowRect
command is not.

By using a combination of Services.tm.mainThread.idleDispatch and a
blocking promise on not returning a response until the window size has
changed, we are able to reduce the intermittent rate significantly (by
over an order of magnitude).

As one would expect, delaying computation allows DOM property values to
populate, and as such does not address the underlying problem or make it
inconceivable that the race described above could re-appear, but it does
seem to be more reliable than the current approach.

MozReview-Commit-ID: Lf2yeeXH082

--HG--
extra : rebase_source : e27912fdcb6edbf825bf3168f3542ff2b4551b8b
2017-06-21 17:13:51 +01:00
Blake Kaplan 6fd6916834 Bug 981796 - Remove WPTs that assume we implement showModalDialog. r=smaug
MozReview-Commit-ID: HWJwAXgDnmx

--HG--
extra : rebase_source : e6f579161f87d2548d54f08012a66b70dc5cfad3
2017-06-16 12:42:47 -07:00
Mike Conley 89d434fb56 Bug 1374765 - Make tsvg tests run without browser chrome to avoid noise from UI changes. r=jmaher
MozReview-Commit-ID: 3y8qMbdRkTj

--HG--
extra : rebase_source : 211004f28b9975fec5245a16fb4ead7747d1f768
2017-06-20 16:00:40 -04:00
Mike Conley 3a2981ce60 Bug 1374765 - Make the Talos pageloader support tpchrome=False with e10s enabled. r=jmaher
MozReview-Commit-ID: G33O89je0Bg

--HG--
extra : rebase_source : b8b36fbf99d1ca0a2ce08aae9b396ac10ced4854
2017-06-20 15:55:50 -04:00
Justin Wood 4fccce240a Bug 1373326 - Reformat repackage mozharness code to support new mach repackage stuff. r=aki
(For Landing more OSX Nightly Support from date to central)

MozReview-Commit-ID: FSbQZ1Fbdcs

--HG--
extra : rebase_source : 3651dd368f032ae9f17cba42010902f850a64700
2017-06-16 15:48:00 -04:00
Henrik Skupin 07c50b8808 Bug 1374633 - Add Firefox UI Tests jobs for Taskcluster on OS X. r=jmaher
MozReview-Commit-ID: IbDd2NRZM2A

--HG--
extra : rebase_source : 53272eabeeeec79d4d7d70829bbe972ab1bd2369
2017-06-20 16:27:36 +02:00