Commit Graph

599535 Commits

Author SHA1 Message Date
Kartikaya Gupta
710f53760a Bug 1438752 - Summary: Wait for an APZ flush before scrolling to avoid race condition in test. r=rhunt
Differential Revision: https://phabricator.services.mozilla.com/D1585
2018-06-07 21:01:45 +00:00
Gregory Szorc
6026d2721c Bug 1467605 - Disable processing of fetch dependencies; r=glandium
90dca0906337 accidentally broke `mach artifact toolchain --from-build`
because that code is attempting to load toolchain tasks in isolation.
The new "use_fetches" transform added to toolchain tasks requires
that "fetch" tasks are already processed and their references are
available to toolchain tasks.

This commit adds a mechanism to effectively disable the "use_fetches"
transform when called by `mach artifact toolchain`. It is a hack. I
suspect future planned work around artifacts/fetches will necessitate
additional changes to the `mach artifact toolchain` code. But this
can be deferred to a later day: this commit unbusts `mach artifact
toolchain` and isn't super hacky, so it seems more reasonable than
backing out fetch tasks completely.

Differential Revision: https://phabricator.services.mozilla.com/D1588
2018-06-07 23:05:58 +00:00
Jeff Walden
784f62bdc2 Bug 1466928 - Make mozilla::SmallPointerArray compatible with the C++ object model. r=froydnj
--HG--
extra : rebase_source : e803add704e25f981bd8609405fc6f2967f40b05
2018-06-07 03:53:54 -07:00
Jeff Walden
d3152e159d Bug 1467336 - Move regular expression literal tokenizing into its own function. r=arai
--HG--
extra : rebase_source : 341584683b866dd4dcd7c217d378a4211e30e239
2018-06-07 22:47:28 -07:00
Jeff Walden
06c657eee3 Bug 1467336 - Process the code units comprising regular expression literals in a manner that optimizes the pure-ASCII case. r=arai
--HG--
extra : rebase_source : 2a44776b1e5d2bc7bd66a6f773964636aca48276
2018-06-07 03:24:04 -07:00
Jeff Walden
f7961e0fe2 Bug 1467336 - Introduce code to bifurcate handling of arbitrary-code-point getting in the tokenizer to distinctly and separately handle ASCII and non-ASCII code points. r=arai
--HG--
extra : rebase_source : 455de737b65fd2c0c42da8e1fe2619f25599d344
2018-06-07 03:01:38 -07:00
Jeff Walden
c55625cdec Bug 1467336 - Implement mozilla::IsAscii to detect pure ASCII characters. r=froydnj
--HG--
extra : rebase_source : 1f6de2745234766d676178bdeafb9b82e48e51b5
2018-06-07 02:17:10 -07:00
Jeff Walden
24d6bcee93 Bug 1467336 - Rename TokenStreamSpecific::matchChar to TokenStreamCharsBase::matchCodeUnit to clarify its unit-matching nature. r=arai
--HG--
extra : rebase_source : b3859a50b46f96f356edbb254a27b8416261f1c9
2018-06-07 02:16:57 -07:00
Jeff Walden
e9e010d389 Bug 1467336 - Add TokenStreamChars::getCodePoint and use it in one trivial place. r=arai
--HG--
extra : rebase_source : c0f97e9f740be3ee4bbdb9623c893067e7c1aa03
2018-06-07 02:16:32 -07:00
Jeff Walden
1a12745c61 Bug 1467336 - Rename ungetCharIgnoreEOL to ungetCodeUnit. r=arai
--HG--
extra : rebase_source : fa0464982bd463838f9c6b8d1eb388b55f2e583e
2018-06-07 02:16:07 -07:00
Jeff Walden
b1a37599da Bug 1467336 - Rename getCharIgnoreEOL to getCodeUnit to better indicate that's all it does. r=arai
--HG--
extra : rebase_source : d34c4019170e78a0d5170e346fbe920884442cb9
2018-06-07 02:15:41 -07:00
Jeff Walden
800f6db11a Bug 1467335 - Add an assertion to ungetCharIgnoreEOL that the EOF-flag has been set if EOF is being returned. r=arai
--HG--
extra : rebase_source : 233d673d307bb42d6e5b73f1cc246af4c740fe82
2018-06-07 02:13:49 -07:00
Jeff Walden
fbabc3fea0 Bug 1467334 - Make TokenStreamAnyChars::isExprEnding a well-documented array of bool, zero-initialize it using a member initializer, then overwrite its few true elements in the constructor body. r=arai
--HG--
extra : rebase_source : 68db8c022f6a89b2db14bb2e2cdda08d757445ac
2018-06-07 02:13:11 -07:00
Rick Waldron
5aaabbfc99 Bug 1457560 - Expose $262.agent.monotonicNow() for Test262 use in testing Atomic operation timeouts. r=jwalden
--HG--
extra : rebase_source : 6387145a06988112cadde2855bc69d2982f1e33a
2018-06-06 22:21:34 -07:00
Jeff Walden
799a518e22 Bug 745089 - Replace nscoord-specific positive-infinity/is-nan primitives with FloatingPoint.h uses. r=dbaron
--HG--
extra : rebase_source : bcc17dc96be6449116cf26c772a020d3eddd2bd3
2018-06-06 16:03:48 -07:00
Jeff Walden
701bad47cd Bug 1438212 - Implement mozilla::IsFloat32Representable using an algorithm that handles NaN correctly and doesn't sometimes invoke undefined behavior. r=froydnj
--HG--
extra : rebase_source : b4246ea818046b1e4100b90a3a371a866ea2b098
2018-06-06 16:03:47 -07:00
Jeff Walden
7bbef1fafc Bug 1465981 - Use memcpy instead of union-arm-punning (which has implementation-defined, desired behavior with gcc and presumably clang, and is not known to have problems on MSVC, but potentially could with other compilers) in BitwiseCast. r=froydnj
--HG--
extra : rebase_source : 686363576c84710ae0181afc32b05dee8b40a59b
2018-06-06 16:03:47 -07:00
Andreea Pavel
6efbfd2a22 Backed out changeset 88c929206539 (bug 1467071) for failing wpt at /_mozilla/wasm/jsapi.js.html on a CLOSED TREE 2018-06-08 07:03:17 +03:00
Julian Seward
a8cfabf7b6 Bug 1467071 - Wasm: import embedding_limits "limits.js" test and fix any resulting failures. r=lth.
The WebAssembly Specification, branch [1] (see also, more generally,
comments in [2]), contains a new test, limits.js, to check whether the
generally agreed embedding limits (numbers of functions, imports, etc) are
observed.  This bug is to import the test and fix any resulting breakage
detected with it.

