569918 Commits

Author SHA1 Message Date
Nicholas Nethercote
5dc91f21fc Bug 1416638 - Rename SetCharPrefInternal() as SetCharPrefNoLengthCheck(). r=glandium.
Because it's clearer.

MozReview-Commit-ID: 4zfDnsaPQSK

--HG--
extra : rebase_source : 4f958130f46dc32b291f92d3b387d80064b5ac12
2017-11-14 19:06:02 +11:00
Nicholas Nethercote
22cbf71329 Bug 1416638 - Move a couple of functions into Preferences. r=glandium.
This will allow other functions to be moved into Preferences and be marked as
`private` in subsequent patches.

The patch also renames SetPrefValue() as SetValueFromDom(), because that's a
clearer name.

MozReview-Commit-ID: CB1xmPSmac6

--HG--
extra : rebase_source : 0d597a800f2295c04af26d5abaac4aea0e0d3373
2017-11-14 19:06:02 +11:00
Nicholas Nethercote
1e78ff66af Bug 1416638 - Use private instead of protected in Preferences. r=glandium.
It's a `final` class, so there's no need for `protected`.

MozReview-Commit-ID: 7n4DLpXo0el

--HG--
extra : rebase_source : b2d3eb9cf0e912689efa29d2255cc018fd8a7c64
2017-11-14 19:06:02 +11:00
Nicholas Nethercote
502d16e87f Bug 1416638 - Change nsPrefBranch mIsDefault to a PrefValueKind. r=glandium.
This makes the next patches nicer.

MozReview-Commit-ID: 8EoAkmmMavY

--HG--
extra : rebase_source : 3bb751c8e1353f7e3814257cf41f2f8de4ed3ed5
2017-11-14 19:06:02 +11:00
Nicholas Nethercote
f553c82da0 Bug 1416638 - Add a PrefValueKind arg to Preferences::Get*(), and remove Preferences::GetDefault*(). r=glandium
MozReview-Commit-ID: LgnZAf1pAl1

--HG--
extra : rebase_source : 8ba7c4bfb331f70fd41c2ae1d428e4cb9058d069
2017-11-14 19:06:01 +11:00
Eitan Isaacson
d567085ce1 Bug 1414447 - Use displayed definitions in toolbox component for kb nav. r=jryans 2017-11-13 15:31:00 -05:00
Ya-Chieh Wu
cc97d12776 Bug 1381153 - Part 2: Look up MayHaveTransformAnimation in nsIFrame. r=mstange
Find out where we use MayHaveTransformAnimation in EffectSet
and change them to MayHaveTransformAnimation in nsIFrame.

MozReview-Commit-ID: GhkztK8JtNa
2017-11-12 23:23:00 -05:00
Ya-Chieh Wu
d2e5bc76eb Bug 1381153 - Part 1: Cache MayHaveOpacityAnimation and MayHaveTransformAnimation in nsIFrame. r=mstange, r=mats
There are two places where I have to cache the status of MayHaveOpacityAnimation
and MayHaveTransformAnimation. First place is in |nsIFrame:init()| where an
element is associated with a frame. Second place is in
|KeyframeEffectReadOnly::UpdateEffectSet()| where the script can add animations
on element.

btw I keep the original two flags of MayHaveOpacityAnimation and
MayHaveTransformAnimation in EffectSet because there is no guarantee that
an element has been associated with a frame when we call to |UpdateEffectSet()|.
But we still want to keep the benefits that we can quickly look up
MayHaveOpacityAnimation or MayHaveTransformAnimation. So I keep them in
EffectSet and transfer the status into nsIFrame when we bind an element
to a frame in nsIFrame:Init().

MozReview-Commit-ID: JDwyAQQTKA7
2017-11-13 18:15:00 -05:00
Nicholas Nethercote
6d0e1df407 Bug 1416638 - Add a PrefValueKind arg to Preferences::Set*(). r=glandium
This is unused for now, but will be necessary for nsPrefBranch::Set*() to call
into Preferences::Set*().

