Commit Graph

4681 Commits

Author SHA1 Message Date
Andi-Bogdan Postelnicu
dae38132c5 Bug 1363336 - eliminate useless null-check in for |fd|. r=dragana
MozReview-Commit-ID: KQGPjDMviuj

--HG--
extra : rebase_source : beb126a082f95de25d5c6b08496c1fc54b4b21d9
2017-05-09 16:37:05 +03:00
Wes Kocher
75c2b7a481 Merge m-c to autoland, a=merge
MozReview-Commit-ID: 3BrkDVl7521
2017-05-08 16:24:51 -07:00
Dragana Damjanovic
b035817315 Bug 1362821 - Properly destroy a HalfOpeSocket that is used as a backup for a TFO connection if another H2 connection is established for the same host. r=mcmanus 2017-05-08 18:22:45 +02:00
Ehsan Akhgari
e0f12d7786 Bug 1362806 - Optimize NS_GetDefaultPort() for HTTP(S); r=mcmanus 2017-05-07 22:34:02 -04:00
Carsten "Tomcat" Book
fdc689ba16 merge mozilla-inbound to mozilla-central a=merge 2017-05-05 15:17:26 +02:00
Valentin Gosu
3ccc45df23 Bug 1359697 - Make CaptivePortalService not poll for status when it is in the NOT_CAPTIVE state r=mcmanus
MozReview-Commit-ID: BrxJfipydEj

--HG--
extra : rebase_source : 780f49bd3b6dcf0682f9368c53c0a04c03e0616b
2017-05-04 11:43:25 +02:00
Johann Hofmann
023ccb065e Bug 1337246 - Part 1 - Add a hostnameIsLocalIPAddress function to nsIIOService. r=valentin
MozReview-Commit-ID: 81A37b1juGD

--HG--
extra : rebase_source : 081b160d2822487a2e3b4e05ba34d614f0ad5042
2017-03-31 22:39:45 +02:00
Honza Bambas
a1b64b4694 Bug 1319111 - Expose URI to make security check against on LoadInfo (no LOAD_REPLACE flag). r=bz 2017-01-27 19:10:01 +01:00
Dragana Damjanovic
0f080b064b Bug 1360515 - During TCP Fast Open let necko works as it is used to, but only limit amount of data we write to lower layers, i.e. nss, tcpFastOpenLayer, tcp socket. r=mcmanus 2017-05-04 12:15:33 +02:00
Dragana Damjanovic
a6965692d1 Bug 1359938 - Fix socket status events for TCP Fast Open. r=mcmanus 2017-05-04 12:15:16 +02:00
Dragana Damjanovic
fc3b8dbe53 Bug 1359847 - Improve transaction restart if tfo is not supported. r=mcmanus 2017-05-04 12:15:10 +02:00
Dragana Damjanovic
099e776a6d Bug 1352274 - Add response header indicator for TCP FastOpen suceeded. r=mcmanus 2017-05-04 12:14:54 +02:00
Dragana Damjanovic
33ad6af7aa Bug 1188435 - Check if sendto is implemented. r=mcmanus 2017-05-04 12:14:36 +02:00
Dragana Damjanovic
827d3bbab5 Bug 1188435 - Make TLS 0RTT work with TLS Fast Open. r=mcmanus 2017-05-04 12:14:13 +02:00
Dragana Damjanovic
accc6e95b1 Bug 1188435 - Implement fast open necko part. r=mcmanus 2017-05-04 12:14:04 +02:00
Iris Hsiao
553dbd294c Merge mozilla-central to mozilla-inbound 2017-05-04 11:29:49 +08:00
Yoshi Huang
7652396698 Bug 1284579 - Part 2: revise NS_ShouldCheckAppCache. r=valentin
There's one redudant NS_ShouldCheckAppCache(nsIURI*, bool) is not used
anymore. Also we remove the extra usePrivateBrowsing argument, since we
can get this information from nsIPrincipal.
2017-05-04 09:40:00 +08:00
Yoshi Huang
339c4768ca Bug 1284579 - Part 1:revise NS_UsePrivateBrowsing to get PB from origin attributes. r=valentin 2017-05-04 09:39:17 +08:00
Patrick McManus
26f948c0f3 Bug 1361495 - trigger winsock init early on STS to avoid main thread jank r=nwgh
MozReview-Commit-ID: 9HhHWBwF47Z

