Commit Graph

505884 Commits

Author SHA1 Message Date
Gerald Squelart
b3e89a3af9 Bug 1322964 - MozPromise.Then() taking only one resolve+reject function - r=jwwang
Then and ThenPromise can now be given only one function object, which takes a
`const MozPromise::ResolveOrRejectValue&`.

MozReview-Commit-ID: BEtc3spK9Yh

--HG--
extra : rebase_source : 1b16ad15ebfcdfb653d8d98073adee0f8b27b46e
2017-01-03 16:15:14 +11:00
Gerald Squelart
9a05a0446d Bug 1322964 - MozPromise clean-up - r=jwwang
Removed 'virtual' from overrides, as per coding guidelines.
Fixed some incorrect indentations, and inconsistencies.

MozReview-Commit-ID: 4kNVgoDljG3

--HG--
extra : rebase_source : 7b25abacc7cfc1a6898963bc58120204c70bee45
2016-12-08 10:48:48 -10:00
Xidorn Quan
bab46fee29 Bug 1326145 - Remove HAVE_CPP_AMBIGUITY_RESOLVING_USING. r=froydnj
MozReview-Commit-ID: FVDZjTJ4ZhA

--HG--
extra : rebase_source : 8767112e8969cd9a3c4c118a01bec6b174024a7f
2016-12-29 18:05:20 +11:00
Justin Wood
c41a21838f Bug 1329310 - Support SIMPLE NAME for langpacks too. r=mshal
MozReview-Commit-ID: 8HpOsddMyhJ

--HG--
extra : rebase_source : f0737006e97caf488752eecafa8b35416caef821
2017-01-06 15:04:31 -05:00
Ralph Giles
881ffe6392 Bug 1323773 - Update android builders to rust 1.15.0-beta.2. r=mshal
Fix code generation for armv7 devices without neon by switching
official builds to the 1.15 beta rust compiler. This fixes the
target generation (and standard library image) to not assume
neon is available, per Google's NDK guidelines.

We expect to update this to 1.15.0 stable before release.

MozReview-Commit-ID: HWJLLGJaUDY

--HG--
extra : rebase_source : 53f00f34f40bb2adb07de27e05019ef0159f5ec8
2017-01-04 13:42:36 -08:00
Blake Kaplan
e5102c1c68 Bug 1136939 - Add additional logging to better understand this intermittent orange. r=wchen
MozReview-Commit-ID: ENU9AEskXPn

--HG--
extra : rebase_source : 3812a505e6b3a2280979bd8d701657067d5dc195
2017-01-05 16:14:42 -08:00
Chris Manchester
3223e363c4 Bug 1325801 - Fix intermittent failure staging cppunittests. r=mshal
Dumping symbols can interfere with staging cppunittests in case calling
objcopy from the symbol dumping script coincides exactly with calling
objcopy when staging cppunittests when the two are run in parallel. This
patch prevents symbol dumping from happening while tests are being packaged.

MozReview-Commit-ID: Hgi1zyIZE7K

--HG--
extra : rebase_source : 5fac1ff8aeacde38e27ca0ca7f33ed9a594dc06b
2017-01-06 15:41:22 -08:00
Mike de Boer
607071aae6 Bug 1327212 - undo a line removal done in bug 935521 that causes regressions. r=Gijs
MozReview-Commit-ID: HaUEOSpEsXs

--HG--
extra : rebase_source : d95b913bf4305a801c0ec6247a15d78b2902c48d
2017-01-07 01:05:33 +01:00
David Keeler
1e8a66e52b bug 1328456 - disallow empty token names for nsIPK11TokenDB.findTokenByName r=Cykesiopka
MozReview-Commit-ID: 5SBxAUjX579

