Commit Graph

558648 Commits

Author SHA1 Message Date
Mark Collins
f3b3075513 Bug 1398329 - Convert uses of defer to new Promise in client/shared (except in test/, vendor/ and widgets/ subdirs). r=Honza, r=nchevobbe 2017-09-08 23:32:47 +02:00
Liang-Heng Chen
bb17178a61 Bug 1399409 - Ignore about:blank in awaitBrowserLoaded. r=kmag
MozReview-Commit-ID: 8WoN86Zd6PS
2017-09-13 23:46:00 -04:00
Ethan
a14a582ea5 Bug 1397938 - Download protection whitelist and blacklist are not available for the Android platform. r=francois 2017-09-14 14:26:18 +08:00
Sebastian Hengst
285f502fd9 Backed out changeset 3f1e68da9634 (bug 1397128) for bustage at mozilla/dom/cache/CacheStorage.h:108. r=backout on a CLOSED TREE 2017-09-15 18:29:41 +02:00
Sebastian Hengst
150c6ab212 Backed out changeset 15edfaab92f6 (bug 1397128) 2017-09-15 18:28:54 +02:00
Sebastian Hengst
8114378053 Backed out changeset bfbcc07fcb4b (bug 1397128) 2017-09-15 18:28:48 +02:00
Sebastian Hengst
2ecdeffe66 Backed out changeset 389e9f39d6b8 (bug 1397128) 2017-09-15 18:28:43 +02:00
Sebastian Hengst
8463726683 Backed out changeset 5988716b66bb (bug 1397128) 2017-09-15 18:28:37 +02:00
Sebastian Hengst
ea5ea33329 Backed out changeset bb52082d2d3c (bug 1397128) 2017-09-15 18:28:32 +02:00
Sebastian Hengst
b42f970139 Backed out changeset b28740aedf34 (bug 1397128) 2017-09-15 18:28:27 +02:00
Sebastian Hengst
f14ea2acaf Backed out changeset e37614cb41e1 (bug 1397128) 2017-09-15 18:28:21 +02:00
Sebastian Hengst
4b9a1e0644 Backed out changeset b5ea37e08220 (bug 1397128) 2017-09-15 18:28:16 +02:00
Andrea Marchesini
09429732d5 Bug 1376794 - Label blob IPC messages, r=billm 2017-09-15 18:20:08 +02:00
Dylan Roeh
7cbedb9bf9 Bug 1400059 - Fix trailing whitespace r=me 2017-09-15 11:13:48 -05:00
Ben Kelly
188fc706fb Bug 1397128 P9 Make content script usage of Cache API use lazy body loading. r=tt 2017-09-15 09:11:23 -07:00
Ben Kelly
6847f129b1 Bug 1397128 P8 Track which storage "namespace" each Cache object is associated with. r=tt 2017-09-15 09:11:23 -07:00
Ben Kelly
66d9e5a447 Bug 1397128 P7 Add an OpenMode enumeration to control if individual Cache API requests eagerly or lazily opens bodies. r=tt 2017-09-15 09:11:23 -07:00
Ben Kelly
60cc17beb8 Bug 1397128 P6 Allow ReadStream to be created with an initially nullptr base stream. r=tt 2017-09-15 09:11:23 -07:00
Ben Kelly
1cc7cde5c0 Bug 1397128 P5 Add ReadStream::Inner::EnsureStream() to synchronously open stream when Availabe/Read/ReadSegments is called. r=tt 2017-09-15 09:11:23 -07:00
Ben Kelly
cd504ea7b0 Bug 1397128 P4 Add a PCacheStreamControl message to open a stream based on its body ID. r=tt 2017-09-15 09:11:22 -07:00
Ben Kelly
6e5e0f4a24 Bug 1397128 P3 Add an OpenStreamAction class to open the file stream on the io thread. r=tt 2017-09-15 09:11:22 -07:00
Ben Kelly
31a34132cb Bug 1397128 P2 Refactor StreamList::Add() to use move constructors and accept a nullptr stream. r=tt 2017-09-15 09:11:22 -07:00
Ben Kelly
ba86302f10 Bug 1397128 P1 Make CacheReadStream ipdl struct contain an OptionalIPCStream. r=tt 2017-09-15 09:11:22 -07:00
Florian Quèze
87f13ca985 Bug 1379587 - White flash when opening new tabs, r=mconley, ui-r=phlsa. 2017-09-15 17:09:38 +02:00
Stephen A Pohl
cbdf6d6f74 Bug 1398582: Prevent drawing titles in title bars on macOS 10.13 when we don't want them. r=mstange 2017-09-15 11:05:11 -04:00
Dylan Roeh
65afe5f455 Bug 1400059 - Replace strings in ProgressListener.SecurityInformation with ints. r=snorp 2017-09-15 09:00:26 -05:00
Matt Woodrow
6c672d6e4f Bug 1397058 - Make display item type flags compulsary and add them for all item types. r=mstange
MozReview-Commit-ID: Jp00rblsm7B
2017-09-12 14:13:49 -04:00
Matt Woodrow
ac26c2873e Bug 1397060 - Don't call ComputeOpaqueRect unless we're going to make use of the result. r=mstange
MozReview-Commit-ID: 2yGybisiLcx
2017-09-12 14:14:27 -04:00
Geoff Brown
d289ad01ba Bug 1391694 - Avoid false shutdown leaks in browser-chrome tests with --repeat; r=jmaher
This patch re-organizes control flow in the browser-chrome harness so that
extra memory cleanup only happens just before the browser is closed, even
when running with --repeat.
2017-09-15 07:29:44 -06:00
jason laster
adc78c74bd Bug 1399673 - Update Debugger Frontend and upgrade Source Map Worker to v0.13.0. r=jdescottes
MozReview-Commit-ID: L7igSLIa5GX
2017-09-13 20:12:01 -04:00
Nathan Froyd
37cbcb454b Bug 1397823 - part 4 - reduce codesize for IPDL IPC::Message creation; r=kanru
Each protocol in IPDL has a bunch of autogenerated functions that
instantiate IPC::Message with various parameters.  Each of these
functions, then:

