Commit Graph

599535 Commits

Author SHA1 Message Date
Francois Marier
e0fce2a920 Bug 1434206 - Keep LookupResult objects in smart pointers. r=gcp
Replace raw pointers to LookupResult with RefPtrs and eplace the
nsAutoPtr objects + raw pointers params with UniquePtrs.

Also remove unnecessarily paranoid OOM checks when creating single
LookupResult objects since those are pretty small.

MozReview-Commit-ID: G85RNnAat6H

--HG--
extra : rebase_source : a8f6a1ff1e24663d428c8d894cb624e1c67e1bd3
2018-06-05 13:15:03 -07:00
Justin Wood
f206f89f53 Bug 1466222 - Drop unused config upload_branch. r=catlee
for "Cleanup l10n mozharness config files." (Batch 2)

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

--HG--
extra : source : 18fe0eb0545cfa2b5809289dbd34e00841a5f41e
2018-06-05 15:21:50 -04:00
Justin Wood
0a8a1bab1e Bug 1466222 - Remove locales_file and locales_platform from desktop and mobile l10n. r=catlee
Leave support for multil10n uses for now.

for "Cleanup l10n mozharness config files." (Batch 2)

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

--HG--
extra : source : bb28c2d9d5f51f6e7eb797b892247948f1f7021b
2018-06-05 12:58:00 -04:00
Paolo Amadini
ae2cc7ca99 Bug 1467713 - Part 4 - Replace "var" with "let" and remove the parameter prefix. r=jaws
MozReview-Commit-ID: 61k7xS2MlKr

--HG--
extra : rebase_source : 32cddf29916beff5e03abf9dc599890fd08b3fe3
2018-06-05 17:30:43 +01:00
Justin Wood
bd18f9d692 Bug 1466222 - Clean out actions from multi-locale that are not used. r=catlee
for "Cleanup l10n mozharness config files." (Batch 2)

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

--HG--
extra : source : 38d7f885284ebda6d92abb9d6b1f45e540770bbf
2018-06-05 11:57:52 -04:00
Paolo Amadini
367e78dac1 Bug 1467713 - Part 3 - Remove the unused setOrigin function. r=jaws
MozReview-Commit-ID: 3CpU7zY9JFJ

--HG--
extra : rebase_source : 68e6e3fd56a0f8c48ceeffa27f8ecf72f5256378
2018-06-05 15:27:24 +01:00
Paolo Amadini
f1f4ef76c6 Bug 1467713 - Part 2 - Reorder "permissions.js" to match "sitePermissions.js". r=jaws
Reordering the functions makes it easier to port the implementation across the files and merge them eventually.

MozReview-Commit-ID: EkVbTA0YEQ5

--HG--
extra : rebase_source : 160157df7aaebf502449a9daf1b7dbfc9195aa41
2018-06-05 15:26:14 +01:00
Paolo Amadini
e895567b26 Bug 1467713 - Part 1 - Rename functions in "permissions.js" to match "sitePermissions.js". r=jaws
MozReview-Commit-ID: KeF5mcVvVHl

--HG--
extra : rebase_source : 39ef7ada1138a3bc3c87e20fca958aa26c7fff95
2018-06-05 15:12:39 +01:00
Jan de Mooij
ce132119dd Bug 1466121 part 7 - Split Compartment-inl.h from Realm-inl.h. r=luke
--HG--
rename : js/src/vm/Realm-inl.h => js/src/vm/Compartment-inl.h
2018-06-08 16:16:21 +02:00
Jan de Mooij
04a3651fe2 Bug 1466121 part 6 - Split Compartment.cpp from Realm.cpp. r=luke
--HG--
rename : js/src/vm/Realm.cpp => js/src/vm/Compartment.cpp
2018-06-08 16:16:20 +02:00
Jan de Mooij
b41618f3b1 Bug 1466121 part 5 - Split Compartment.h from Realm.h. r=luke
--HG--
rename : js/src/vm/Realm.h => js/src/vm/Compartment.h
2018-06-08 16:16:19 +02:00
Jan de Mooij
9c6c88908e Bug 1466121 part 4 - Rename vm/JSCompartment* to vm/Realm*. r=luke
--HG--
rename : js/src/vm/JSCompartment-inl.h => js/src/vm/Realm-inl.h
rename : js/src/vm/JSCompartment.cpp => js/src/vm/Realm.cpp
rename : js/src/vm/JSCompartment.h => js/src/vm/Realm.h
2018-06-08 16:16:19 +02:00
Jan de Mooij
be7b2f64ad Bug 1466121 part 3 - Merge Realm.cpp into JSCompartment.cpp to simplify later patches. r=luke 2018-06-08 16:16:18 +02:00
Dorel Luca
15a5c575ac Backed out changeset b664f1fdec85 (bug 1467536) for build bustage 2018-06-08 16:22:47 +03:00
Mantaroh Yoshinaga
9f852ee8b4 Bug 1467679 - Clear the devtools.toolbox.host value if this value is unexpected. rgl
Bug 1192642 introduced new host type. If updating to this version, previous
preference value will be unexpected. This patch will restore this preference to
default value if this pref is unexpected value.