--HG--
extra : rebase_source : 63cc79d36fdf713ecb6e513fecd77fffa43bf182
2017-05-02 17:22:53 -04:00
Carsten "Tomcat" Book
b0e1da2a90 merge mozilla-inbound to mozilla-central a=merge 2017-05-03 10:11:26 +02:00
Andrea Marchesini
d591d3c595 Bug 1360887 - nsBufferedInputStream must be able to read from nsIAsyncInputStream, r=smaug
Currently nsBufferedInputStream is able to Fill() data only from sync
inputStream. When a page uses XHR to upload something, it creates a
nsBufferedInputStream around the source inputStream. This stream can be a
IPCBlobInputStream, and in that case, the reading is only supported using
nsIAsyncInputStream interface. nsBufferedInputStream must support it.
2017-05-02 19:32:42 +02:00
Nathan Froyd
0a713b4ab2 Bug 1360538 - convert SimpleBuffer to use NS_DECL_OWNINGTHREAD; r=hurley
The pattern we're using here has a name, so let's use that instead.
2017-05-02 12:46:36 -04:00
Nicholas Hurley
7440d1d042 Bug 1348278 - Limit speculative connections to http[s] only. r=mcmanus
Some protocol handlers don't handle speculative connections too well
(they crash). So, we limit to the most useful protocols. This patch
brought to you by
https://bugzilla.mozilla.org/show_bug.cgi?id=1348278#c21

MozReview-Commit-ID: 8dWGdVtalIS

--HG--
extra : rebase_source : 9ba674282e40d8313fdb8fbd2f1b9ae7567d299d
2017-04-28 11:37:24 -07:00
Andrea Marchesini
b8016bba19 Bug 1360454 - IPCBlobInputStream can take the original stream directly if created on the parent process, r=smaug 2017-04-28 12:16:13 +02:00
Carsten "Tomcat" Book
1045b9730a merge mozilla-inbound to mozilla-central a=merge 2017-04-28 10:36:11 +02:00
Sebastian Hengst
0936d33fb8 Backed out changeset 88c2a0b2dde5 (bug 1319111) for crashing Talos. r=backout 2017-04-28 00:16:39 +02:00
Milan Sreckovic
da5b96ea90 Bug 1304605: Part 2. Optimizing NormalizeIPv4. Seems to be 4-6x faster. r=valentin.gosu
MozReview-Commit-ID: FjkNmbW5I93

--HG--
extra : rebase_source : f3b6e2c07e9376b6b25a62a93cffc4a58584e243
2017-04-26 12:02:58 -04:00
Milan Sreckovic
ff6839a8e1 Bug 1304605: Part 1. Unit tests, including performance, for NormalizeIPv4. r=valentin.gosu
MozReview-Commit-ID: KAecFlYTUfW

--HG--
extra : rebase_source : cddfd6fd05f33d2d2c50caf66669d87dc2f79ce7
2017-04-26 11:56:16 -04:00
Jon Coppeard
eb3c9870bf Bug 1352430 - Add barrier to wrapper cache to clear dying objects that have not yet been finalized r=bz r=sfink
* * *
Code review followup

--HG--
extra : rebase_source : 10c1fd603c2dd1ac2ff5770ae9aec2e9131681ce
2017-04-26 11:18:39 +01:00
Andi-Bogdan Postelnicu
d5f08cd7a3 Bug 1359369 - prevent null pointer dereference in NS_GetIsDocumentChannel. r=valentin
MozReview-Commit-ID: I1iu2miXmjZ

--HG--
extra : rebase_source : ea86f96806ae0536cb799e28c286e92d4c3b4717
2017-04-25 14:38:03 +03:00
Honza Bambas
0504ed64c3 Bug 1319111 - Exposing URI to make security check against on LoadInfo (no LOAD_REPLACE flag). r=bz 2017-01-27 19:10:01 +01:00
Nathan Froyd
042857aede Bug 1360236 - make gSocketThread an internal implementation detail of nsSocketTransportService; r=mcmanus
This change makes the code a little cleaner and reduces the number of
places we call PR_GetCurrentThread, which is important for Quantum DOM
scheduling work.

The conversion was largely automatic, via:

find netwerk/ -name \*.cpp | \
  xargs sed -i -e 's/MOZ_ASSERT(PR_GetCurrentThread() == gSocketThread[^;]*/MOZ_ASSERT(OnSocketThread(), "not on socket thread")/'

and related invocations, with a few manual tweaks at the end.
2017-04-27 14:34:42 -04:00
Michael Layzell
d9adddc93f Bug 1355608 - Part 1: Add tools to nsPermissionManager to await permissions becoming avaliable, r=baku
MozReview-Commit-ID: 1HDS8zw6dpF
2017-04-27 13:41:13 -04:00
Wes Kocher
497d2c96ed Merge m-c to autoland, a=merge
MozReview-Commit-ID: Lmq6phawHD
2017-04-24 16:16:50 -07:00
Andrea Marchesini
70d3bbfdb9 Bug 1353629 - PBlob refactoring - part 12 - nsInputStreamPump should use BufferedStreams, r=smaug
nsInputStreamPump should use the stream as nsIAsyncInputStream if available.
In order to do so, we need to wrap a BufferedStream around it.