[1] https://github.com/WebAssembly/spec/tree/embedding_limits
[2] https://github.com/WebAssembly/spec/issues/607

* js/src/wasm/WasmBinaryConstants.h:
  - Added MaxTableMaximumLength as a counterpart to MaxTableInitialLength.
  - Split the constant group into two parts: spec-required, and those
    pertaining only to our own implementation.

* js/src/wasm/WasmJS.cpp  WasmTableObject::construct():
  - Update GetLimits call with correct max size bound

* js/src/wasm/WasmValidate.cpp  DecodeTableLimits():
  - Implement missing check for a Table's maximum size.

* js/src/jit-test/tests/wasm/import-export.js:
  js/src/jit-test/tests/wasm/spec/jsapi.js:
  - Update Table maximum size tests.  All tests trying to make a Table
    with more than 10,000,000 entries now throw instead of succeeding.

* js/src/jit-test/tests/wasm/spec/harness/wasm-module-builder.js:
  - Import minimal updates and bug fixes from [1], needed to make the
    new tests work.

* js/src/jit-test/tests/wasm/spec/limits.js
  - New file.  Derived from [1], with comments added to each test to show
    SM's compliance situation, and with two tests disabled.

--HG--
extra : rebase_source : a1f1ec730ecae22f2aa0f510c15ebc934489a1b3
2018-06-07 09:36:09 +02:00
Kris Maglione
1cd42622dd Bug 1464548: Fix linux32 xpcshell bustage. r=bustage
--HG--
extra : rebase_source : 2b2b530fad43fe9d340c75437fca39475e2f108f
2018-06-07 18:24:57 -07:00
Tooru Fujisawa
fc618ed15a Bug 1467052 - Use BindingName tag to distinguish between var and top-level function, instead of offset range. r=shu 2018-06-08 10:06:13 +09:00
Bianca Danforth
ffe0f97d49 Bug 1465707 - Add addon probes for Savant Shield study; r=rhelmer
When the study preference (shield.savant.enabled) is set to true, this will record:
* When an addon begins an install
* When an addon finishes an install
* When an addon is enabled
* When an addon is disabled
* When an addon begins an uninstall
* When an addon finishes an uninstall

MozReview-Commit-ID: J8LoBZVS5iL

