Commit Graph

15503 Commits

Author SHA1 Message Date
Nika Layzell
a7666fd8fe Bug 1418048 - Add a callback-based Send API to async returning IPDL methods, r=billm
Currently if you write an async IPDL method which has a return value, we expose
a SendXXX method which returns a MozPromise. This MozPromise can then be
->Then-ed to run code when it is resolved or rejected.

Unfortunately, using this API loses ordering guarantees which IPDL provides.
MozPromise::Then takes an event target, which the resolve runnable is dispatched
to. This means that the resolve callback's code doesn't have any ordering
guarantees relative to the processing of other IPC messages coming over the same
protocol.

This adds a new overload to SendXXX with two additional arguments, a lambda
callback which is called if the call succeeds, and a lambda callback which is
called if the call fails. These will be called in order with other IPC messages
sent over the same protocol.

MozReview-Commit-ID: FZHJJaSDoZy
2017-11-20 17:55:32 -05:00
Andrea Marchesini
03a9493409 Bug 1417448 - Better use of monitors in NS_ReadInputStreamToBuffer, r=smaug 2017-11-20 15:18:26 +01:00
Junior Hsu
f5ad53fef0 Bug 1416985 - Fix the telemetry for using legacy cookies.txt, r=jdm 2017-11-16 19:24:00 +02:00
Junior Hsu
2976cce51f Bug 1415120 - Part1: no db access while rebuilding, r=nwgh
--HG--
extra : rebase_source : eae928de8e7c4f827f516dc1fb737ef2b544bbc5
2017-11-15 20:03:00 +02:00
Jan de Mooij
7f30bf48a7 Bug 1417844 part 2 - Remove JSVersion from CompileOptions, CompartmentBehaviors, scripts. r=evilpie 2017-11-17 12:12:39 +01:00
Florian Quèze
b44b6a963a Bug 1405670 - remove support for NS_APP_SEARCH_DIR_LIST and NS_APP_SEARCH_DIR from the directory service, r=adw. 2017-11-17 12:05:20 +01:00
Ben Kelly
156cd8dec2 Bug 1418007 P1 Allow the reserved/initial/source client data and service worker to be marked on LoadInfo. r=baku r=valentin 2017-11-16 13:15:09 -05:00
Brindusan Cristian
89030a420a Merge mozilla-central to inbound r=merge a=merge on a CLOSED TREE 2017-11-16 00:51:41 +02:00
Brindusan Cristian
d0a4ab96a0 Merge inbound to mozilla-central r=merge a=merge 2017-11-16 00:24:15 +02: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
Dragana Damjanovic
d92ddfb3a4 Bug 1413622 - Add a check to avoid a division by zero. r=mayhemer 2017-11-15 15:01:11 +01:00
Dale Harvey
9acfe3f5b3 Bug 1415870 - Update psl list and related tests. r=gerv
MozReview-Commit-ID: aYfQNU7lEJ

--HG--
extra : rebase_source : f39455945d48ce8023e1ea2f326a142a0b1ab248
2017-11-15 12:35:07 +00:00
Valentin Gosu
a77a5282f4 Bug 1416343 - Mark URI interfaces as [builtinclass] r=bagder
MozReview-Commit-ID: 4T0uCkHP1a6

--HG--
extra : rebase_source : fa720f35df16985bcd929a98aeeaf9fbc759c1e6
2017-11-15 13:34:23 +01:00
Margareta Eliza Balazs
3edf7872fb Backed out changeset cfe4b1e6be9b (bug 1416343) for ESlint failing in modules/test/browser/browser_SitePermissions_tab_urls.js:38:14 r=backout on a CLOSED TREE 2017-11-15 13:46:07 +02:00
Valentin Gosu
ba207f8c8c Bug 1416343 - Mark URI interfaces as [builtinclass] r=bagder
MozReview-Commit-ID: 4T0uCkHP1a6

--HG--
extra : rebase_source : 89c283360bc0b30aad34641b4cdce8f5c49615b3
2017-11-13 20:18:46 +01:00
Noemi Erli
c6ea2b9c8f Merge mozilla-central to mozilla-autoland. r=merge a=merge CLOSED TREE 2017-11-15 12:13:56 +02:00
Thomas Nguyen
5bd3a1a2c6 Bug 1416344 - refactor computing referrer policy and remove uninitilized maybe value r=valentin
MozReview-Commit-ID: 7VoRaUSE096