MozReview-Commit-ID: LO3R6fFHWh6
2018-06-08 13:18:54 +09:00
Ben Hearsum
28c93d33d4 bug 1455061: upgrade update verify and funsize update generator docker images to newer ubuntu to get latest python. r=sfraser
--HG--
extra : transplant_source : %F1b%CD%E5%BB%ACE%B1%CD%F0%F9%08hn%B9%A9%90%28%95%1B
2018-06-08 09:08:32 -04:00
Emilio Cobos Álvarez
da289eeb40 Bug 1467536: followup: Use a more specific capture for the lambda. r=xidorn
MozReview-Commit-ID: 8ykWCzCO0yw
2018-06-08 15:07:19 +02:00
Gabriel Luong
24c0e82364 Bug 1467564 - Only show the 3 pane tooltip in release or beta. r=pbro 2018-06-08 08:51:59 -04:00
Justin Wood
b45b08d319 Bug 1466222 - Cleanup handling of en_us_binary_url. r=catlee
for "Cleanup l10n mozharness config files." (Batch 2)

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

--HG--
extra : source : 0970518ff4bd11538f784d66c1e5a3631eabccc8
2018-06-04 20:52:46 -04:00
Justin Wood
acd740c287 Bug 1466222 - Remove a bunch of unused l10n config files. r=catlee
for "Cleanup l10n mozharness config files." (Batch 2)

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

--HG--
extra : source : c71a6be37cfcca8da7e32da37ac09db8092d2f92
2018-06-04 20:25:26 -04:00
Justin Wood
12a031341f Bug 1466222 - pyflake locales.py r=catlee
for "Cleanup l10n mozharness config files." (Batch 2)

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

--HG--
extra : source : 507fe13a38673cdafc0156ff5ab6baed653a5725
2018-06-04 15:29:05 -04:00
Justin Wood
5754718259 Bug 1466222 - hashType is unsued r=catlee
for "Cleanup l10n mozharness config files." (Batch 2)

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

--HG--
extra : source : 3c9e951bdc9e8363bef4df270d0ef01761139cec
2018-06-04 14:25:34 -04:00
Justin Wood
c3eb2b8e1c Bug 1466222 - there is no longer a funsize_props action. r=catlee
for "Cleanup l10n mozharness config files." (Batch 2)

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

--HG--
extra : source : 259365b927a79ef4ec111239e0433c6eff25ad09
2018-06-04 14:25:06 -04:00
Justin Wood
5d2e106c9a Bug 1466222 - buildid_section and buildid_option are now unused. r=catlee
for "Cleanup l10n mozharness config files." (Batch 2)

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

--HG--
extra : source : 705e5e28693b41ca69b679f89ed8bf95b858d454
2018-06-04 14:24:09 -04:00
Justin Wood
593f57f10c Bug 1466222 - application_ini is unused. r=catlee
for "Cleanup l10n mozharness config files." (Batch 2)

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

--HG--
extra : source : 7b9f759f30fc98811987c3e530bc20caf0006b71
2018-06-04 14:23:00 -04:00
Justin Wood
e0c508c9c3 Bug 1466222 - _mar_dir is unsued r=catlee
for "Cleanup l10n mozharness config files." (Batch 2)

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

--HG--
extra : source : b50f13740021c69b8b118eca766671878a7142ab
2018-06-04 14:16:51 -04:00
Justin Wood
ead1c19da1 Bug 1466222 - Drop some unused runtime config tokens. r=catlee
for "Cleanup l10n mozharness config files." (Batch 2)

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