The patch also renames some arguments from aPref to aPrefName, because that's a
better name.

MozReview-Commit-ID: 2OPB7CHOgpw

--HG--
extra : rebase_source : 232b7be3c33d185f13ce86d91feea3b55069a4e6
2017-11-13 09:20:45 +11:00
Nicholas Nethercote
51c0610d9a Bug 1416638 - Introduce PrefValueKind. r=glandium
This is nicer than a bool for tracking the Default vs. User distinction, and it
replaces the Preferences.cpp-only WhichValue type.

MozReview-Commit-ID: 8CrdDN2vBJQ

--HG--
extra : rebase_source : 0d49148c73e5aeb0a355a6d4189232c89295d2a7
2017-11-13 09:20:42 +11:00
Benjamin Bouvier
b2f18b5f0e Bug 1415224: Remove wasm test mode entirely; r=luke
MozReview-Commit-ID: L8qoButUhT9

--HG--
extra : rebase_source : 206e8350fdb78b15124c2fb481364752a12ba1d0
2017-11-07 23:01:07 +01:00
Benjamin Bouvier
6b5dff4ed7 Bug 1415224: Remove jit test mode support for int64 testing; r=luke
MozReview-Commit-ID: JnonYprELMt

--HG--
extra : rebase_source : 03fa2e05e2e3789fa1ac3a5f218ed9111bbd1c53
2017-11-09 19:04:19 +01:00
Benjamin Bouvier
ab3b1d143b Bug 1415224: Have wasm assertions auto-generated in wasm; r=luke
MozReview-Commit-ID: I72lkHYq1TF

--HG--
extra : rebase_source : 8b6c8baa58b7265bef781679a2cdb00bb0a6fd9c
2017-11-13 18:30:15 +01:00
Andreas Tolfsen
9987d4cdb0 Bug 1414401 - Schedule Wd tests on linux32 r=jgraham
MozReview-Commit-ID: FRpg35u0NWK

--HG--
extra : rebase_source : af0c35be289bff1c1fb4792d678dea307834cc86
2017-11-07 10:48:58 -08:00
Benjamin Bouvier
3f82636a00 Bug 1415224: Remove wasm testing mode for custom NaN payloads; r=luke
MozReview-Commit-ID: 1CB9zUkTIyk

--HG--
extra : rebase_source : 2b00b600b4607fff066ef2d1e8dae6f523a410fb
2017-11-07 19:16:39 +01:00
Benjamin Bouvier
d9ca9faeb0 Bug 1416766: Immediately throw if an exported wasm function has int64 in the signature; r=luke
MozReview-Commit-ID: HhTUMk21hvM

--HG--
extra : rebase_source : 923c9e18c55b93ec8dd528ab7f68df51208360b1
2017-11-13 16:27:59 +01:00
Benjamin Bouvier
d380ec393f Bug 1416766: Int64 wasm globals should cause a link failure at instanciation time, not compile time; r=luke
MozReview-Commit-ID: 5Ryl47naf9R

--HG--
extra : rebase_source : 742df9347c1a3492f638592436e113922ce46784
2017-11-09 16:30:42 +01:00
Marco Castelluccio
5ced9d1b55 Bug 1417436 - Add Windows code coverage build and test definitions. r=jmaher
--HG--
extra : rebase_source : 3db136b2cccd0a12d6332827748c8a5b9ecefaf8
2017-11-14 23:39:15 +01:00
Tom Schuster
be406a264f Bug 1319512 - Adjust expression closure tests. r=jandem 2017-11-15 16:19:37 +01:00
Tom Schuster
3f07871197 Bug 1319512 - Disable expression closures on Nightly. r=jandem 2017-11-15 16:19:37 +01:00
Geoff Brown
5cfdc40eca Bug 1416914 - Run Android test-verify as tier 2; r=me,test-only 2017-11-15 08:16:41 -07:00
Geoff Brown
4ec80cab97 Bug 1417230 - Do not fail when a skipped web-platform test is verified; r=jgraham 2017-11-15 08:16:39 -07:00
Nathan Froyd
ade9d452f7 Bug 1412983 - part 6 - compile headers for cross-compilers during configure; r=ted.mielczarek
Our toolchain detection logic checks whether we can reuse the target
C (resp. C++) compiler for the host compiler.  This is generally only
applicable in the not-cross-compiling case, but we had special logic to
check for clang in the cross-compiling case and accept it, as clang is
able to generate code for multiple architectures from a single compiler
binary.