1) Pays the cost of calling malloc()
2) Setting up various parameters
3) Calling IPC::Message()

There's no reason that we should be duplicating 1) across all of these
autogenerated functions.  In step 2), several of the parameters we're
setting up are common across all or nearly all calls: the message
segment size is almost always zero, and we're always indicating that
IPDL-generated messages should be recorded in telemetry.

Instead of duplicating that code several thousand times, we can add a
small helper function that takes the only interesting parameters for an
IPDL message.  This helper function can then deal with calling malloc in
a single place and setting up the common parameters.  For messages that
require a custom segment size, we'll have to use the old scheme, but
such messages are uncommon.

The previous changes are not required for this scheme to work, but they
do help significantly, as the helper function (Message::IPDLMessage) can
now take four parameters, which ensures that its arguments are passed
solely in registers on Win64 and ARM.  The wins from this change are
also larger than they would be without the previous parts: ~100K on
x86-64 Linux (!)  and ~80K on ARM Android.
2017-09-15 08:06:11 -04:00
Nathan Froyd
a697f87d36 Bug 1397823 - part 3 - do a better job setting IPC::Message flags; r=kanru
The current IPC::Message constructor takes a large number of arguments,
three of which--the nesting level, the priority, and the
compression--are almost always constant by virtue of the vast majority
of Message construction being done by auto-generated IPDL code.  But
then we take these constant values into the Message constructor, we
check them for various values, and then based on those values, we
perform a bunch of bitfield operations to store flags based on those
values.  This is wasted work.

Furthermore, for replies to IPDL messages, we'll construct a Message
object, and then call mutating setters on the Message object that will
perform even more bitfield manipulations.  Again, these operations are
performing tasks at runtime that are the same every single time, and use
information we already have at compile time.

The impact of these extra operations is not large, maybe 15-30K of extra
code, depending on platform.  Nonetheless, we can easily make them go
away, and make everything cleaner to boot.

This patch adds a HeaderFlags class that encapsulates all the knowledge
about the various kinds of flags Message needs to know about.  We can
construct HeaderFlags objects with strongly-typed enum arguments for the
various kinds of flags, and the compiler can take care of folding all of
those flags together into a constant when possible (and it is possible
for all the IPDL-generated code that instantiates Messages).  The upshot
is that we do no unnecessary work in the Message constructor itself.  We
can also remove various mutating operations on Message, as those
operations were only there to support post-constructor flag twiddling,
which is no longer necessary.
2017-09-15 08:06:11 -04:00
Nathan Froyd
c726125099 Bug 1397823 - part 2 - tidy _generateMessageConstructor enums a little; r=kanru
There's no need to be repeating 'IPC::Message::' prefixes or spreading
around more ExprVar calls than we need here.  Let's try to improve the
signal-to-noise ratio of this code by introducing a helper function to
inject some of the boilerplate for us.
2017-09-15 08:06:11 -04:00
Nathan Froyd
f4a054ab8d Bug 1397823 - part 1 - move work into _generateMessageConstructor; r=kanru
_generateMessageConstructor takes a lot of `md.FOO`-style parameters,
which could be derived inside the function by simply passing `md`.
Especially with the upcoming changes to calculate things like reply-ness
of messages, sync-ness, etc, we'd be wanting to pass even more
parameters like `md.FOO`.  So let's just pass `md` in, and then we can
make all the necessary future changes in a single place.
2017-09-15 08:06:11 -04:00
Nicolas Silva
558383f150 Bug 1397407 - Apply deferred image key deletions to the next transaction. r=Gankro 2017-09-15 13:24:31 +02:00
Stone Shih
df20c4bac3 Bug 1399876: Relax the assertion about sending multiple eMouseEnterIntoWidget in TabParent. r=baku.
We may create a browser element and replace it while the TabChild isn't ready to handle input events.
2017-09-15 15:41:53 +08:00
Makoto Kato
9990002068 Bug 1387937 - Part 2. Add patch file. r=jfkthame
MozReview-Commit-ID: Ej5YLm9dz57