--HG--
extra : rebase_source : 1530dcb18556bdcbe99f9aee73ddfe69f8a9124f
2017-01-03 16:23:39 -08:00
Sebastian Hengst
9506ca8115 Backed out changeset 5c6803c30303 (bug 1311512) for mass asserting. r=backout 2017-01-07 00:08:26 +01:00
Andrew McCreight
d0c224741e Bug 1325277 - Re-enable leak checking for dom/animation/test/css-animations. r=ahal
MozReview-Commit-ID: LSlEw5tCcTx

--HG--
extra : rebase_source : 9b78fd1eeea1df1553cf2741f3fcd68b0bbf052e
2017-01-06 11:04:41 -08:00
Tobias Schneider
7b08f6c8cc Bug 1311512 - Use recording draw target for mozPrintCallback canvases. r=jwatt
MozReview-Commit-ID: 8sozCJVwbnR

--HG--
extra : rebase_source : 935fef8bd5773b6f58543d9632e056fbe3b6017e
2016-12-22 11:11:15 -08:00
Daniel Holbert
71b36d73b5 Bug 1329045 part 2: Convert some global variables to local variables, in test_use_with_hsts.html. r=xidorn
(Before we introduced async/await in this test, some of these needed to be
global, because they were used in several callbacks.)

MozReview-Commit-ID: 7mDzmUx1jQ

--HG--
extra : rebase_source : 6f3a2f58c8abc643b09258b54141d93658183519
2017-01-06 13:03:22 -08:00
Daniel Holbert
09339cd3aa Bug 1329045 part 1: Use async/await to simplify callbacks in mochitest test_use_with_hsts.html. r=xidorn
MozReview-Commit-ID: 3qMTOl3fQzg

--HG--
extra : rebase_source : 6492fe98a9888a3123fa902a14462ddbfeca1d1b
2017-01-06 13:03:21 -08:00
Dustin J. Mitchell
c9ef9fbd76 Bug 1316749: use taskcluster-proxy to hit index for docker image optimization; r=jonasfj 2017-01-06 22:04:56 +01:00
Sebastian Hengst
422e0d06d2 Backed out changeset 1f38938f4e9b (bug 1316749) for flake8 lint error. r=backout 2017-01-06 22:04:15 +01:00
Jared Wein
446545a6ee Bug 1329013 - Enable no-lone-blocks rule for eslint and remove the seven unnecessary blocks that it found. r=mossop
MozReview-Commit-ID: 9DJGO4en378

--HG--
extra : rebase_source : 820f939e9a751c9be4461ef225fa73fff7829675
2017-01-05 13:30:25 -05:00
Jared Wein
ba08da0b5d Bug 1329012 - Enable the no-useless-call rule for eslint and fix the nine errors that it caught. r=mossop
MozReview-Commit-ID: 57vvfJlyvfW

--HG--
extra : rebase_source : 793106837614bc6756409712d8683a64f2096522
2017-01-05 12:56:53 -05:00
Wes Kocher
5fb888d27d Bug 1329047 - Make sure arm-sim jobs are assigned the correct platform r=dustin
MozReview-Commit-ID: KmREmRtFHDQ

--HG--
extra : rebase_source : 2cdbff09659aaac1bbf25299857ed50075e2fd81
2017-01-05 16:42:26 -08:00
Dustin J. Mitchell
95fa01ecd9 Bug 1316749: use taskcluster-proxy to hit index for docker image optimization; r=jonasfj
MozReview-Commit-ID: 9AL7HhBdjE1

--HG--
extra : rebase_source : 5f7c02500f6243086585ccc9ecbe65c9de24d14d
2016-12-31 09:40:50 -05:00
Jarda Snajdr
53fd6f6e23 Bug 1328553 - Part 2: Add a netmonitor.requestsFinished timing to DAMP tests r=jryans
MozReview-Commit-ID: 1v7yIUfEwan

--HG--
extra : rebase_source : 9092bea6ac3d59952b07b316450709597f180e61
2017-01-04 11:15:12 +01:00
Jarda Snajdr
23dbd28f5f Bug 1328553 - Part 1: Add a method to NetmonitorController that waits for requests to finish r=jryans
MozReview-Commit-ID: IP18VjUaYCk