--HG--
extra : rebase_source : da9715876a9f19c8655a74bd0558cb074788ada5
2018-06-06 03:34:13 -07:00
Ciure Andrei
25ae31a366 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-06-08 00:54:06 +03:00
Ciure Andrei
05605d68c4 Merge inbound to mozilla-central. a=merge 2018-06-08 00:50:18 +03:00
Ciure Andrei
ffa6cb75f4 Merge autoland to mozilla-central. a=merge 2018-06-08 00:47:58 +03:00
Ciure Andrei
e0538d334b Backed out 1 changesets (bug 1465117) for fix_task_dependencies not working as expected a=backout
Backed out changeset 3d3fe54d0cb6 (bug 1465117)
2018-06-08 00:00:20 +03:00
Randell Jesup
c0b25e1706 Bug 1395246: nullcheck DataChannel SendPacket calls, add some diagnostics r=drno 2018-06-07 15:26:25 -04:00
Honza Bambas
e5398fd8f8 Bug 1413868 - Only run the test on Windows. r=me on a CLOSED TREE 2018-06-07 14:58:34 -04:00
Simon Fraser
25d47ea71f Bug 1467456 Use correct hg repo in repo-update r=lguo
1. Updated hgrepo to work with mozilla-beta, mozilla-esr60 and project branches (just in case)
2. Presquashed commits, so we only submit one.
3. Replaced 'which' with 'command -v' to avoid future shellcheck issues.

Differential Revision: https://phabricator.services.mozilla.com/D1582
2018-06-07 17:55:50 +00:00
Andreea Pavel
412ea23300 Backed out 2 changesets (bug 1467278) gecko decision task failure, causing mass OSX intermittent failures on a CLOSED TREE
Backed out changeset 436a6ebd505e (bug 1467278)
Backed out changeset e0e3ad8c81ec (bug 1467278)
2018-06-07 21:58:45 +03:00
Kartikaya Gupta
829cd9912f Bug 1465935 - Handle another edge case with hit-testing inside fixed-pos items. r=mstange
Transforms are containing blocks for fixed-pos items, so if a fixed-pos
item is inside a scrolled transform, then it should use that scrollframe
as the scroll target for hit-testing. This patch handles this case for
WebRender by stashing the appropriate ASR on the nsDisplayFixedPosition
item and using it instead of the presShell's root scrollframe in this
scenario.

