Commit Graph

13914 Commits

Author SHA1 Message Date
Shih-Chiang Chien
8c67883c04 Bug 1320348 - disable Presentation API logging on treeherder. r=schien
MozReview-Commit-ID: 2jRPRrKIyc3

--HG--
extra : rebase_source : e298bf8d5669393594caf3b9eccfd1d1429215d4
2016-11-28 11:48:08 +08:00
Andreas Tolfsen
da6234665e Bug 1103196 - Add ability to ignore invalid TLS certificates; r=automatedtester,keeler,mossop
When the `acceptInsecureCerts` capability is set to true on creating
a new Marionette session, a `nsICertOverrideService` override service
is installed that causes all invalid TLS certificates to be ignored.
This is in line with the expectations of the WebDriver specification.

It is worth noting that this is a potential security risk and that this
feature is only available in Gecko when the Marionette server is enabled.

MozReview-Commit-ID: BXrQw17TgDy

--HG--
extra : rebase_source : 023f18b07ffbb53c7dbc588a823c62830f032e3d
2016-11-06 18:03:31 +00:00
Andreas Tolfsen
5c6b5dd771 Bug 1103196 - Error on encountering invalid certificate; r=automatedtester
When arriving at a document which baseURI starts with `about:certerror`
will cause Marionette to now return `error.InsecureCertificateError`.
This is mandated by the WebDriver specification.

This does, however, mark a non-backwards compatible change in Marionette.
It is assumed we will be able to mitigate this change in error type as
few consumers, if any, rely on the more generic type considering we did
not support invalid TLS certificates prior to this push.

MozReview-Commit-ID: JcIMvCXimB

--HG--
extra : rebase_source : 5e2dffe8e5d16ae3fe407ed42c43d52b49e3741d
2016-11-06 18:01:23 +00:00
Andreas Tolfsen
9ac8f3690e Bug 1103196 - Add insecure certificate error; r=automatedtester
MozReview-Commit-ID: 26wwOuqWhog

--HG--
extra : rebase_source : ad5cd93e9360545932e9cd05f4efdbc9aa8f2712
2016-11-06 18:00:18 +00:00
Andreas Tolfsen
6482c0f79b Bug 1103196 - Remove non-conformant acceptSslCerts capability; r=automatedtester
`acceptSslCerts` has been replaced by `acceptInsecureCerts`.

MozReview-Commit-ID: 79KbRoQb1dW

--HG--
extra : rebase_source : 1c0e4fcb468d5c196351cb21715804c98b5fef02
2016-11-06 17:59:42 +00:00
Andreas Tolfsen
121372c21a Bug 1103196 - Add acceptInsecureCerts capability; r=automatedtester
Reads the `acceptInsecureCerts` capability and sets the session state.

MozReview-Commit-ID: KVErmdxwXQB

--HG--
extra : rebase_source : 50ce229909cfc9a407fdadc593b57a9545342723
2016-11-01 18:07:24 +00:00
Andreas Tolfsen
2bb7eb3b88 Bug 1103196 - Logically reorder variables defining session state; r=automatedtester
No functional changes in this patch.

MozReview-Commit-ID: IWaao8AuZib

--HG--
extra : rebase_source : b8bce562f7563e6557fc2f6bdefdc4fe8c341452
2016-11-01 18:00:25 +00:00
Andreas Tolfsen
98ad139fd3 Bug 1103196 - Mark specificationLevel capability as proprietary; r=automatedtester
The `specificationLevel` capability has been removed from the WebDriver
specification, and will be removed in a future change to Marionette.
This change makes this clear by moving it down to the list of proprietary
Marionette capabilities.

MozReview-Commit-ID: BMTuXBDZ8WV

--HG--
extra : rebase_source : 1a56d7f64309f388695956b67c027090e4f0c132
2016-11-01 17:59:51 +00:00
Andreas Tolfsen
cba312f33b Bug 1103196 - Add HTTPS fixture server for Marionette; r=automatedtester,maja_zf,whimboo
This patch makes testing/marionette/harness/marionette/runner/httpd.py
capable of spinning up an HTTPS server with self-signed certificate.
It also introduces testing/marionette/harness/marionette/runner/serve.py
that is capable of managing the HTTP- and HTTPS fixture servers as
subprocesses, allowing them to operate independently.