--HG--
extra : rebase_source : ed3e5504a4357ab8f6502dd07301cdada2ef138e
extra : histedit_source : 295998882be300c3e391535bf3e1bd8fc719d047
2017-09-15 19:07:06 +09:00
Makoto Kato
d300b82736 Bug 1387937 - Part 1. Import changeset 40324. r=jfkthame
MozReview-Commit-ID: 86oFSd6ifc7

--HG--
extra : rebase_source : 9d4568c4bd79d739ed3ae5f3a42f2b8157306454
extra : histedit_source : 158eae8522722234cd3ea914db9f507b111d916e
2017-09-15 18:57:20 +09:00
Christoph Kerschbaumer
a14a33f806 Bug 1399848 - Update failing windows tests within dom/browser-element to comply with new toplevel data: URI navigation policy. r=smaug 2017-09-15 12:17:26 +02:00
Jon Coppeard
7d63b33db5 Bug 1399928 - RegExpShared::source should be a GCPtr r=sfink 2017-09-15 11:04:40 +01:00
Jon Coppeard
7a85529cdd Bug 1399933 - Replace use of ObjectValueCrashOnTouch with PoisonedObjectValue r=sfink 2017-09-15 11:04:40 +01:00
Sebastian Hengst
49155b17af merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-09-15 11:12:04 +02:00
Sebastian Hengst
ec66bbd3e1 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 4dRrVdftJVy
2017-09-15 11:05:11 +02:00
Phil Ringnalda
eab70d0a07 Backed out changeset 0e349b74bfc6 (bug 1399921) for failure to thrive on Mac
MozReview-Commit-ID: HoBhxzIzn2d
2017-09-14 20:36:41 -07:00
Mike Hommey
c53e695a6e Bug 1399921 - Register zone allocator independently, and delay jemalloc initialization on mac. r=njn
In bug 1361258, we unified the initialization sequence on mac, and
chose to make the zone registration happen after jemalloc
initialization.

The order between jemalloc init and zone registration shouldn't actually
matter, because jemalloc initializes the first time the allocator is
actually used.

On the other hand, in some build setups (e.g. with light optimization),
the initialization of the thread_arena thread local variable can happen
after the forced jemalloc initialization because of the order the
corresponding static initializers run. In some levels of optimization,
the thread_arena initializer resets the value the jemalloc
initialization has set, which subsequently makes choose_arena() return
a bogus value (or hit an assertion in ThreadLocal.h on debug builds).

So instead of initializing jemalloc from a static initializer, which
then registers the zone, we instead register the zone and let jemalloc
initialize itself when used, which increases the chances of the
thread_arena initializer running first.

--HG--
extra : rebase_source : 4d9a5340d097ac8528dc4aaaf0c05bbef40b59bb
2017-09-15 07:34:48 +09:00
Mason Chang
89e6c162b2 Bug 1399692 - Copy the front buffer to the back buffer on the paint thread with OMTP enabled. r=bas 2017-09-14 15:09:53 -04:00
Jeff Gilbert
4efa5737b0 Bug 1400073 - Hide MOZ_debug from getSupportedExtensions. - r=daoshengmu
MozReview-Commit-ID: LFTrUOGLh36
2017-09-14 19:26:49 -07:00
Kris Maglione
7d582eecbf Bug 1398974: Follow-up: Skip adding request filters to favicon.ico requests. r=me
We're getting relatively frequent intermittent shutdown crashes when stream
filters are added during ts_paint tests. Skipping favicon.ico stream filters
should prevent that until we have a more reliable fix.
2017-09-14 19:06:52 -07:00
Kris Maglione
2afa823240 Bug 1399997: Part 2 - Fix eval usage in PhoneNumber.jsm. r=MattN
MozReview-Commit-ID: 3u3oaw6HUOb

--HG--
extra : rebase_source : 5db20475e2f98065a354e27510bd428c49a10f21
2017-09-14 12:54:46 -07:00
Myk Melez
d67f399287 Bug 1399963 - set a wider explicit width on the 'default font' menulist; r=nhnt11 2017-09-14 18:53:34 -07:00