MediaResource cannot use a simple sync nsIInputStream when BlobURL are involved
in the content process.
2017-04-24 12:09:41 +02:00
Andrea Marchesini
188d63f58b Bug 1353629 - PBlob refactoring - part 10 - Make nsFileInputStream cloneable, r=smaug
This is important to avoid extra copy when IPCInputStreamStorage::GetStream()
returns a file inputStream
2017-04-24 12:09:41 +02:00
Nicholas Hurley
6474ffcc78 Bug 1348460 - make predictor::learn async. r=Ehsan
Serializing and sending IPC messages takes a lot of time, and it gets in the way of image loading. Making this functionality async gets out of the way of image loading (among other things).

The test has been changed to pump the main thread after calling predictor.learn so the multiprocess version can actually run to completion. This isn't strictly necessary in the single process version, but it makes the code changes (which are already pretty invasive) simpler.

MozReview-Commit-ID: 7jvhomlygbf

--HG--
extra : rebase_source : a779a498f83a2b02d2d634eff63d15f483793046
2017-04-17 17:22:46 -07:00
Wes Kocher
d973551173 Merge inbound to central, a=merge
MozReview-Commit-ID: FHfhKIIlItM
2017-04-21 17:30:43 -07:00
dOn'tReallycAre
7686899ef4 Bug 1357155 - Convert PRCList usage in nsStandardURL to LinkedList. r=erahm 2017-04-21 01:46:12 +09:00
Patrick McManus
e775512982 Bug 1297481 - add shutdown state to protocolproxyservice r=bagder
the protocol proxy service asserts that is in a clean state at dtor -
normally this happens through observe("xpcom-shutdown") but its
actually possible of other events in the xpcom run queue to
'unitialize' things before the dtor.. add a state in which fail codes
are returned instead.

MozReview-Commit-ID: XaNQEZUsRP

--HG--
extra : rebase_source : 054b01269d36dd8e8e24056f389c94a0d9183436
2017-04-19 08:42:09 -04:00
Wes Kocher
5ce5528fb1 Merge inbound to m-c a=merge
MozReview-Commit-ID: DQDuEiYLWCO
2017-04-20 15:30:43 -07:00
Sebastian Hengst
711bc84e34 Backed out changeset b225ae4bfc09 (bug 1353629) 2017-04-20 18:36:42 +02:00
Sebastian Hengst
f17bba30ba Backed out changeset 747a31f9b7b9 (bug 1353629) 2017-04-20 18:36:33 +02:00
Andrea Marchesini
b50ec2b3c0 Bug 1353629 - PBlob refactoring - part 12 - nsInputStreamPump should use BufferedStreams, r=smaug
nsInputStreamPump should use the stream as nsIAsyncInputStream if available.
In order to do so, we need to wrap a BufferedStream around it.

MediaResource cannot use a simple sync nsIInputStream when BlobURL are involved
in the content process.
2017-04-20 15:20:58 +02:00
Andrea Marchesini
a324d1c1c0 Bug 1353629 - PBlob refactoring - part 10 - Make nsFileInputStream cloneable, r=smaug
This is important to avoid extra copy when IPCInputStreamStorage::GetStream()
returns a file inputStream
2017-04-20 15:20:56 +02:00
Andrea Marchesini
e1cf92c22c Bug 1353684 - nsIFileInputStream must return NS_ERROR_NOT_FOUND if Deserialize() fails, r=smaug 2017-04-20 13:39:51 +02:00
Wes Kocher
cb8ce82cca Merge inbound to m-c a=merge 2017-04-19 17:10:04 -07:00
Tom Tung
8c93a46f2a Bug 1330297 - Part 1: Strip leading or trailing HTTP whitespace for Header value to follow the spec and share code bewteen fetch and XHR. r=baku 2017-04-10 16:15:29 +08:00
Valentin Gosu
0a4d506e21 Bug 1354349 - Add nsIChannel.isDocument that checks if LOAD_DOCUMENT_URI is set, or if LOAD_HTML_OBJECT_DATA and the channel has the appropriate MIME type r=mcmanus,mystor
MozReview-Commit-ID: K28Opd9JTr2

--HG--
extra : rebase_source : d1a786d9b4318be15f195fdc330489121ebd6ece
2017-04-20 10:15:06 +08:00
Carsten "Tomcat" Book
7bcdfe36bc Merge mozilla-central to autoland 2017-04-19 10:57:24 +02:00