Our recent switch to clang on Android has exposed a problem in this
logic: we would never check whether the target clang, compiling for the
host, could actually find the host's headers.  This was especially
problematic on OS X hosts, where the host clang contains special logic
to grovel inside the XCode installation to find C++ headers.  The clang
from the NDK, however, was ignorant of the XCode installation.
Therefore, the NDK clang would happily compile code for the host, even
including C headers for the host, but would be hopelessly lost when it
came to compiling C++ headers during the actual build.

In hopes of mitigating this, we now include a check for a representative
header for C and C++ when checking compilers for each of those
languages.  This check will detect such problems as the above, and will
also alert people to potentially misconfigured compilers in other
situations.

We need to modify our test framework to cope with headers being
included, since our mock environment isn't actually equipped with a full
set of compilers and headers.
2017-11-15 10:12:22 -05:00
Nathan Froyd
fd5e1affd1 Bug 1412983 - part 5 - remove stlport_cppflags dependency from bindgen_cflags_defaults; r=ted.mielczarek
Now that extra_toolchain_flags includes stlport_cppflags, there's no
reason bindgen_cflags_defaults should depend on them both.  So remove
the stlport_cppflags dependency.  (There's no harm to multiply-including
stlport_cppflags, but not repeating -I options is good practice.)
2017-11-15 10:12:22 -05:00
Nathan Froyd
e18f985bb2 Bug 1412983 - part 4 - make extra_toolchain_flags depend on stlport_cppflags; r=ted.mielczarek
extra_toolchain_flags is used for compiling target-specific bits of code
elsewhere in configure.  Very shortly, we'll need to compile bits of
code that depend on the C++ standard library, so we'll want to point the
compiler at the C++ standard library.  Making extra_toolchain_flags
include stlport_cppflags is the best way to do that.
2017-11-15 10:12:22 -05:00
Nathan Froyd
e03872a402 Bug 1412983 - part 3 - move stlport_cppflags prior to extra_toolchain_flags; r=ted.mielczarek
extra_toolchain_flags is going to depend on stlport_cppflags
momentarily, so this commit is just for moving code around.  Note that
the diff shows other things moving *after* stlport_cppflags.
2017-11-15 10:12:23 -05:00
Nathan Froyd
741ca70abc Bug 1412983 - part 2 - use extra_toolchain_flags for computing bindgen flags; r=ted.mielczarek
We compute the same set of data in extra_toolchain_flags as we were
computing in bindgen_cflags_defaults.  We might as well reuse the former
to compute the latter.
2017-11-15 10:12:23 -05:00
Nathan Froyd
c9224d1d2e Bug 1412983 - part 1 - convert stlport_cppflags to return a list; r=ted.mielczarek
A list is a better format for these options, and we'll want a list later
when we use the options as compilation flags.
2017-11-15 10:12:23 -05:00
Dragana Damjanovic
d92ddfb3a4 Bug 1413622 - Add a check to avoid a division by zero. r=mayhemer 2017-11-15 15:01:11 +01:00
Fernando
1960157f5d Bug 1393041 - Refactor and share the telemetry c++ utility functions in gtests. r=dexter 2017-11-14 12:07:00 +01:00
Jan de Mooij
1935a6bcca Bug 1417038 part 2 - Shrink ExitFooterFrame to one word. r=nbp 2017-11-15 14:39:39 +01:00
Jan de Mooij
c35581ffc6 Bug 1417038 part 1 - Remove unused IonOOLPropertyOpExitFrameLayout and IonOOLSetterOpExitFrameLayout. r=nbp 2017-11-15 14:38:52 +01:00
dragan.mladjenovic
985e000ea8 Bug 1416179: Prevent ArrayBufferObject from reserving memory larger than UINT32_MAX on !WASM_HUGE_MEMORY 64-bit platforms; r=lth
--HG--
extra : amend_source : 3975f2aea4dc0647f679424d45ec977a96689b8e
2017-11-07 12:51:25 +01:00
André Bargull
675a354ebc Bug 1405993 - Part 7: Updating ICU requires a clobber. r=clobber
--HG--
extra : rebase_source : 4f2c6fc6cdb7045cb36d0b6200b6e7a60641d591
2017-11-14 03:11:25 -08:00
Andreas Tolfsen
16c97746d1 Bug 1414401 - Enable geckodriver on Linux i686 r=ted,whimboo
This patch enables building of geckodriver in CI on Linux i686.

