Commit Graph

578655 Commits

Author SHA1 Message Date
Dorel Luca
5985aa72cc Merge mozilla-central to mozilla-inbound r=merge 2018-01-26 05:50:11 +02:00
Dorel Luca
f8bc8becf5 Backed out changeset e00fb451089f (bug 1432763) for breaking nightly partial update generation a=backout 2018-01-26 03:53:42 +02:00
Dorel Luca
f0dfa23b9e Backed out changeset 804f26b2c6b8 (bug 1428698) for xpcshell failure on toolkit/mozapps/extensions/test/xpcshell/test_bug397778.js on a CLOSED TREE
--HG--
extra : amend_source : 0a86497ef3fed6c36a638ccc640d1eccbe14bce6
2018-01-26 03:43:51 +02:00
Gerald Squelart
0cde8e00c6 Bug 1419508 - Return early from CreateMaskLayer if there is no visible data - r=mattwoodrow
MozReview-Commit-ID: 9jWGXA2eGvv

--HG--
extra : rebase_source : 1e14c7baa20cd3441de7fa4b7b9c4de574121a24
2018-01-25 16:21:23 +11:00
Emilio Cobos Álvarez
09b3922d79 Bug 1432850: Look at the snapshots when invalidating due to stylesheet changes. r=bz
The selectorText test happens to pass right now because well, we don't implement
the setter yet[1], but would fail if we implemented an specific invalidation in
the way I'd have done it yesterday.

[1]: https://bugzilla.mozilla.org/show_bug.cgi?id=37468

MozReview-Commit-ID: DrMTgLzQcnk
2018-01-27 04:21:11 +01:00
Emilio Cobos Álvarez
ef4b2d883d servo: Merge #19877 - style: Look at the snapshots when invalidating due to stylesheet changes (from emilio:remove-sheet-oh-noes); r=bz
Otherwise removal of stylesheets may get out of sync with other DOM changes, and
we may fail to invalidate the style of the affected elements.

Bug: 1432850
Reviewed-by: bz
MozReview-Commit-ID: DrMTgLzQcnk
Source-Repo: https://github.com/servo/servo
Source-Revision: bc7dd644f6f50bd6eb3fba1547808775ee9d7620

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : a906350d0b2590d4634b95ddccb3a8294ec1cbfe
2018-01-26 20:18:48 -06:00
Mike Hommey
49993bfe85 Bug 1432390 - Allow to derive docker images from other in-tree images. r=dustin
So far, the best we've been able to do is to upload an image to the
docker hub, and point an image's Dockerfile's FROM to the version
uploaded onto the hub.

That is a cumbersome process, and makes the use of "layered" docker
images painful.

This change allows to declare a parent docker image in the
taskcluster/ci/docker-image/kind.yml definitions, which will be
automatically loaded before building the image. The Dockerfile can then
reference the image, using the DOCKER_IMAGE_PARENT argument, which will
contain the full image name:tag.

Some details are left off, for now, such as VOLUMEs. At this point,
VOLUMEs should all be defined in leaf docker images.

--HG--
extra : rebase_source : 221cff0ca5a91d694ff5c3626fe707c15ba45e23
2018-01-25 11:07:54 +09:00
Mike Hommey
fd6ffda3c8 Bug 1432390 - Make mach taskcluster-build-image talk directly to the docker socket in the image builder. r=dustin
Now that `mach taskcluster-build-image` can, we can avoid all the manual
handling based on curl and jq in the image builder.

An additional advantage on relying on `mach taskcluster-build-image`
doing more is that less changes to the build-image.sh script will be
necessary, and thus less updates of the image builder docker image.

--HG--
extra : rebase_source : dd174d60675e41e4391894f28235c674c1840829
2018-01-25 13:36:47 +09:00
Mike Hommey
f5386c6b51 Bug 1432390 - Directly call the docker API over its unix socket instead of calling docker build. r=dustin
This allows to avoid writing out a tar file to then extract it to feed
it to `docker build`. This is essentially what the image-builder docker
image does, except it uses a temporary file for the tar.

--HG--
extra : rebase_source : 8275d737e02714fc198d3ba3d3e62e3f18d8e0bf
2018-01-24 15:55:31 +09:00
Mike Hommey
378f47ff49 Bug 1432390 - Directly call the docker API over its unix socket instead of calling docker load. r=dustin
While spawning `docker load` is likely to work on developer machines,
on automation, it requires a docker client that is the exact same
version as the server running on the taskcluster worker for
docker-in-docker, which is not convenient. The API required for `docker
load` is rather simple, though, and can be mimicked quite easily.