serve.py uses inter-process communication based on channels (from
`multiprocessing.Pipe`) to query methods on the httpd served in each
process, which is used to get absolute URLs from the main process.
This is useful as servers can delegate port allocation to the system
socket service by atomically binding to port 0, guaranteeing that the
chosen port is uncontested.  It is also used to perform synchronous and
graceful shutdown of the httpd.

MozReview-Commit-ID: 9OlW6F1w0AN

--HG--
extra : rebase_source : 5ae8b0f100a28b8d34f87b0868cde6d74c150602
2016-11-01 16:53:51 +00:00
Andreas Tolfsen
4ca4faa8a6 Bug 1297551 - Avoid cancelling content timeout callback; r=automatedtester
We need to avoid passing the timeout ID returned from `setTimeout` in the
content frame script that we use to register the script timeout handler
to the sandbox's `clearTimeout` function as this might interfere with any
`window.setTimeout` calls being made in the injected script.

MozReview-Commit-ID: 26PY8JDkf9A

--HG--
extra : rebase_source : 414581472dfa99379aecdfea5c5a29c2ce808890
2016-11-25 17:01:16 +00:00
Henrik Skupin
9ff0290252 Bug 1319024 - Sync default testing preferences for Marionette. r=automatedtester
MozReview-Commit-ID: 7fkpqCVYXIX

--HG--
extra : rebase_source : eab5a3156c2167a3ed3649fb75a7573bba147904
2016-11-21 16:18:58 +01:00
Henrik Skupin
fac1203baa Bug 1319024 - Remove usage of browser.newtab.url from Firefox Puppeteer. r=maja_zf
MozReview-Commit-ID: LwMJgQMgJoP

--HG--
extra : rebase_source : 81e0883a19df46c710c6546cde0fb469464e664e
2016-11-21 22:27:45 +01:00
Henrik Skupin
a01b3376e3 Bug 1320099 - Move marionette_driver docs to testing/marionette/client. r=ato
MozReview-Commit-ID: 7Bshw4H5yRT

--HG--
rename : testing/marionette/harness/docs/Makefile => testing/marionette/client/docs/Makefile
rename : testing/marionette/harness/docs/advanced/actions.rst => testing/marionette/client/docs/advanced/actions.rst
rename : testing/marionette/harness/docs/advanced/debug.rst => testing/marionette/client/docs/advanced/debug.rst
rename : testing/marionette/harness/docs/advanced/findelement.rst => testing/marionette/client/docs/advanced/findelement.rst
rename : testing/marionette/harness/docs/advanced/landing.rst => testing/marionette/client/docs/advanced/landing.rst
rename : testing/marionette/harness/docs/advanced/stale.rst => testing/marionette/client/docs/advanced/stale.rst
rename : testing/marionette/harness/docs/basics.rst => testing/marionette/client/docs/basics.rst
rename : testing/marionette/harness/docs/conf.py => testing/marionette/client/docs/conf.py
rename : testing/marionette/harness/docs/index.rst => testing/marionette/client/docs/index.rst
rename : testing/marionette/harness/docs/interactive.rst => testing/marionette/client/docs/interactive.rst
rename : testing/marionette/harness/docs/make.bat => testing/marionette/client/docs/make.bat
rename : testing/marionette/harness/docs/reference.rst => testing/marionette/client/docs/reference.rst
extra : rebase_source : b3683507bc48fe151daaef37edd759c58f0e1631
2016-11-25 13:16:00 +01:00
Henrik Skupin
68d78f440e Bug 1319692 - Fix test_page_info_window.py to use lowercase platform name. r=ato
MozReview-Commit-ID: BwYUT88Pz4q