--HG--
extra : source : 7cf0da1e476bcbc7370c06cee3adc8ec1083a0ef
2018-06-04 14:08:56 -04:00
Justin Wood
eb0ea0288d Bug 1466222 - Noqa the pythonpath magic to avoid warnings about module imports not being first r=catlee
for "Cleanup l10n mozharness config files." (Batch 2)

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

--HG--
extra : source : 9250705be918a4e8a9ee35e353f42c048d5f1a15
2018-06-04 14:04:35 -04:00
Coroiu Cristina
8c5dff3ef1 Backed out 15 changesets (bug 1466222) for breaking android nightly a=backout
Backed out changeset 7bb7694f5d5d (bug 1466222)
Backed out changeset 185a82778d94 (bug 1466222)
Backed out changeset 18fe0eb0545c (bug 1466222)
Backed out changeset bb28c2d9d5f5 (bug 1466222)
Backed out changeset 38d7f885284e (bug 1466222)
Backed out changeset 0970518ff4bd (bug 1466222)
Backed out changeset c71a6be37cfc (bug 1466222)
Backed out changeset 507fe13a3867 (bug 1466222)
Backed out changeset 3c9e951bdc9e (bug 1466222)
Backed out changeset 259365b927a7 (bug 1466222)
Backed out changeset 705e5e28693b (bug 1466222)
Backed out changeset 7b9f759f30fc (bug 1466222)
Backed out changeset b50f13740021 (bug 1466222)
Backed out changeset 7cf0da1e476b (bug 1466222)
Backed out changeset 9250705be918 (bug 1466222)
2018-06-07 14:37:40 +03:00
Coroiu Cristina
d2f82e1f42 Merge inbound to mozilla-central a=merge 2018-06-07 12:47:31 +03:00
Francesco Lodolo (:flod)
fe5f3fd914 Bug 1467377 - Fix typos in Intl and L10n documentation r=gandalf
MozReview-Commit-ID: 9zP6j7COEiJ

--HG--
extra : rebase_source : 35b44964d38f53f62522d0709b18d7dfa1ca8a9a
2018-06-07 08:20:49 +02:00
Cosmin Sabou
18d0742c9b Backed out 3 changesets (bug 1451859) for causing Spidermonkey bustages on Linux x64 opt.
Backed out changeset 8f5a9e18e953 (bug 1451859)
Backed out changeset 950fa584ec8e (bug 1451859)
Backed out changeset f1f42726f1ec (bug 1451859)
2018-06-07 09:10:35 +03:00
Ryan VanderMeulen
5ace5c75d1 Merge m-c to inbound. a=merge 2018-06-06 21:08:22 -04:00
Ryan VanderMeulen
4aef6ab351 Backed out changeset a4465713555b (bug 1460989) for causing the Galaxy S8 crash rate to spike. 2018-06-06 21:07:48 -04:00
Bogdan Tara
21828f67fa Backed out changeset 99f438f07d89 (bug 1452445) for es lint failure on head_urlclassifier.js:440 CLOSED TREE 2018-06-07 01:46:07 +03:00
Ted Campbell
2391661c6a Bug 1459754 - Fix missing property IC for uncacheable proto case. r=mgaudet 2018-06-06 18:12:43 -04:00
Dan Glastonbury
367e64f0d4 Bug 1465307 - P4: Enable disabled dom/smil lighting_color tests. r=xidorn
Enable tests disabled in Bug 1457353.

MozReview-Commit-ID: Ctx9bgt9tlK

--HG--
extra : rebase_source : c319f91f4db7c4f0f5146c00760b015802be9e32
2018-06-05 14:36:20 +10:00
Dan Glastonbury
a7c3c83d93 Bug 1465307 - P3: Extract {animated,computed}::Color common parts. r=xidorn
Extract the common parts of `animated::Color` and `computed::Color` out
into `generics::color::Color<T>` that is generic over the type of
RGBA color.

MozReview-Commit-ID: EymSr7aqnAP

--HG--
extra : rebase_source : fb4afe83fc9ab5167ef5d9ecd55cbbb0d3ea8c1d
2018-06-05 11:49:51 +10:00
Dan Glastonbury
81d488f721 Bug 1465307 - P2: Fix nsStyleBorder::mBorderColor for GCC. r=xidorn
GCC doesn't like StyleComplexColor with constructor in an anonymous
struct in an anonymous union.  Replace the use of a union to access
`mBorder[..]Color` fields as an array with an accessor methods.