While this change in itself is not necessary for developer machines,
it will allow to re-use the same command for the image-builder to
load a parent docker images when deriving one from another. We could
keep a code branch using `docker load` but it seems wasteful to maintain
two branches when one can work for both use cases.

--HG--
extra : rebase_source : d72956d7dd329b92564cbaa3fbfe0687d4d5d994
2018-01-24 14:25:09 +09:00
Mike Hommey
16c5f4c5f4 Bug 1432390 - Use zstandard and requests modules instead of spawning curl | zstd in docker.load_image. r=dustin
The zstd command we spawn, if available at all, might be the wrong
version: zstd changed its stream format in an incompatible way at some
point, and the version shipped in e.g. Ubuntu 16.04 uses the old format,
while the version taskcluster relies on uses the new format.

Relying on gps's zstandard library allows to ensure we use the right
version. Another advantage is that we can trivially pip install it in a
virtualenv if it isn't available on the system running the command.

If we're ridding ourselves of the subprocess spawning for zstd, we might
as well cover curl as well. Especially considering the error handling
when subprocesses are involved is not trivial, such that the current
error handling code is actually broken and leads to dead-lock
conditions, when, for example, curl is still waiting for the python side
to read data, but the python side is not reading data anymore because
an exception was thrown in the tar reading loop.

--HG--
extra : rebase_source : 054c37cfaa68bf475b37545ebaa99144584b93d4
2018-01-24 11:18:13 +09:00
Mike Hommey
b83d215e99 Bug 1432390 - Remove explicit exception handling in docker.load_image(). r=dustin
The used pattern:
  except Exception:
    error = sys.exc_info()[0]
  finally:
    ...
    if error:
      raise error

actually loses everything that is interesting about the original
exception. Not catching the exception just makes it thrown up the stack,
except when a different exception is thrown from the finally block,
which is what that if error: raise error is attempting to do... except
it doesn't throw the original exception, but its type only.

--HG--
extra : rebase_source : 17601fcc90fcdfefd93c4267f3cd33425d5326fd
2018-01-24 11:17:27 +09:00
Mike Hommey
784400b0bb Bug 1432390 - Avoid creating a temporary file for generate_context_hash. r=dustin
Now that we don't need to read the contents of a file to hash the
contents of a docker image context, we can avoid creating a file
in generate_context_hash.

--HG--
extra : rebase_source : 98abe9bfdc48b612a3d251296991d0f769b449fd
2018-01-23 17:24:04 +09:00
Mike Hommey
d936a6c5d2 Bug 1432390 - Hash the contents of the docker image context as it is created. r=dustin
This will allow us, down the line, to avoid creating a file at all in
some cases.