--HG--
extra : rebase_source : f53dbce3aa69e3f6160900521416d32be5a2abc7
2016-11-25 12:46:33 +01:00
Alastor Wu
0d25dffb13 Bug 1320276 - Fix web-platform-tests/webvtt/webvtt-api-for-browsers/vttcue-interface/line.html. r=rillian
Modify the test "web-platform-tests/webvtt/webvtt-api-for-browsers/vttcue-interface/line.html" in order to follow the spec.

(1) The default value of line should be "auto" [1]
- change all "-1" into "auto"

(2) The cue.line should return the line's value, instead of computedLine's [2]
- change "-2" into "auto" (-2 is the value of the computedLine)

[1] https://w3c.github.io/webvtt/#webvtt-cue-line
[2] https://w3c.github.io/webvtt/#dom-vttcue-line


MozReview-Commit-ID: BbClRlWwQ40

--HG--
extra : rebase_source : 6ba7b3cc90b9ebdc3989a6740a20975dce03b70f
2016-11-25 16:59:57 +08:00
Carsten "Tomcat" Book
a666835bf5 merge mozilla-inbound to mozilla-central a=merge
--HG--
extra : rebase_source : 7f6b0f633da54f747b30496110e5260a226fe249
2016-11-25 15:36:56 +01:00
Henrik Skupin
034e961210 Bug 1318644 - Auto-detect application type if binary has been specified. r=automatedtester
MozReview-Commit-ID: 15etyogBI54

--HG--
extra : rebase_source : a359b2a3dd4411be89e0de42ddd6e86be8e9b26e
2016-11-25 10:41:17 +01:00
Sebastian Hengst
4a04f654e3 Backed out changeset 4c42ee29c468 (bug 1103196) for broken Marionette tests on Windows (error loading pages). r=backout 2016-11-25 00:20:30 +01:00
Sebastian Hengst
1c19830a85 Backed out changeset baa46ca196fa (bug 1103196) 2016-11-25 00:18:44 +01:00
Sebastian Hengst
a907d2b98b Backed out changeset b63c853a1b56 (bug 1103196) 2016-11-25 00:18:40 +01:00
Sebastian Hengst
c46fde4a80 Backed out changeset 3d2b43bd09e6 (bug 1103196) 2016-11-25 00:18:36 +01:00
Sebastian Hengst
f57f50c634 Backed out changeset b2910c43905c (bug 1103196) 2016-11-25 00:18:31 +01:00
Sebastian Hengst
42f8e73f86 Backed out changeset 0c28b77a3279 (bug 1103196) 2016-11-25 00:18:27 +01:00
Sebastian Hengst
96d5b195ad Backed out changeset f27d827ba404 (bug 1103196) 2016-11-25 00:18:23 +01:00
Sebastian Hengst
5fe8073117 Backed out changeset 9fae5015803b (bug 1103196) 2016-11-25 00:18:19 +01:00
Andreas Tolfsen
f4441f7f70 Bug 1103196 - Add ability to ignore invalid TLS certificates; r=automatedtester,keeler,mossop
When the `acceptInsecureCerts` capability is set to true on creating
a new Marionette session, a `nsICertOverrideService` override service
is installed that causes all invalid TLS certificates to be ignored.
This is in line with the expectations of the WebDriver specification.

It is worth noting that this is a potential security risk and that this
feature is only available in Gecko when the Marionette server is enabled.

MozReview-Commit-ID: BXrQw17TgDy

--HG--
extra : rebase_source : 722b7bde2b6e76a4cf0565b0504a6ce8ec53f04a
2016-11-06 18:03:31 +00:00
Andreas Tolfsen
a8326f61b5 Bug 1103196 - Error on encountering invalid certificate; r=automatedtester
When arriving at a document which baseURI starts with `about:certerror`
will cause Marionette to now return `error.InsecureCertificateError`.
This is mandated by the WebDriver specification.

This does, however, mark a non-backwards compatible change in Marionette.
It is assumed we will be able to mitigate this change in error type as
few consumers, if any, rely on the more generic type considering we did
not support invalid TLS certificates prior to this push.

MozReview-Commit-ID: JcIMvCXimB

--HG--
extra : rebase_source : 9ed8aa636192f45b30399af6bed9858bed3bad46
2016-11-06 18:01:23 +00:00
Andreas Tolfsen
e19e26382e Bug 1103196 - Add insecure certificate error; r=automatedtester
MozReview-Commit-ID: 26wwOuqWhog