MozReview-Commit-ID: 1Wulh1qKYCZ

--HG--
extra : rebase_source : 390b8f852d144a54d9d374bcf3ae70ab6d145d50
2018-06-05 11:24:12 +10:00
David Keeler
d4901f4908 bug 1466942 - avoid l10n string bundles in nsNSSComponent initialization r=fkiefer
Before this patch, nsNSSComponent initialization would call PK11_ConfigurePKCS11
with some localized strings, which contributed to startup time. Also,
PK11_UnconfigurePKCS11 was never called, so the memory allocated to these
strings would stick around forever. This patch addresses both of these problems
by not calling PK11_ConfigurePKCS11. This means that some properties of NSS'
internal "PKCS#11 slots/tokens" have to be localized when displaying them to the
user.

MozReview-Commit-ID: BbAgbgpFfFG

--HG--
extra : rebase_source : b633da8fea683675d0c0514a378954332afeb024
2018-06-04 17:07:06 -07:00
Zibi Braniecki
a3bf95f8ee Bug 1450781 - Enable pseudolocalization in Fluent. r=mossop
MozReview-Commit-ID: Cs8OubRRur4

--HG--
extra : rebase_source : 10f2ff4983d0785278a030d134a41582e4714f71
2018-06-01 12:37:13 -07:00
Brian Stack
3672e158f8 Bug 1465117 - Add additional options to backfilling action task r=dustin,jmaher
MozReview-Commit-ID: FMGjhQbg4im

--HG--
extra : rebase_source : a03e351836c7356c6912af85be9108921e50aabd
2018-06-01 16:44:16 -07:00
Gurzau Raul
53a10471cf Backed out 2 changesets (bug 1460777) for Toolchains failure on a CLOSED TREE
Backed out changeset 52ef9348401d (bug 1460777)
Backed out changeset 60ed097650b8 (bug 1460777)
2018-06-06 20:57:29 +03:00
Narcis Beleuzu
7fdbc8641e Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-06-06 20:04:08 +03:00
Narcis Beleuzu
cf464eabfe Merge inbound to mozilla-central. a=merge 2018-06-06 20:00:09 +03:00
Gregory Szorc
2f189264b9 Bug 1460777 - Taskgraph tasks for retrieving remote content; r=dustin,glandium
Currently, many tasks fetch content from the Internets. A problem with
that is fetching from the Internets is unreliable: servers may have
outages or be slow; content may disappear or change out from under us.

The unreliability of 3rd party services poses a risk to Firefox CI.
If services aren't available, we could potentially not run some CI tasks.
In the worst case, we might not be able to release Firefox. That would
be bad. In fact, as I write this, gmplib.org has been unavailable for
~24 hours and Firefox CI is unable to retrieve the GMP source code.
As a result, building GCC toolchains is failing.

A solution to this is to make tasks more hermetic by depending on
fewer network services (which by definition aren't reliable over time
and therefore introduce instability).

This commit attempts to mitigate some external service dependencies
by introducing the *fetch* task kind.

The primary goal of the *fetch* kind is to obtain remote content and
re-expose it as a task artifact. By making external content available
as a cached task artifact, we allow dependent tasks to consume this
content without touching the service originally providing that
content, thus eliminating a run-time dependency and making tasks more
hermetic and reproducible over time.

We introduce a single "fetch-url" "using" flavor to define tasks that
fetch single URLs and then re-expose that URL as an artifact. Powering
this is a new, minimal "fetch" Docker image that contains a
"fetch-content" Python script that does the work for us.

We have added tasks to fetch source archives used to build the GCC
toolchains.

Fetching remote content and re-exposing it as an artifact is not
very useful by itself: the value is in having tasks use those
artifacts.

We introduce a taskgraph transform that allows tasks to define an
array of "fetches." Each entry corresponds to the name of a "fetch"
task kind. When present, the corresponding "fetch" task is added as a
dependency. And the task ID and artifact path from that "fetch" task
is added to the MOZ_FETCHES environment variable of the task depending
on it. Our "fetch-content" script has a "task-artifacts"
sub-command that tasks can execute to perform retrieval of all
artifacts listed in MOZ_FETCHES.