MozReview-Commit-ID: GkdHDJrzh2X

--HG--
extra : rebase_source : 3202702d8ae3423079aad512a3d7c8dc8e7408a3
2017-11-03 14:13:06 +00:00
Tom Prince
36c3e9c780 Bug 1416023: Fix typo in jar-manifests.rst. r=gps
MozReview-Commit-ID: HC4J9Bwx3DJ

--HG--
extra : rebase_source : 9fc7ff5bb19a0c7097d8e69dfebe8f7aca4d0191
2017-11-09 15:35:28 -07:00
Gregory Szorc
bfcec985a7 Bug 1417387 - Don't mix unicode and bytes in clobber code; r=nalexander
b6adf66f34c6 (bug 1416052) changed the value for "fh" when this code
is called. It can now be an io.BytesIO. This type enforces that
arguments are bytes and doesn't perform automatic type coercion like
most other parts of Python 2.

self.topobjdir is a unicode. And unicode_literals isn't in effect
in this file. So convert self.topobjdir to bytes to make BytesIO
happy.

MozReview-Commit-ID: LrWTKFp3ZKT

--HG--
extra : rebase_source : dc8b9cabe199c78073c96b1c16f9960f92e399e4
2017-11-15 10:17:26 -08:00
Jean-Yves Avenard
2f874411a0 Bug 1415556 - P11. Remove unecessary locking. r=padenot
The method doesn't use any MSG member, only dispatching a task.

MozReview-Commit-ID: 7uZbTvq9OQt

--HG--
extra : rebase_source : e12c5ffcb6479ab2bc06973121c291e759db23a4
2017-11-11 10:20:59 +01:00
Jean-Yves Avenard
d1be81a96e Bug 1415556 - P10. Make functions const where needed. r=padenot
MozReview-Commit-ID: EBEgDVCTewa

--HG--
extra : rebase_source : 282ea4f98d253e9235f159afd7d3f88a4f26d6b1
2017-11-10 20:01:27 +01:00
Jean-Yves Avenard
78e8270149 Bug 1415556 - P9. Remove unused member. r=padenot
MozReview-Commit-ID: 2LbqhBkmDBF

--HG--
extra : rebase_source : 563337da4aef6a16522ceb9e0862f7a42a6efce6
2017-11-10 19:00:12 +01:00
Jean-Yves Avenard
9f54c61d6e Bug 1415556 - P8. Assert on proper access of mStreams member. r=padenot.
mStreams should only ever be accessed on the MSG thread. However, under some shutdown circumstances, it can be accessed on the main thread while the MSG thread is still alive.

This will be corrected in bug 1408276.

MozReview-Commit-ID: 6xWzxxV1Dv3

--HG--
extra : rebase_source : bce92961609da6ea8609ec8ada5a8a30263a84c9
2017-11-10 18:56:29 +01:00
Jean-Yves Avenard
a4416cf9f6 Bug 1415556 - P7. Remove unecessary locking. r=padenot.
mForceShutdownTicket and mShutdownTimer are only ever accessed on the main thread. We don't need the use of the monitor to reset them.