--HG--
extra : rebase_source : 2a071ca7800f27026c8c53efb1b247067c37a90e
2016-11-06 18:00:18 +00:00
Andreas Tolfsen
0d1b8f66e9 Bug 1103196 - Remove non-conformant acceptSslCerts capability; r=automatedtester
`acceptSslCerts` has been replaced by `acceptInsecureCerts`.

MozReview-Commit-ID: 79KbRoQb1dW

--HG--
extra : rebase_source : 4ccda0241b1809e0bc11ec6be4c820007731da63
2016-11-06 17:59:42 +00:00
Andreas Tolfsen
84c0637c2f Bug 1103196 - Add acceptInsecureCerts capability; r=automatedtester
Reads the `acceptInsecureCerts` capability and sets the session state.

MozReview-Commit-ID: KVErmdxwXQB

--HG--
extra : rebase_source : fb1ee50bc2ee53343af58dcb417e5a5c0dee7fbc
2016-11-01 18:07:24 +00:00
Andreas Tolfsen
e6c7ae10e3 Bug 1103196 - Logically reorder variables defining session state; r=automatedtester
No functional changes in this patch.

MozReview-Commit-ID: IWaao8AuZib

--HG--
extra : rebase_source : 35d0ee07426ee411e4da3cb7e4966a8c44d015e1
2016-11-01 18:00:25 +00:00
Andreas Tolfsen
f702780183 Bug 1103196 - Mark specificationLevel capability as proprietary; r=automatedtester
The `specificationLevel` capability has been removed from the WebDriver
specification, and will be removed in a future change to Marionette.
This change makes this clear by moving it down to the list of proprietary
Marionette capabilities.

MozReview-Commit-ID: BMTuXBDZ8WV

--HG--
extra : rebase_source : 839405b2cf30d23c7f107801376aff8e76ef4b59
2016-11-01 17:59:51 +00:00
Andreas Tolfsen
0b6595c946 Bug 1103196 - Add HTTPS fixture server for Marionette; r=automatedtester,maja_zf,whimboo
This patch makes testing/marionette/harness/marionette/runner/httpd.py
capable of spinning up an HTTPS server with self-signed certificate.
It also introduces testing/marionette/harness/marionette/runner/serve.py
that is capable of managing the HTTP- and HTTPS fixture servers as
subprocesses, allowing them to operate independently.

serve.py uses inter-process communication based on channels (from
`multiprocessing.Pipe`) to query methods on the httpd served in each
process, which is used to get absolute URLs from the main process.
This is useful as servers can delegate port allocation to the system
socket service by atomically binding to port 0, guaranteeing that the
chosen port is uncontested.  It is also used to perform synchronous and
graceful shutdown of the httpd.

MozReview-Commit-ID: 9OlW6F1w0AN

--HG--
extra : rebase_source : 3d791a6c44a23be72704f37c07cb437f309cdcef
2016-11-01 16:53:51 +00:00
Geoff Brown
79e2edc6bb Bug 1319583 - Trigger job retry on Android infra error; r=kmoir 2016-11-24 13:35:06 -07:00
Carsten "Tomcat" Book
dd36826044 Merge mozilla-central to mozilla-inbound 2016-11-24 16:46:19 +01:00
Carsten "Tomcat" Book
61849e269d merge mozilla-inbound to mozilla-central a=merge 2016-11-24 16:41:59 +01:00
Bob Owen
9d6013aa66 Bug 1147911 Part 3: Add remote type parameter to forceInitialBrowserRemote. r=gijs
Also change talos pageloader.js to force type to match test URLs.
2016-11-24 15:08:30 +00:00
Boris Zbarsky
166a16639f Bug 1315135 followup. Fix web platform tests that either depended on the old spec's behavior or were asserting that we fail the new one. 2016-11-24 00:24:45 -05:00
Wes Kocher
b851c06cc9 Merge m-c to inbound, a=merge 2016-11-23 16:18:24 -08:00
Alastor Wu
5d4571103c Bug 1301055 - part3 : modify test prefs. r=jwwang
On fennec we have the special workaround that is doesn't dispatch the "error" event when the error is
"MEDIA_ERR_SRC_NOT_SUPPORTED" because we will use an external app to open it.