To prove all of this works, the code for fetching dependencies when
building GCC toolchains has been updated to use `fetch-content`. The
now-unused legacy code has been deleted.

This commit improves the reliability and efficiency of GCC toolchain
tasks. Dependencies now all come from task artifacts and should always
be available in the common case. In addition, `fetch-content` downloads
and extracts files concurrently. This makes it faster than the serial
application which we were previously using.

There are some things I don't like about this commit.

First, a new Docker image and Python script for downloading URLs feels
a bit heavyweight. The Docker image is definitely overkill as things
stand. I can eventually justify it because I want to implement support
for fetching and repackaging VCS repositories and for caching Debian
packages. These will require more packages than what I'm comfortable
installing on the base Debian image, therefore justifying a dedicated
image.

The `fetch-content static-url` sub-command could definitely be
implemented as a shell script. But Python is readily available and
is more pleasant to maintain than shell, so I wrote it in Python.

`fetch-content task-artifacts` is more advanced and writing it in
Python is more justified, IMO. FWIW, the script is Python 3 only,
which conveniently gives us access to `concurrent.futures`, which
facilitates concurrent download.

`fetch-content` also duplicates functionality found elsewhere.
generic-worker's task payload supports a "mounts" feature which
facilitates downloading remote content, including from a task
artifact. However, this feature doesn't exist on docker-worker.
So we have to implement downloading inside the task rather than
at the worker level. I concede that if all workers had generic-worker's
"mounts" feature and supported concurrent download, `fetch-content`
wouldn't need to exist.

`fetch-content` also duplicates functionality of
`mach artifact toolchain`. I probably could have used
`mach artifact toolchain` instead of writing
`fetch-content task-artifacts`. However, I didn't want to introduce
the requirement of a VCS checkout. `mach artifact toolchain` has its
origins in providing a feature to the build system. And "fetching
artifacts from tasks" is a more generic feature than that. I think
it should be implemented as a generic feature and not something that is
"toolchain" specific.

I think the best place for a generic "fetch content" feature is in
the worker, where content can be defined in the task payload. But as
explained above, that feature isn't universally available. The next
best place is probably run-task. run-task already performs generic,
very-early task preparation steps, such as performing a VCS checkout.
I would like to fold `fetch-content` into run-task and make it all
driven by environment variables. But run-task is currently Python 2
and achieving concurrency would involve a bit of programming (or
adding package dependencies). I may very well port run-task to Python
3 and then fold fetch-content into it. Or maybe we leave
`fetch-content` as a standalone script.

MozReview-Commit-ID: AGuTcwNcNJR

--HG--
extra : rebase_source : 4918b8c3bac53d63665006802054038bfbca0314
2018-06-06 09:37:38 -07:00
Xidorn Quan
ff13ff5adf Bug 1423017 - Add a telemetry for out-of-reach overflowing on root. r=botond
MozReview-Commit-ID: 2CyZTVBFP59

--HG--
extra : rebase_source : 03dad8df39872eb36306df0767134e8219fcd76e
2018-06-01 15:35:32 +10:00
Henrik Skupin
7360e1e278 Bug 1467743 - [marionette] Handle errors for nested promise in dispatchPointerMove. r=ato
Because the nested promise doesn't use the "catch()" method a
possible raised error by its code is not handled, and will
cause the outer promise never to resolve, which results in an
infinite hang.

MozReview-Commit-ID: 1MFyKpmOjYz

--HG--
extra : rebase_source : 5bcbb03a3e9356faf610135b92ecb89e946cd2ed
2018-06-08 13:11:30 +02:00
Henrik Skupin
f7ec8e6830 Bug 1467509 - [marionette] Update execute_script command in interactive tutorial. r=whimboo, a=doc
MozReview-Commit-ID: 5T2MQUoeKJF

--HG--
extra : rebase_source : af73f7104d2f431596c7060ec9c7d97b760e6c20
2018-06-08 15:52:15 +02:00
Henrik Skupin
6a4508cf7e Bug 1467368 - Fix Marionette Introduction documentation for clickable links. r=whimboo, a=doc
MozReview-Commit-ID: JlW0MxshtrW

--HG--
extra : rebase_source : c845ffbc02f7c1851d2682fafd864229cb249c95
2018-06-08 15:32:33 +02:00