--HG--
extra : rebase_source : 2c0aa81b5751fe187494df75e6d853b64f5b9b47
2017-11-13 19:23:47 +08:00
Andrea Marchesini
ed78be27fa Bug 1416724 - part 4 - AbstractThread::Dispatch return value check in netwerk/base, r=smaug 2017-11-15 07:58:03 +01:00
shindli
385fb3428c Backed out 4 changesets (bug 1416724) for failing /builds/worker/workspace/build/src/dom/media/hls/HLSDemuxer.cpp:89:5 r=backout on a CLOSED TREE
Backed out changeset 45352aa4319d (bug 1416724)
Backed out changeset 01d1e5263bcd (bug 1416724)
Backed out changeset bc854c315ec8 (bug 1416724)
Backed out changeset 35a50167485d (bug 1416724)
2017-11-15 09:49:04 +02:00
Andrea Marchesini
4432192149 Bug 1416724 - part 4 - AbstractThread::Dispatch return value check in netwerk/base, r=smaug 2017-11-15 07:58:03 +01:00
huangwenjun
25322277ce Bug 1415753 - SRTP fails to initialize on mips, switch to use CPU_CISC. r=drno 2017-11-08 18:06:00 -05:00
Sebastian Hengst
4671dc24bf Backed out changeset 173578b3688f (bug 1415870) for failing XPCshell's netwerk/test/unit/test_psl.js. r=backout on a CLOSED TREE 2017-11-14 19:49:04 +02:00
Dale Harvey
8189bdc9ab Bug 1415870 - Update PSL to latest version from github. r=gerv
MozReview-Commit-ID: K7PfBbJMx78

--HG--
extra : rebase_source : 1f7ba99927feeeb54856e88465411c2fd52c7edf
2017-11-09 15:03:34 +00:00
Shih-Chiang Chien
7ab942f01b Bug 1390708 - remove nsBinHexDecoder r=mcmanus
MozReview-Commit-ID: 73NU592iRbX

--HG--
extra : rebase_source : 1cac9e05d615eb07f5448758e4307679189dcc22
2017-10-11 11:58:28 +08:00
Shih-Chiang Chien
f8d0b5bde4 Bug 1390708 - remove BinHex support from stream converter r=mcmanus
MozReview-Commit-ID: 6IAy8iY8CAg

--HG--
extra : rebase_source : 2eb22f7ff0dfd8ae5f5b6a8d4c027c5f5f7e0ff4
2017-10-11 11:31:51 +08:00
Chris Peterson
feb58d9d37 Bug 1416164 - Replace NS_NOTYETIMPLEMENTED with MOZ_ASSERT_UNREACHABLE. r=froydnj
MozReview-Commit-ID: B5TZB3v52wY

--HG--
extra : rebase_source : 56bef4eead24901191f190e31d2841710097cdcf
2017-10-25 00:37:02 -07:00
Daniel Stenberg
f36fff6bfc Bug 1416048 - Use uint32_t for DNS TTL data. r=valentin
--HG--
extra : rebase_source : 55e5b4f2db839755b5e248a21746aec2c6e6b1dc
2017-11-09 15:43:00 -05:00
Geoff Brown
cbb956e0c3 Bug 1407679 - Merge nsIIOService and nsIIOService2; r=nwgh 2017-11-10 07:03:36 -07:00
Nicholas Nethercote
f4dd5e2636 Bug 1414096 (attempt 2) - Remove support for nsISupportsString values in nsPrefBranch::{get,set}ComplexValue(). r=florian.
Bug 1345294 introduced nsPrefBranch::{get,set}StringPref(), which allowed the
getting of utf8 strings from prefs, which previously required using
nsISupportsString with {get,set}ComplexValue. That bug also converted most
uses.

This patch finishes the job.

- It removes the nsISupportsString support.

- It converts existing code that relied on the nsISupportsString.

- It removes the lint that was set up to detect such uses of nsISupportsString.

--HG--
extra : rebase_source : b885ee784704819e181430200af5ef762e269d14
2017-11-10 09:07:48 +11:00
Nika Layzell
ff8b5bd178 Bug 1414974 - Part 3: Move Get{Inner,Outer}WindowWithId onto the specific subclasses, r=smaug
These were originally exposed directly as static methods on nsGlobalWindow, but
as they are clearly associated with either the inner or outer window, it makes
more sense for them to be called as such.

MozReview-Commit-ID: LFq8EfnhDlo
2017-11-09 10:44:47 -05:00
Nika Layzell
3409141758 Bug 1414974 - Part 2: Switch many consumers to nsGlobalWindow{Inner,Outer}, r=smaug
This is a large patch which tries to switch many of the external consumers of
nsGlobalWindow to instead use the new Inner or Outer variants.