But we don't want this behavior affect the tests we already have, so close the pref.

MozReview-Commit-ID: 9aoy1vnekvY

--HG--
extra : rebase_source : 9ac045b7595eadd36039bc6f42b32e4d3eac421b
2016-11-24 10:24:06 +08:00
Jonas Finnemann Jensen
cffd9885e8 Bug 1319449 - Set -o pipefail and other robustness improvements for image_builder. r=dustin
MozReview-Commit-ID: 5oIdvcrScRt

--HG--
extra : rebase_source : 6b6dd2dc3b3e8465127d33fb428877f68537ad5b
2016-11-22 14:13:15 -08:00
Sebastian Hengst
1d8fe2a4d0 Backed out changeset b6beaa787043 (bug 1319705) for marionette mass bustage. r=backout on a CLOSED TREE 2016-11-23 21:17:49 +01:00
Ralph Giles
dddc123f32 Bug 1318531 - Fix whitespace in tooltool manifests. r=mshal
Run the tooltool manifests through a python script to read the
json as an OrderedDict and when write it back out with normal
tooltool formatting options. This regularizes the whitespace,
fixing trailing spaces written by older versions of the python
json serializer, dos-vs-unix line endings, and regularizing
opening '[{' and closing '}]' to be on separate lines.

The android manifests have a 'versions' key which has indenting,
unlike the rest of the files. I've left that as-is.

MozReview-Commit-ID: EVW1YlgRJJL

--HG--
extra : rebase_source : 40c1992090807dc40495ebacb37ee358c1d6a6f1
2016-11-22 16:15:27 -08:00
Henrik Skupin
c4fa51a34a Bug 1142805 - Remove unnecessary restart for update tests r=maja_zf,rail
MozReview-Commit-ID: 6tTPJeLvntf

--HG--
extra : rebase_source : b796e82f1d973f15ee98a9dd1a30cd51764de002
2016-11-22 14:52:08 +01:00
Henrik Skupin
14c08613c3 Bug 1142805 - Use ConfigParser to modify update-settings.ini r=maja_zf,rail
MozReview-Commit-ID: KbJofXTDa9p

--HG--
extra : rebase_source : 1d1afc68f7fe4336fd42965dc419afb907f7c429
2016-11-22 14:49:46 +01:00
Henrik Skupin
d371faf694 Bug 1142805 - Fix remaining traces for app.update.url.override. r=maja_zf,rail
MozReview-Commit-ID: BJvSjqippar

--HG--
extra : rebase_source : 8c4a655bcf64f61b0d319c8a193d3cea849ac32e
2016-11-22 13:29:22 +01:00
Henrik Skupin
1e727bf048 Bug 1142805 - Set update channel via default branch. r=maja_zf,rail
MozReview-Commit-ID: 5iHnNhLRCK4

--HG--
extra : rebase_source : f20f1c78a145f423d3e21581367cedb5c18d23b8
2016-11-22 13:15:33 +01:00
Henrik Skupin
862cdfbfed Bug 1319028 - Enable tracing output for Firefox-UI jobs. r=maja_zf
MozReview-Commit-ID: 3KsBKH9WVfR

--HG--
extra : rebase_source : 3e243595b3cbd0ea6dd442cadeb4362eb9e8d295
2016-11-22 18:08:25 +01:00
Henrik Skupin
97f47efc8b Bug 1319705 - Add firefox_puppeteer as dependency for Marionette in test archive. r=maja_zf
MozReview-Commit-ID: 9MQubKpOPl6

--HG--
extra : rebase_source : ecede2aab2f840ff04777672126cdaff27bd6733
2016-11-23 14:11:25 +01:00
Sebastian Hengst
0333e0a2b0 Backed out changeset ec84ee6acb88 (bug 1147911) 2016-11-23 18:33:06 +01:00