--HG--
extra : rebase_source : e4ea40341836cf24aa6d61c905b2efa660ee13f2
2018-01-23 17:12:03 +09:00
Jeff Walden
92624b2025 Bug 1431957 - Move a bunch of functions in builtin/intl/CommonFunctions.js into more-specific files, where those functions are only used in a single more-specific file. r=anba
--HG--
extra : rebase_source : 746b65988b8f58ce920dc93c2eeaddf9ffa7a88c
2018-01-20 12:41:06 -08:00
Jeff Walden
0e500470a0 Bug 1431957 - js/src/builtin/Intl* doesn't exist any more, so don't tag it as BUG_COMPONENT = component_intl. r=anba
--HG--
extra : rebase_source : a99a83338b5f3a8f34e0d4b4b7ca7f9af280ad3b
2018-01-22 12:53:23 -08:00
Jeff Walden
ad521c076e Bug 1431957 - Move builtin/Intl.js (which now contains only shared functionality) to builtin/intl/CommonFunctions.js. r=anba
--HG--
rename : js/src/builtin/Intl.js => js/src/builtin/intl/CommonFunctions.js
extra : rebase_source : 7dc206fe31a7aa9ee82529365937fe1b90531d70
2018-01-20 12:41:06 -08:00
Jeff Walden
e35f51daf6 Bug 1431957 - Move Intl.Collator self-hosted code to a new builtin/intl/Collator.js file. r=anba
--HG--
rename : js/src/builtin/Intl.js => js/src/builtin/intl/Collator.js
extra : rebase_source : 18f48d145d9eef44c491253356b4450811a1d7c4
2018-01-20 12:41:06 -08:00
Jeff Walden
57c5806aa2 Bug 1431957 - Move Intl.NumberFormat self-hosted code to a new builtin/intl/NumberFormat.js file. r=anba
--HG--
rename : js/src/builtin/Intl.js => js/src/builtin/intl/NumberFormat.js
extra : rebase_source : acedba27911988258318f5ea1a67f1f392a9cb74
2018-01-20 12:41:05 -08:00
Jeff Walden
d7d15bd1b3 Bug 1431957 - Move Intl.DateTimeFormat self-hosted code to a new builtin/intl/DateTimeFormat.js file. r=anba
--HG--
rename : js/src/builtin/Intl.js => js/src/builtin/intl/DateTimeFormat.js
extra : rebase_source : f4f9cb0099705c99df1a5d93906d5d646e467a4c
2018-01-20 12:41:05 -08:00
Jeff Walden
72523a946b Bug 1431957 - Move Intl.PluralRules self-hosted code to a new builtin/intl/PluralRules.js file. r=anba
--HG--
rename : js/src/builtin/Intl.js => js/src/builtin/intl/PluralRules.js
extra : rebase_source : f9bbb991221743fade628cb39787cc05799b1bcc
2018-01-20 12:41:05 -08:00
Jeff Walden
b5944774dd Bug 1431957 - Move Intl.RelativeTimeFormat self-hosted code to a new builtin/intl/RelativeTimeFormat.js file. r=anba
--HG--
rename : js/src/builtin/Intl.js => js/src/builtin/intl/RelativeTimeFormat.js
extra : rebase_source : 49de40d029f399e35300a677b2e5fa4b25b2a3f3
2018-01-20 12:41:05 -08:00
Jeff Walden
e67efd42cd Bug 1431957 - Move the self-hosting of non-constructor properties of Intl to a new builtin/intl/IntlObject.js file. r=anba
--HG--
rename : js/src/builtin/Intl.js => js/src/builtin/intl/IntlObject.js
extra : rebase_source : b66bdb3b6c776f05c2906217ac2aed7878039b62
2018-01-20 12:41:05 -08:00
abhinav
6bb0cfd19c Bug 1431306 - Return the MDN status list URL in getHTTPStatusCodeURL when statusCode does not have a dedicated page; r=nchevobbe
MozReview-Commit-ID: 5FWYgChM5le

--HG--
extra : rebase_source : a23168b7f92c5de6b717b1ce2a3e8ff540943c0a
2018-01-20 23:31:44 +05:30
Botond Ballo
de0cdedea7 Bug 1432919 - Configure generated eclipse projects to remove trailing whitespace in edited lines. r=jwatt
MozReview-Commit-ID: 6naw8sbWqKT

--HG--
extra : rebase_source : 435e24fd33e51fcf84ac8ad64a63c59a7827907b
2018-01-24 19:03:33 -05:00
Mark Banner
d40ab69bb9 Bug 801391 - Set clickSelectsAll depending on the preference for the Bookmarks Library search box. r=mak
MozReview-Commit-ID: 3IhkODtMpr7

--HG--
extra : rebase_source : a84082e456b3b31d4b7729e44a624552a5641640
2018-01-26 14:46:30 +00:00
Markus Stange
f869de0149 Bug 1431184 - Register DOM Worker threads with the profiler for their entire lifetime, not just for the ranges during which they're running a worker script. r=froydnj
Our Web Worker code uses a thread pool where a single OS thread can be reused
for different worker scripts during its lifetime. Before this patch, we only
registered these threads with the profiler for the duration that they're
running a worker script. So the same OS thread could be registered with the
profiler during multiple disjoint time ranges, and we would expect the profiler
to treat those different registrations as different conceptual threads.

This had multiple advantages:
 - The "thread name" of the conceptual thread can include the script URL:
   "DOM Worker <scriptURL>". This allowed you to create thread filter which
   match a part of the URL, so you had the option of profiling just the worker
   threads you were interested in.
 - We wouldn't waste time sampling a worker thread while it's idle and has no
   script.

But it also had disadvantages:
 - The profiler platform doesn't actually know how to deal with different
   "conceptual threads" that share the same OS thread. This lead to surprising
   breakage in different places. For example, the contents in the profiler
   buffer are marked with ThreadId entries which use the OS thread id.
 - What we show in the profiler UI didn't not match reality, and might be
   confusing to some people.