--HG--
extra : rebase_source : 3767c3c2a7dfd781fdeb5d30090e777b707c6b14
2017-01-04 11:14:22 +01:00
Andreas Tolfsen
180328b651 Bug 1326534 - Rename sessionCapabilities variable for brevity; r=whimboo
MozReview-Commit-ID: KGYk2CgwERy

--HG--
extra : rebase_source : b1090c3de72ae61696522c47849da269bea90fb8
2016-12-31 12:32:14 +00:00
Andreas Tolfsen
035850381f Bug 1326534 - Use session.Capabilities representation in listener; r=automatedtester
Capabilities are sent to the content frame script as a JSON blob.
We can re-parse that in the listener to make use of the same complex
object representation there.

Because the listener is comprised of a set of top-level functions and
not an object prototype, we cannot reuse the same pointer/getter trick
as in testing/marionette/driver.js.  However, we can change this later
when we do introduce more robust code organisation to this file.

MozReview-Commit-ID: 7PpholLqtF

--HG--
extra : rebase_source : 93b94678ac2184255b1c708103eb5cf44f9d2266
2016-12-31 12:30:49 +00:00
Andreas Tolfsen
2c29d0b5e6 Bug 1326534 - Reset session capabilities state on teardown; r=whimboo
This change resets the session ID after all other state has been cleared,
and also reinitialises `GeckoDriver#sessionCapabilities`, which was not
done before.

MozReview-Commit-ID: Jb40CXuX8h1

--HG--
extra : rebase_source : 226875ea929f0e7e471fe58499f76313fc60947e
2016-12-31 12:28:19 +00:00
Andreas Tolfsen
c67cbf8a8c Bug 1326534 - Deploy WebDriver conforming capabilities in Marionette; r=automatedtester,maja_zf,whimboo
This change removes session capability processing
from testing/marionette/driver.js and replaces it with
testing/marionette/session.js and `session.Capabilities`.

Session timeout durations used to be stored in properties
exposed directly on the `GeckoDriver` prototype, but these are now
represented by `GeckoDriver#timeouts`, which is a pointer (getter) of
`GeckoDriver#sessionCapabilities#timeouts`.  The same is true for other
session-scoped state.

Since capabilities parsing is not unique to starting a new session,
the errors thrown by `session.Capabilities.fromJSON` are re-thrown
in `GeckoDriver#newSession` since it is required that we return a
`SessionNotCreatedError` on parsing them during session creation.

MozReview-Commit-ID: I3Xu2v71n4S

--HG--
extra : rebase_source : 40cef31adf238bef021a7c7c2713016a34f35920
2016-12-31 12:27:13 +00:00
Andreas Tolfsen
c276b917c4 Bug 1326534 - Rewrite capabilities parsing in Marionette; r=automatedtester
This patch provides a (nearly) WebDriver conforming implementation
of capabilities in Marionette.  The work remaining is pending further
clarification in the specification.

Capabilities are represented internally as a complex object provided
by `session.Capabilities`.  Timeouts and proxy configuration are also
represented by the similar complex objects `session.Timeouts` and
`session.Proxy`, respectively.

The capabilities stored in `GeckoDriver#sessionCapabilities` are the
result of parsing user-provided desired- and required capabilities.
WebDriver now uses `firstMatch` and `alwaysMatch` primitives for
capabilities, but as this is considered a wider breaking change, the
move to these primitives will be done at a later stage.  It’s prudent
to point out that the base techniques used with the new primitives
are similar to those implemented for `desiredCapabilities` and
`requiredCapabilities` in this patch, and that the work needed to adapt
them is considered trivial.

When capabilities are presented back to the user (the so called processed
capabilities), we call the `toJSON` implementation on the complex objects.
`session.Capabilities#toJSON` calls the internal function `marshal`
which ensures empty fields are dropped.  `marshal` can be considered to
be a specialisation of the standard library `JSON.stringify`, which also
calls `toJSON` on entry values if they provide this function.