MozReview-Commit-ID: 1DL8bLmzEH5

--HG--
extra : rebase_source : 84d56c7f4428143426cd22e88ef2912330efba4e
2017-11-10 18:53:23 +01:00
Jean-Yves Avenard
66c39c273f Bug 1415556 - P6. Ensure mLifecycleState member is always accessed safely. r=padenot
We only access mLifecycleState via a helper which strongly enforced how the member can be accessed.
Two non-safe accesses are corrected.

MozReview-Commit-ID: 6LYk7t4rSyB

--HG--
extra : rebase_source : 9727771e1b04ba1b39f5cf9a6cf94093b7e92b27
2017-11-10 18:38:02 +01:00
Jean-Yves Avenard
251f706a51 Bug 1415556 - P5. Use helper to set mDriver. r=padenot
MozReview-Commit-ID: Fres1YwcYYM

--HG--
extra : rebase_source : e856357a57708d21e896818095fa1a25085b11a9
2017-11-10 18:28:42 +01:00
Jean-Yves Avenard
95a29ea071 Bug 1415556 - P4. Make members atomics. r=padenot
They are accessed across multiple threads without the use of monitors.
While it could be argued that some use of the monitor in functions accessing those members would set in place memory barriers, making them atomics remove all doubts as to the thread safetyness of their use.

MozReview-Commit-ID: tyTqeGgDNM

--HG--
extra : rebase_source : 420c38abcfeaa5fca2449034d8e1e3d82949d49d
2017-11-10 18:27:39 +01:00
Jean-Yves Avenard
2eda28dd35 Bug 1415556 - P3. clearly mark functions' thread use. r=padenot
MozReview-Commit-ID: BXmdk4zBo28

--HG--
extra : rebase_source : 4afd6fa5e887aff093e7a9e629e8c93573f17631
2017-11-10 18:24:20 +01:00
Jean-Yves Avenard
9b9c8f3ee4 Bug 1415556 - P2. Make member const. r=padenot
MozReview-Commit-ID: JPDW5cX8RvH

--HG--
extra : rebase_source : c83efd6665e23c89922d6d2cfdcd4f9ad3de3afa
2017-11-10 17:30:19 +01:00
Jean-Yves Avenard
d79f854f37 Bug 1415556 - P1. Add precision on thread access with some members. r=padenot
Describe which members are accessed on the main threads. Other members are only accessed on MSG thread.

MozReview-Commit-ID: CFU4ipRHB1P

--HG--
extra : rebase_source : ad4843da513997a633d2d402384f9478df29c3a7
2017-11-10 17:28:59 +01:00
Simon Sapin
473576925b servo: Merge #19227 - Work around "this expression will panic at run-time" warnings (from servo:array-warn); r=emilio
CC https://github.com/rust-lang/rust/issues/45850

Source-Repo: https://github.com/servo/servo
Source-Revision: 9863d514512aabbcfaeabba7e530b87f61a8d489

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : feaf1c236a902fa5286cdb524243f80cf3b5051e
2017-11-15 11:00:29 -06:00
Blake Kaplan
47a7f17127 Bug 1389836 - Push extensions from MIME info objects to the child. r=bz
It would be really nice to push all of this back up to the parent or to at
least make it asynchronous. I think it should be possible since we control
when we send the DOM events, but for the moment this should work.

With this patch, I extend ProxyMIMEInfo and HandlerInfo with information about
the available extensions for a given MIME type. On Linux, at least, we read
the system (in my case GNOME) registry in the child and handlers.json in the
parent finally merging them again in the child (in
ContentHandlerService::FillHandlerInfo). Even though I was unable to get my
mochitest to work, it did work well enough that I could verify that this patch
was getting all of the proper extensions to the nsContentAreaDragDrop.cpp
code.

MozReview-Commit-ID: AR3VayMUiDN

--HG--
extra : rebase_source : f9861e46e92fb7e8d297eff3e5d61a3c18912b47
2017-11-01 17:49:22 -07:00