The patch also adds a mochitest (which is basically a mochitested
version of the reftest in fixed-pos-scrolled-clip-3.html, with a
hit-test check to ensure that it's hitting the right scrollframe).

MozReview-Commit-ID: 7YQAeOiMMuP

--HG--
extra : rebase_source : 8d1c89d0c03c3e7d9383d0731f65a327a2c11a8d
2018-06-07 13:06:33 -04:00
Kartikaya Gupta
9b664db1ff Bug 1465935 - Fix hit-testing for fixed-pos items inside iframes. r=mstange
Without this patch, the scrollId for display items inside a fixed-pos
item end as the ASR of the item. In the case of fixed-pos items that are
inside iframes, the ASR is the outer document's root scrollframe. This
means that e.g. wheel-scrolling while over a fixed-pos item inside an
iframe ends up scrolling the outer document's root scrollframe instead
of the iframe's root scrollframe.

In the non-WR codepath, there some APZ machinery that walks up in the
HitTestingTreeNode tree from the hit result, looking to see if that node
has a fixed-pos ancestor, and if so, uses the fixed-pos item's target
APZ as the real hit result. This machinery doesn't exist in WR, because
we don't use the HitTestingTreeNode tree for hit-testing in APZ.
Instead, we need to make sure that the item tag for those display items
already has the appropriate scrollid set.

This patch accomplishes this by introducing a new RAII class that is
pushed into the wr::DisplayListBuilder while we are building display
items inside a nsDisplayFixedPosition, and allows the desired scroll id to
be set on the hit-testing display items.

This behaviour is exercised by test_group_wheelevents, which can now be
enabled with this fix.

MozReview-Commit-ID: L2erPVzJeql

--HG--
extra : rebase_source : 1db630513cb1dc16d4e38649812e81f62c8da99c
2018-06-07 13:06:33 -04:00
Coroiu Cristina
c621276fbd Backed out changeset b08454f26dc5 (bug 1466539) for breaking the Android nightlies a=backout 2018-06-07 15:58:33 +03:00
Kris Maglione
670fc0f25f Bug 1464743: Restore extension child shutdown timeout. r=aswan
MozReview-Commit-ID: 8O6CgKsOwom

--HG--
extra : rebase_source : d956c911188fc12451ac6fe8491b9fe87f2d6677
extra : histedit_source : 34c2fc20b42be87651124bca0ebe4d1572321100
2018-06-06 12:43:26 -07:00
Mats Palmgren
e95647ed68 Bug 1467526 - Add a few MOZ_DIAGNOSTIC_ASSERT in nsLineBox::DeleteLineList to enforce our invariants better. r=emilio 2018-06-07 20:20:34 +02:00
David Major
1a8d574976 Bug 1467284 - Remove the now-unused BUILDER_NAME_PREFIX map. r=aki 2018-06-07 14:09:20 -04:00
Honza Bambas
eef37ac56e Bug 1413868. r=valentin 2018-06-07 13:56:16 -04:00
Eric Rahm
51f133db96 Bug 1467048 - Add a version of CorruptionCanary for statics. r=froydnj
This adds 'CorruptionCanaryForStatics', which as the name implies is suitable
for use in objects that are statically declared. It has a trivial destructor
which allows us to avoid the need for static constructors.

--HG--
extra : amend_source : 27f8eff9ead21fde9f5f5d17f16c322d2c995a27
2018-06-06 14:50:17 -07:00
Matthew Gaudet
9d8092fba3 Bug 1466189: followup patch to make discard stack unconditional r=jandem
--HG--
extra : rebase_source : bf19d39abb1ee0857ea73f72f1aa26f24ef1cf38
2018-06-07 11:25:02 -04:00
Kris Maglione
714319bf73 Bug 1467113: Save signedState in startup data. r=aswan
MozReview-Commit-ID: 5iIzy1qKS0P

--HG--
extra : rebase_source : 8849d2cc24a007051a3eeb0ed4cb8a415d71e74c
2018-06-06 13:50:19 -07:00
Kris Maglione
f4d72dda4a Bug 1465413: Fix mozAddonManager enable/disable API. r=aswan
MozReview-Commit-ID: 5jvCYFQEzrd

--HG--
extra : rebase_source : f14ccb173551be3f35ab6db783672394ca7286f3
2018-06-06 13:08:34 -07:00
Gabriel Luong
e18a43e435 Bug 1192642 - Add a left host type for the toolbox. r=pbro 2018-06-07 12:45:53 -04:00
Mats Palmgren
633c43f009 Bug 1467503 - Make it compile with --disable-accessibility again. r=surkov 2018-06-07 18:43:06 +02:00
Andrew Halberstadt
d19095947f Bug 1417920 - [python-test] Use a global pytest.ini configuration file, r=davehunt
This changes two config options:

pytest_classes = PyTest  # only classes that start with 'PyTest' will be considered tests (previously this was Test)
xfail_strict = true      # tests marked as xfail will cause pytest to return non-zero if they unexpectedly pass

MozReview-Commit-ID: DCWoDFbe6Mk

--HG--
extra : rebase_source : 9aa806e035d62d51bb338708396851c40f55ee00
2018-06-06 14:00:04 -04:00
Francesco Lodolo (:flod)
1a5f8dc284 Bug 1467515 - Update license text regarding English dictionary r=mhoye
MozReview-Commit-ID: 41fLan7dv3f

--HG--
extra : rebase_source : 5b9b5fee469914e2a373c9a90d929fa4e0bc78c4
2018-06-07 19:30:45 +02:00
Adam Gashlin
d696e09ca3 Bug 1458119: Part 2: Test session restore across Windows shutdown. r=Gijs,whimboo
When the Windows OS shuts down, we use a synchronous shutdown mechanism,
this exercises session save and restore in a unique way.

MozReview-Commit-ID: 6sCa3E2wmLY

--HG--
extra : rebase_source : 05014c26faa932165b03f922a63ec9576462bc67
2018-06-07 10:33:55 -07:00
David Walsh
34ffde80bf Bug 1466870 - Update Debugger Frontend v63 r=jdescottes 2018-06-06 09:09:14 -05:00
Ryan VanderMeulen
3147d6c01d Bug 1467121 - Upgrade to SQLite 3.24.0. r=mak
--HG--
extra : rebase_source : 49ce4fbcf40630655b96933fe44fb8b10432d8cb
2018-06-06 09:52:32 -04:00
Justin Wood
f8fc850b73 Bug 1466222 - Drop now-unused platform config variable. r=catlee
for "Cleanup l10n mozharness config files." (Batch 2)

Differential Revision: https://phabricator.services.mozilla.com/D1564

--HG--
extra : source : 7bb7694f5d5d78ae85291b22fff313e9d8e42eb1
2018-06-05 20:50:53 -04:00
Justin Wood
81b6d88493 Bug 1466222 - Don't allow mar_tools_url to be runtime configured. r=catlee
for "Cleanup l10n mozharness config files." (Batch 2)

Differential Revision: https://phabricator.services.mozilla.com/D1563

--HG--
extra : source : 185a82778d94271ed27b60f333e78859bc09605f
2018-06-05 20:47:38 -04:00