The changeset overall also provides a much deeper level of testing of
WebDriver capabilities.

MozReview-Commit-ID: 97xGt3cnMys

--HG--
extra : rebase_source : 98e0bde3fdfd811775d195b488cb1255f61e5772
2016-12-31 12:21:34 +00:00
Andreas Tolfsen
0a79a38232 Bug 1326534 - Correct capability wrapping in tests; r=automatedtester
Capabilities should be sent in either a `desiredCapabilities` or a
`requiredCapabilities` block inside `capabilities`:

	{capabilities: {requiredCapabilities: {acceptInsecureCerts: true}}}

Marionette currently accepts capabilities in the top-level dictionary,
but this is not conforming to the WebDriver.

MozReview-Commit-ID: 9JWjvPKBp6S

--HG--
extra : rebase_source : 88a12dcba275d6eedc5640bd3a0033b6dbd1d86d
2016-12-30 14:12:53 +00:00
Andreas Tolfsen
b2889c31fc Bug 1326534 - Propagate stacktraces for WebDriver errors; r=automatedtester
When we currently create new WebDriver errors we throw away the stacktrace
generated by `WebDriverError`'s prototype, `Error`.  This change stores
the stacktrace, which will cause it to be serialised and returned to
the client.

This change is not as valuable as storing the stacktraces of internal
errors, but brings symmetry to our error handling and may be useful if
only to navigate to the source of an error.

MozReview-Commit-ID: LCFMwKxxcTp

--HG--
extra : rebase_source : 56947805f29000a64c2daef0fd774ea90330c09e
2016-12-30 13:07:54 +00:00
Andreas Tolfsen
9a4394f2c5 Bug 1326534 - Lint a few statements in driver.js; r=automatedtester
No functional changes.

MozReview-Commit-ID: FP9p9tPr8Ce

--HG--
extra : rebase_source : fb3e43203b417b119df2c0975c15aa95c1b16408
2016-12-30 12:43:36 +00:00
Andreas Tolfsen
52426eb1ab Bug 1326534 - Add assert.in for own properties; r=automatedtester
The implementation of the new library function `assert.in` is analogous
to Python's `unittest.TestCase.assertIn`.

MozReview-Commit-ID: 1pjS9ttPXgo

--HG--
extra : rebase_source : 3f4121226d65f127fdf0c990915483659f3a7f93
2016-12-30 11:39:22 +00:00
Andreas Tolfsen
4a5f5aabaf Bug 1326534 - Add test for assert.array; r=automatedtester
MozReview-Commit-ID: IWUnhCgPp1R

--HG--
extra : rebase_source : 4cc54031f9e34cf210229bcd394747e4bafcbd8f
2016-12-30 11:30:05 +00:00
Andreas Tolfsen
a35ff231b0 Bug 1326534 - Preserve stacks when passing error protos to WebDriverError; r=automatedtester
The `stack` argument to `WebDriverError` has never been in use.  Following
the API of the `Error` prototype, this changes its constructor to take
one argument which can either be a string of an `Error`.

When internal errors are thrown in Marionette, they are usually
wrapped in `WebDriverError` but we currently lose track of its stack.
This preserves the wrapped error's stacktrace by setting the `stack`
property.  Practice have found that they are very useful to return to
the client, as they are currently only printed to stdout.

MozReview-Commit-ID: 9sTdP4TntIc

--HG--
extra : rebase_source : f14197a1c8700215ce3d0edc7078c9f568b80ec4
2016-12-30 11:26:30 +00:00
Andreas Tolfsen
de884b68a6 Bug 1326534 - Exclude array and null from being counted as objects; r=automatedtester
Calling `typeof` on arrays or null in JavaScript returns `"object"`,
and a safer check is to rely on `Object.prototype.toString`.