I don't think the advantages are large enough to warrant teaching the rest of
the profiler platform to deal with conceptual threads. So this change makes us
stop doing the special thing and just register the OS threads for their entire
duration.

MozReview-Commit-ID: 82RtlRlwy3Y

--HG--
extra : rebase_source : 101e144f17718ea8f05e8bef8200b8ed41ee854e
2018-01-24 18:20:27 -05:00
Zibi Braniecki
4bdf6bf95e Bug 1428698 - Align intl::locale::Locale with BCP47. r=jfkthame
MozReview-Commit-ID: AT9MPppx99p

--HG--
extra : rebase_source : ef98f45c430822de0eb400d1256d61988e9cc1f9
2018-01-25 14:50:32 -08:00
Jeff Walden
4aa0290a3a Bug 1431957 - Rerun |python ./make_intl_data.py langtags| generating langtag mapping data into the new location, demonstrating that the only changes that happen are timestamp changes). r=anba
--HG--
extra : rebase_source : ab60bfd8b62aa6e9de9a1fc5ee02749d6302715b
2018-01-20 01:15:27 -08:00
Jeff Walden
3454b689e2 Bug 1431957 - Rerun |python ./make_intl_data.py currency| generating currency data into the new location, demonstrating that the only changes that happen are because upstream data changed (in insignificant ways). r=anba
--HG--
extra : rebase_source : adc3444894bfba21d38e7f64376687736a45b3a5
2018-01-20 01:13:18 -08:00
Jeff Walden
0a795699ac Bug 1431957 - Move various generated files from builtin/Intl* to builtin/intl/*, and add "Generated" to their names for clarity. r=anba
--HG--
rename : js/src/builtin/IntlCurrency.js => js/src/builtin/intl/CurrencyDataGenerated.js
rename : js/src/builtin/IntlData.js => js/src/builtin/intl/LangTagMappingsGenerated.js
rename : js/src/builtin/IntlTimeZoneData.h => js/src/builtin/intl/TimeZoneDataGenerated.h
rename : js/src/builtin/make_intl_data.py => js/src/builtin/intl/make_intl_data.py
extra : rebase_source : e88230d13853aec0c82accae02abcd41ed00821e
2018-01-20 01:07:54 -08:00
Jeff Walden
3c228dad29 Bug 1431957 - Move builtin/Intl.* to builtin/intl/IntlObject.* and trim the contents of them a little further. r=anba
--HG--
rename : js/src/builtin/Intl.cpp => js/src/builtin/intl/IntlObject.cpp
rename : js/src/builtin/Intl.h => js/src/builtin/intl/IntlObject.h
extra : rebase_source : 3f6f2a93676dbceace0d05181d88c9a4cfee725b
2018-01-19 22:29:47 -08:00
Jeff Walden
7caff7027f Bug 1431957 - Trim builtin/Intl.cpp's #include set down to size, now that it contains *only* stuff related to Intl, its non-constructor properties, and initialization of Intl. r=anba
--HG--
extra : rebase_source : c571efb616b8741e093cb91b326cc371a1a354ef
2018-01-19 21:49:05 -08:00
Jeff Walden
9999e83d84 Bug 1431957 - Move String-based Intl-dependent functionality out of Intl.cpp, into jsstr.cpp. It may *depend* on Intl, but it *lives* on String, so it should be defined in String code for easiest searching. And with newly-slimmed builtin/intl/*.h headers, it's no real compile overhead to define this outside of Intl code. r=anba
--HG--
extra : rebase_source : 6471c2d3028dba1f6ac9348d8b40c20f07e50cbd
2018-01-19 21:02:38 -08:00
Jeff Walden
d0f152b2e0 Bug 1431957 - Move Intl.RelativeTimeFormat functionality into builtin/intl/RelativeTimeFormat.*. r=anba
--HG--
rename : js/src/builtin/Intl.cpp => js/src/builtin/intl/RelativeTimeFormat.cpp
extra : rebase_source : 36750b0baaf6b5cf1b85dbe5e7f3f1ca27ba7320
2018-01-19 20:26:54 -08:00
Jeff Walden
9438e5adad Bug 1431957 - Move Intl.PluralRules functionality into builtin/intl/PluralRules.*. r=anba
--HG--
rename : js/src/builtin/Intl.cpp => js/src/builtin/intl/PluralRules.cpp
extra : rebase_source : 4610f0ff617a1964ae0f1a42cfe0ae3a4cf36303
2018-01-19 19:03:21 -08:00
Jeff Walden
04ae6bd928 Bug 1431957 - Move Intl.DateTimeFormat functionality into builtin/intl/DateTimeFormat.*. r=anba
--HG--
rename : js/src/builtin/Intl.cpp => js/src/builtin/intl/DateTimeFormat.cpp
rename : js/src/builtin/Intl.h => js/src/builtin/intl/DateTimeFormat.h
extra : rebase_source : fb54f801b971845ecc6342efac1e30af217a8a7f
2018-01-19 18:37:09 -08:00
Jeff Walden
77349d1f5b Bug 1431957 - Move SharedIntlData into its own builtin/intl/SharedIntlData.* files so the world doesn't have to import all shared Intl functionality. r=anba
--HG--
extra : rebase_source : 61e7615c8bb172aa8fe4fe8a4d3e62458410b0c8
2018-01-19 17:27:14 -08:00
Jeff Walden
b73e7420db Bug 1431957 - Move Intl.Collator functionality into builtin/intl/Collator.*. r=anba
--HG--
rename : js/src/builtin/Intl.cpp => js/src/builtin/intl/Collator.cpp
extra : rebase_source : 2eb6a4c9577ea8bfd82d495e65c01b94e9639647
2018-01-19 16:28:11 -08:00
Jeff Walden
a71542f55c Bug 1431957 - Move NewUNumberFormatForPluralRules next to its only use. r=anba
--HG--
extra : rebase_source : 65bc342a0c78e92d632f5ffd98551ad7a0565b5a
2018-01-19 16:20:55 -08:00
Jeff Walden
7919f20f84 Bug 1431957 - Move Intl.NumberFormat functionality into builtin/intl/NumberFormat.*. r=anba
--HG--
rename : js/src/builtin/Intl.cpp => js/src/builtin/intl/NumberFormat.cpp
rename : js/src/builtin/Intl.h => js/src/builtin/intl/NumberFormat.h
extra : rebase_source : f8c30c3fa2bd7f2bb7e27ebe111ea5141952d24b
2018-01-19 16:20:44 -08:00
Jeff Walden
28710eaade Bug 1431957 - Move functionality used in the implementation of multiple Intl.* constructors into builtin/intl/CommonFunctions.*. r=anba
--HG--
extra : rebase_source : 9e65fc7957ee93b6b58e38329741de5079b4be62
2018-01-19 16:14:03 -08:00
Jeff Walden
8d38b42160 Bug 1431957 - Move ICU stub functions into builtin/intl/ICUStubs.h. r=anba
--HG--
extra : rebase_source : 8112cb169f912b6157541fb1eec9d899ba95c2fe
2018-01-19 13:34:13 -08:00
Jeff Walden
f77f5aa89c Bug 1431957 - Move ScopedICUObject to its own header. r=anba
--HG--
extra : rebase_source : 530554014ee18693a5426993386e2720ac6c993f
2018-01-19 13:32:05 -08:00
Jeff Walden
8314131139 Bug 1432646 - Implement mozilla::WrapToSigned. r=froydnj
--HG--
extra : rebase_source : 2c1a216830767da789eea59d00b55a45845f4d60
2018-01-25 14:48:01 -08:00
Jeff Walden
1cf916f6d8 Bug 1432646 - Don't overflow performing signed integer arithmetic when performing |JS::ToInt32(0xFFFFFFFF)|. r=froydnj
--HG--
extra : rebase_source : bf64d6eceb631fbd4fe018a34530defd59e20d71
2018-01-25 14:47:55 -08:00
Ehsan Akhgari
de3684029d Bug 1433563 - Remove nsIDOMCDATASection; r=qdot 2018-01-26 17:52:44 -05:00
Sebastian Hengst
845c5d10cf Bug 1433144 - Disable permafailing /html/semantics/embedded-content/the-img-element/document-base-url.html. a=test-only 2018-01-27 00:41:15 +02:00
Noemi Erli
6bce5aef99 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-01-26 23:55:29 +02:00
Aaron Klotz
4e5aebde55 Bug 1433551: Use fallible allocation for handleInfoBuf inside UIA detection; r=davidb
--HG--
extra : amend_source : c0ed75af74df6aa7c9c9aa94ad52cebd37e5140c
2018-01-26 14:08:42 -07:00