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
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
`acceptSslCerts` has been replaced by `acceptInsecureCerts`.
MozReview-Commit-ID: 79KbRoQb1dW
--HG--
extra : rebase_source : 1c0e4fcb468d5c196351cb21715804c98b5fef02
Reads the `acceptInsecureCerts` capability and sets the session state.
MozReview-Commit-ID: KVErmdxwXQB
--HG--
extra : rebase_source : 50ce229909cfc9a407fdadc593b57a9545342723
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
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
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
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
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
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
`acceptSslCerts` has been replaced by `acceptInsecureCerts`.
MozReview-Commit-ID: 79KbRoQb1dW
--HG--
extra : rebase_source : 4ccda0241b1809e0bc11ec6be4c820007731da63
Reads the `acceptInsecureCerts` capability and sets the session state.
MozReview-Commit-ID: KVErmdxwXQB
--HG--
extra : rebase_source : fb1ee50bc2ee53343af58dcb417e5a5c0dee7fbc
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
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
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
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