MozReview-Commit-ID: 5VxXf2ByoEx

--HG--
extra : rebase_source : 4d1fe95a75343964836e670d0ceffa6ce680e390
2016-12-30 11:21:27 +00:00
Andreas Tolfsen
c8b477dd83 Bug 1326534 - Correct tests for mandated and supported capabilities; r=automatedtester
MozReview-Commit-ID: 932AoNlBtwt

--HG--
extra : rebase_source : b2baf4ad234d63e8fbc146ce202319cd35f50395
2016-12-20 15:01:18 +00:00
Sylvestre Ledru
33bf059a2e Bug 1329201 - Remove check-moz-style from m-c r=Ms2ger
MozReview-Commit-ID: 4uG6uEyMN7w

--HG--
extra : rebase_source : 0edf02bb458c687c696508b7d2df39ada51f73d4
2017-01-06 16:17:45 +01:00
Jared Wein
f64146d9d7 Bug 1329014 - Enable the no-extra-bind rule and use eslint --fix to autofix the errors. r=standard8
MozReview-Commit-ID: BwK94W2mHXS

--HG--
extra : rebase_source : a905658829084d3a4018df81f51bb210ef1e645b
2017-01-05 16:43:29 -05:00
James Graham
5f011d137e Bug 1328823 - Bump mozprocess version number to 0.24 for release, r=ahal
MozReview-Commit-ID: 251xwdA7rxc

--HG--
extra : rebase_source : 2662ed18044da7173eaaeca941c0e72b3f9ba089
2017-01-06 15:39:55 +00:00
cku
790cfd8462 Bug 1273807 - mask-position and mask-size animation test cases. r=heycam
mask-*-1a.html: test cases for indirect mask painting.(nsDisplayMask::PaintAsLayer)
mask-*-1b.html: test cases for painting mask on mask layer.(nsDisplayMask::PaintMask)

MozReview-Commit-ID: K9BK4MlnpBE

--HG--
extra : rebase_source : 968bc221e28cd9c60927526ee719c0ceffeeab18
2017-01-04 16:43:25 +08:00
Iris Hsiao
7e248d8cc9 Merge mozilla-central to autoland 2017-01-06 11:13:22 -05:00
Iris Hsiao
7adb57a57f merge autoland to mozilla-central a=merge 2017-01-06 11:06:17 -05:00
Iris Hsiao
1e82e8d079 merge mozilla-inbound to mozilla-central a=merge 2017-01-06 10:59:19 -05:00
ffxbld
68a729dd6b No bug, Automated blocklist update from host bld-linux64-spot-039 - a=blocklist-update 2017-01-06 07:23:27 -08:00
ffxbld
04434ca4a5 No bug, Automated HPKP preload list update from host bld-linux64-spot-039 - a=hpkp-update 2017-01-06 07:23:25 -08:00
ffxbld
0278abfdb1 No bug, Automated HSTS preload list update from host bld-linux64-spot-039 - a=hsts-update 2017-01-06 07:23:22 -08:00
Xidorn Quan
cddd3c28b2 Bug 1329076 followup - Fix bustage.
MozReview-Commit-ID: ESupMqRP4ff
2017-01-06 22:10:08 +11:00
Wes Kocher
0f254a30d6 Merge inbound to central, a=merge
MozReview-Commit-ID: 1ij6nLf8f8s
2017-01-05 17:30:35 -08:00
Wes Kocher
33ad0c8ef8 Merge autoland to central, a=merge
MozReview-Commit-ID: FuAgy3YQ0De
2017-01-05 17:24:15 -08:00
Iris Hsiao
c3cda2a39a Backed out changeset 5ddb2e58bb74 (bug 1287099) 2017-01-05 12:21:35 -05:00
Iris Hsiao
8ca3b2dc24 Backed out changeset 724fdfe8f396 (bug 1324870) 2017-01-05 12:21:31 -05:00