MozReview-Commit-ID: 99648Lm46T5
2017-11-09 10:44:47 -05:00
Andrea Marchesini
374f2c997f Bug 1415081 - part 4 - Fix the use of NS_ReadInputStreamToString in DataChannel, r=smaug 2017-11-09 11:18:08 +01:00
Andrea Marchesini
6fd88f7ffb Bug 1415081 - part 3 - WebSocketChannel cannot use ::Available() to know the size of a nsIAsyncInputStream, r=smaug 2017-11-09 11:18:08 +01:00
Andrea Marchesini
dccb5f371a Bug 1415081 - part 1 - gTest for NS_ReadInputStreamToString, r=smaug 2017-11-09 11:18:08 +01:00
Andrea Marchesini
b71cdc9eb5 Bug 1415081 - part 0 - NS_ReadInputStreamToString must support nsIAsyncInputStream, r=smaug 2017-11-09 11:18:08 +01:00
Sebastian Hengst
e3806002a1 merge mozilla-central to mozilla-inbound. r=merge a=merge on a CLOSED TREE 2017-11-09 00:32:30 +02:00
Sebastian Hengst
a353221537 merge mozilla-inbound to mozilla-central. r=merge a=merge 2017-11-09 00:00:16 +02:00
Narcis Beleuzu
57d9eb5fb1 Backed out 1 changesets (bug 1414096) for dt1 failures "devtools/client/commandline/test/browser_cmd_pref3.js" r=backout on a CLOSED TREE
Backed out changeset e843de356b7e (bug 1414096)
2017-11-08 18:04:01 +02:00
Christoph Kerschbaumer
6584da597b Bug 1407891: Allow view-image to open a data: URI by setting a flag on the loadinfo. r=bz 2017-11-08 20:01:41 +01:00
Nicholas Hurley
52ce8728f8 Backout e15196e25f9e for causing bug 1415387 2017-11-08 10:30:58 -08:00
Valentin Gosu
132162d150 Bug 1415206 - Remove RustURL from Gecko r=bagder
This class isn't being used right now, and MozURL is a much better alternative if interaction with rust URLs is required.

MozReview-Commit-ID: ADdYRrrTnr6

--HG--
extra : rebase_source : b36aa26c20e7daaadab1f3360bab0ed4681eb7f8
2017-11-07 17:11:08 +01:00
Narcis Beleuzu
218e1676cb Merge inbound to mozilla-central r=merge a=merge 2017-11-08 12:51:09 +02:00
Nicholas Nethercote
8b3d03c666 Bug 1414096 - Remove support for nsISupportsString values in nsPrefBranch::{get,set}ComplexValue(). r=florian.
Bug 1345294 introduced nsPrefBranch::{get,set}StringPref(), which allowed the
getting of utf8 strings from prefs, which previously required using
nsISupportsString with {get,set}ComplexValue. That bug also converted most
uses.

This patch finishes the job.

- It removes the nsISupportsString support.

- It converts existing code that relied on the nsISupportsString.

- It removes the lint that was set up to detect such uses of nsISupportsString.

--HG--
extra : rebase_source : fb7af066adfa0491a79fae6282a62b08661553c8
2017-10-31 16:34:35 +11:00
Nicholas Hurley
b45caf2d01 Bug 1402014 - Don't (try to) write to the network when we're already closed. r=mcmanus
MozReview-Commit-ID: CkGuzlzDToj
2017-11-07 07:57:37 -08:00
Coroiu Cristina
282fd1a852 Merge inbound to mozilla-central r=merge a=merge 2017-11-07 01:04:34 +02:00
Andrea Marchesini
cc7b359311 Bug 1413920 - nsMultiplexInputStream should call OnInputStreamReady on close, r=smaug 2017-11-06 14:20:15 +01:00
Junior Hsu
e0ae5de7ef Bug 1412218 - Add telemetry probe for how many users with legacy cookie files. r=jdm, data-r=francois 2017-11-05 17:48:36 -05:00
Kris Maglione
27c96362b9 Bug 1412345: Downgrade expanded principals before inheriting. r=bz,krizsa
There are several ways that expanded principals can be used as triggering
principals for requests. While that works fine for security checks, it also
sometimes causes them to be inherited, and used as result principals in
contexts where expanded principals aren't allowed.

This patch changes our inheritance behavior so that expanded principals are
downgraded to the most appropriate constituent principal when they would
otherwise be inherited.

The logic for choosing the most appropriate principal is a bit suspect, and
may eventually need to be changed to always select the last whitelist
principal, but I chose it to preserve the current principal downgrade behavior
used by XMLHttpRequest for the time being.

MozReview-Commit-ID: 9fvAKr2e2fa

--HG--
extra : rebase_source : c30df1b3851c11fed5a1d6a7fb158cec14933182
2017-11-02 19:56:27 -07:00
Michal Novotny
39802915f7 Bug 1414046 - Skip copying mHashArray in CacheFileMetadata::WriteMetadata if it's empty. r=valentin 2017-11-03 03:17:00 -04:00
Christoph Kerschbaumer
3d0a1f002e Bug 1403814 - Block toplevel data: URI navigations only if openend in the browser. r=smaug 2017-11-03 13:23:11 +01:00