Commit Graph

14216 Commits

Author SHA1 Message Date
Thomas Nguyen
2b86f73c62 Bug 1339006 - Specify event target if we run nsIURIClassifier.clasify() from content process.r=ehsan, r=gcp
MozReview-Commit-ID: BztjVMlQngi
2017-03-08 11:06:36 +08:00
Andrea Marchesini
f2a07c0b1c Bug 1344204 - nsBufferedInputStream should be serializable/cloneable following the internal sub streams, r=smaug 2017-03-08 07:48:37 +01:00
Andrea Marchesini
e9195daa8d Bug 1345168 - Get rid of OriginAttributes::Inherit, r=tjr 2017-03-08 07:41:51 +01:00
Andrea Marchesini
8c2ad72d08 Bug 1345168 - Fix the indentation in LoadInfo.cpp, r=tjr 2017-03-08 07:41:20 +01:00
Patrick McManus
5983012246 Bug 1345240 - Trigger Reads After FlushWrite with no new writable streams in h2 r=hurley 2017-03-07 15:56:41 -05:00
Honza Bambas
00410037b0 Bug 1342442 - Add null-check over gService in nsCacheService. r=michal 2017-03-06 05:46:00 -05:00
Florian Quèze
cd762cc83c Bug 1344711 - script-generated patch to remove try blocks around get*Pref calls, r=jaws.
--HG--
extra : rebase_source : c6e20e6e79b0ca5de751c52712d96cbea9432d26
2017-03-07 15:29:48 +01:00
Carsten "Tomcat" Book
087da3f0d9 merge mozilla-inbound to mozilla-central a=merge 2017-03-07 15:13:31 +01:00
Michal Novotny
43f8cee68d Bug 1343916 - CacheFile::Truncate doesn't update hashes in CacheFileMetadata, r=valentin 2017-03-09 17:28:56 +01:00
Jonathan Hao
56383b67ab Bug 1334693 - Test http2 push and origin attributes. r=mcmanus
MozReview-Commit-ID: 8qrhjyyV6Uc

--HG--
extra : rebase_source : a7b25bf4d9fc3abedac7959b0efc3271ea0994a7
2017-03-08 18:17:10 +08:00
Jonathan Hao
7bd0555dbc Bug 1334693 - Add origin attributes to Http2Stream::PushHashKey(). r=mcmanus
MozReview-Commit-ID: He9Ha4SOp2O

--HG--
extra : rebase_source : b4c0fe34f7ee08aea63ce58569a84efd0dc57072
2017-03-08 18:26:08 +08:00
Jonathan Hao
c435bdc697 Bug 1334693 - Add origin attributes to HTTP2 coalescing keys. r=mcmanus
MozReview-Commit-ID: C4ZbYSxWKLu

--HG--
extra : rebase_source : 166847fdd5c571abcb2b298c1f34c48420f41e21
2017-03-08 16:14:06 +08:00
Andrea Marchesini
5074a53881 Bug 1339713 - Use IPCStream everywhere - part 4 - PWebSocket, r=smaug 2017-03-09 14:10:24 +01:00
Andrea Marchesini
5a6434a92a Bug 1339713 - Use IPCStream everywhere - part 2 - PFTPChannel, r=smaug 2017-03-09 14:09:31 +01:00
Wei-Cheng Pan
0ec220a22a Bug 1310127 - Part 6: Use MOZ_MUST_USE in netwerk/protocol/http r=dragana
MozReview-Commit-ID: 6zF76CsegSn

--HG--
extra : rebase_source : b151d1152014f32bc2a3019275d769f907d50145
2017-01-12 15:17:52 +08:00
Wei-Cheng Pan
3303c36f89 Bug 1310127 - Part 5: Use MOZ_MUST_USE in netwerk/protocol/http r=mayhemer
MozReview-Commit-ID: 9xtNZyavZtc

--HG--
extra : rebase_source : 255cd6a9646e9edf0189ac6f31f814cf1c528ff9
2017-01-12 17:49:03 +08:00
Wei-Cheng Pan
ab2969cfa1 Bug 1310127 - Part 4: Use MOZ_MUST_USE in netwerk/protocol/http r=mcmanus
This patch contains some changes that may alter control flows.

MozReview-Commit-ID: Kcc2DWJZ8L5

--HG--
extra : rebase_source : ddb068f7c038f6f0ad75efda941dd6b8da8b949a
2016-12-28 14:43:47 +08:00
Wei-Cheng Pan
03ca0df8a1 Bug 1310127 - Part 3: Use MOZ_MUST_USE in netwerk/protocol/http r=mcmanus
Add assertions.

MozReview-Commit-ID: DPvgKzVr3ip

--HG--
extra : rebase_source : a96d658c8b76180fe5a904106de9a68de16e0383
2017-01-12 17:48:45 +08:00
Wei-Cheng Pan
7aa068fbb7 Bug 1310127 - Part 2: Use MOZ_MUST_USE in netwerk/protocol/http r=Cykesiopka,mcmanus
Log failures or just ignore them, no control flow change.

MozReview-Commit-ID: D748DEjl3Fv

--HG--
extra : rebase_source : cec54fe99637a2292e9d4ddc6f4131f083da509a
2016-12-27 19:05:13 +08:00
Wei-Cheng Pan
5143918e81 Bug 1310127 - Part 1: Use MOZ_MUST_USE in netwerk/protocol/http r=mcmanus
Add MOZ_MUST_USE attirbute to headers and idl files.

MozReview-Commit-ID: 7nZQlZoDrv2

--HG--
extra : rebase_source : e8d9469a3b24932d95bf533c54f43c324ffa8c53
2016-12-27 15:22:07 +08:00
Tim Huang
20060aad91 Bug 1337893 - Part 5: Add a test case for DNS with originAttributes. r=valentin
MozReview-Commit-ID: JzoGMfdmubH

--HG--
extra : rebase_source : dc8ec82f4c1ccf8fe8a744a35853c87dccc0a4a7
2017-02-15 10:36:39 +08:00
Tim Huang
fc6e097c7a Bug 1337893 - Part 4: Updating whole gecko to make all callers of DNS using correct originAttributes. r=baku
MozReview-Commit-ID: D6Vp8ANSzLI

--HG--
extra : rebase_source : f3608b09835040e4a4f8e7675aa53d003f298d32
2017-02-15 10:39:40 +08:00
Tim Huang
2d4b6a79e2 Bug 1337893 - Part 3: Updating Necko for DNS changes. r=valentin
MozReview-Commit-ID: AVEp3hP7XqB

--HG--
extra : rebase_source : ab7bccfc0336a92f837c16eacbf3ae9290f3803b
2017-02-15 17:48:15 +08:00
Tim Huang
defed589eb Bug 1337893 - Part 2: Making the DNS cache be aware of originAttributes. r=valentin
MozReview-Commit-ID: EroJiwwkGHa

--HG--
extra : rebase_source : 409730ef008b02373cc547a890224371806fbf4c
2017-02-14 12:25:35 +08:00
Tim Huang
a36759a331 Bug 1337893 - Part 1: Updating idl and ipdl files of DNS to make them originAttributes aware. r=valentin
MozReview-Commit-ID: 8ev5AU1GKo5

--HG--
extra : rebase_source : d501c3368fe101f0c8a9418627b277c1791718be
2017-02-15 11:53:37 +08:00
Carsten "Tomcat" Book
a25648d3cd Backed out changeset 189b914221f4 (bug 1324243) for wpt-11 bustage 2017-03-06 14:13:03 +01:00
Valentin Gosu
0cb0b2702b Bug 1324243 - Normalize IPv6 r=manishearth
MozReview-Commit-ID: Kxe9eLqvKp6

--HG--
extra : rebase_source : 195cafb81adeb9d5fa0a84535144debe1b26f6ff
2017-03-01 00:01:15 +01:00
Carsten "Tomcat" Book
2cba1fb22e Merge mozilla-central to autoland 2017-03-06 11:10:50 +01:00
Carsten "Tomcat" Book
d0bd960945 merge mozilla-inbound to mozilla-central a=merge 2017-03-06 10:53:27 +01:00
Valentin Gosu
55e829f800 Bug 1344558 - Avoid OOM in nsSimpleURI::SetPath r=mcmanus
MozReview-Commit-ID: JWlN5Q6H59Q

--HG--
extra : rebase_source : f3f1971f33d8fe6b560c1a9aca307219725713c6
2017-03-05 22:55:45 +01:00
Ursula Sarracini
6b1858e254 Bug 1340181 - Hide Activity Stream URL in URLbar r=fkiefer,mconley
MozReview-Commit-ID: F0P5tn2wyG

--HG--
extra : rebase_source : a9f766913b8340e12a4f526dc741e8ed752e6acf
2017-02-22 13:18:09 -05:00
Nick
88d3231652 Bug 1343545 - Moved necessary code out of nsNetUtilInlines.h and removed the file r=bsmedberg
MozReview-Commit-ID: AazctrDbCdf

--HG--
extra : rebase_source : 153265d7b2bf208d8a22c648f621c0f7f40ff405
2017-03-02 09:32:37 -05:00
Nick
a140409193 Bug 1343489 - Remove unnecessary IsNeckoChild() call. r=mcmanus
MozReview-Commit-ID: B8PxDqO6fp5
2017-03-01 17:45:41 -05:00
Patrick McManus
a980860d80 Bug 1340655 - remove h1 pipeline support r=mayhemer 2017-02-17 15:35:37 -05:00
Dragana Damjanovic
29f090a0d6 Bug 1343600 - add TLS handshake Start/Stop events. r=:valentin 2017-03-02 03:07:00 +01:00
Carsten "Tomcat" Book
4a4777d1aa merge mozilla-inbound to mozilla-central a=merge 2017-03-02 14:02:48 +01:00
Nick
18bf80c674 Bug 1337303 - Corrected RFC number cited in comments. r=mcmanus
MozReview-Commit-ID: eg1NRMeb5G

--HG--
extra : rebase_source : 5ba14360e3acf6652d3152109dea9945513b3271
2017-03-01 17:51:07 -05:00
Wes Kocher
9746f81e53 Merge m-c to autoland, a=merge
MozReview-Commit-ID: FzykkWPQCrq

--HG--
rename : browser/modules/test/browser_UsageTelemetry_content.js => browser/modules/test/browser/browser_UsageTelemetry_content.js
rename : browser/modules/test/browser_UsageTelemetry_content_aboutHome.js => browser/modules/test/browser/browser_UsageTelemetry_content_aboutHome.js
rename : browser/modules/test/browser_UsageTelemetry_searchbar.js => browser/modules/test/browser/browser_UsageTelemetry_searchbar.js
rename : browser/modules/test/browser_UsageTelemetry_urlbar.js => browser/modules/test/browser/browser_UsageTelemetry_urlbar.js
2017-03-01 17:48:44 -08:00
Sebastian Hengst
71318f787d Backed out changeset 379093669b39 (bug 1340655) for warning as err.or at nsHttpConnection.cpp(875). r=backout on a CLOSED TREE 2017-03-01 20:20:57 +01:00
Patrick McManus
63212ea3a1 Bug 1340655 - remove h1 pipeline support r=mayhemer
HTTP/1.1 pipelines have been subsumed by the more effective mux of spdy, h2, and soon quic.

The feature was never able to overcome the limitations of HoL blocking
and TCP reset, and their impact on performance and reliability.

Fundamentally mux is the only way we should be approaching that problem.

The massive amount of code - mostly heuristics to try and deal with
the HoL problem (by classifying things onto different transactions,
timers for broken servers, etc..) has become a maintenance burden with
minimal value given the default off state of the feature.

h2 is the new (working) strategy.

--HG--
extra : rebase_source : 5794957c1f078ca435480724d3caf9bdd861b7de
2017-02-17 15:35:37 -05:00
Honza Bambas
51b7039d0c Bug 1343191 - Displayed HTTP cache occupation size may overflow. r=michal
--HG--
extra : rebase_source : bf26da8a240856cc684baf1096d664a6b5e69eef
2017-03-01 09:23:00 -05:00
Michael Layzell
dba2e68a7e Bug 1343302 - Explicitly pass the nsHttpChannel to mCacheOpenRunnable instead of using a closure, r=valentin
MozReview-Commit-ID: 2jPiUdI1DWN
2017-03-01 15:09:44 -05:00
Benjamin Smedberg
d9c7494134 Bug 1332639 - Remove the external string API: nsStringAPI.h/cpp and nsEmbedString.h, r=glandium
MozReview-Commit-ID: 9dZcmMAI0Vk

--HG--
extra : rebase_source : 5561cf7f3318c60f082fff02c5e78aba661f6437
2017-02-27 11:41:52 -05:00
Valentin Gosu
d96e9dfb7a Bug 1340486 - Add licence header r=me DONTBUILD
MozReview-Commit-ID: F9qYkEpxXEd
2017-02-28 17:07:09 +01:00
Patrick McManus
4d766b8889 Bug 1344890 - need to set nsHttpTransaction.mSecurityInfo in Finish0RTT r=dragana 2017-03-08 13:18:24 -05:00
Kris Maglione
ee306e28c0 Bug 1314361 - Part 6: Remove the addonId origin attribute. r=bholley 2016-11-08 17:11:32 -08:00
Dragana Damjanovic
2d58b7e9f1 Bug 1344340 - add text for NS_NET_STATUS_TLS_HANDSHAKE_STARTING and NS_NET_STATUS_TLS_HANDSHAKE_ENDED tansport states. r=valentin 2017-03-06 01:11:00 +01:00
Carsten "Tomcat" Book
110e96be80 Backed out changeset a8564a2c30a3 (bug 1343600) for landing with wrong bug number 2017-03-06 14:39:12 +01:00
Dragana Damjanovic
4ba0e2bf64 Bug 1343600 - add text for NS_NET_STATUS_TLS_HANDSHAKE_STARTING and NS_NET_STATUS_TLS_HANDSHAKE_ENDED tansport states. r=valentin 2017-03-06 01:11:00 +01:00
Patrick McManus
0a3349e548 Bug 1344374 - remove now-meaningless nsIRequest::INHIBIT_PIPELINE r=hurley 2017-03-03 16:46:53 -05:00
Wes Kocher
d2b28917c0 Merge m-c to inbound, a=merge
MozReview-Commit-ID: 7UN77Uvxgus
2017-02-27 13:37:44 -08:00
Wes Kocher
1e95bd721f Merge inbound to central, a=merge
MozReview-Commit-ID: F0XvCKnh8H7
2017-02-27 13:34:55 -08:00
Dragana Damjanovic
499d83ab5a Bug 1343008 - Fix combination of H2, tls1.3 early-data and not safe http methods. r=mcmanus 2017-02-27 15:02:47 -05:00
Valentin Gosu
3eeff608a4 Bug 1340486 - Remove duplication of code at nsHttpNegotiate/NTLMAuth::TestPref and MatchesBaseURI r=mayhemer
MozReview-Commit-ID: L8oS7TFnHJm

--HG--
extra : rebase_source : aac598a3b3722d9bfb370de425d14fbb4960291f
2017-02-27 17:57:59 +01:00
Amy Chung
fd9951f4c7 Bug 1319403 - Modified nsCookieService::FindStaleCookie() and test cases, r=jdm 2017-02-27 18:31:33 +08:00
Wes Kocher
e84fc624ff Merge inbound to central, a=merge
MozReview-Commit-ID: DpCZgRV1csS
2017-02-24 16:46:12 -08:00
Michael Layzell
59878e7979 Bug 1336510 - Part 8: Stop capturing this by value in OSX only code, r=schien
MozReview-Commit-ID: BHWJMHNgdRu
2017-02-24 14:34:29 -05:00
Michael Layzell
9509bedeee Bug 1336510 - Part 5: Workaround lambda static analysis in nsMultiMixedConv, r=valentin
MozReview-Commit-ID: 7Mvh9aeCKOh
2017-02-24 14:34:24 -05:00
Honza Bambas
8a976a079d Bug 1341932 - Ignore preamble in multimixed converter. r=valentin 2017-02-23 09:14:00 -05:00
Dragana Damjanovic
7fcc6ce47a Bug 1337826 - Do not use sticky connection if it is pipeline. r=mcmanus 2017-02-14 10:46:00 -05:00
Dragana Damjanovic
d8b587f15b Bug 1340164 - Fix socketTrasport states in nsHttpTransaction coming from multiple sockets. r=mcmanus 2017-02-22 02:27:00 +01:00
Wes Kocher
7e8f316730 Backed out 8 changesets (bug 1336510) for windows debug mn-e10s failures a=backout
Backed out changeset 419ada2f9e81 (bug 1336510)
Backed out changeset 19239f566a93 (bug 1336510)
Backed out changeset c8aeead6fe83 (bug 1336510)
Backed out changeset 422e63b872b5 (bug 1336510)
Backed out changeset 21869174dfd3 (bug 1336510)
Backed out changeset 57476b9f342d (bug 1336510)
Backed out changeset e842cdaaa7e5 (bug 1336510)
Backed out changeset bd943b368ff7 (bug 1336510)

MozReview-Commit-ID: 2z3Wa9QFkX4
2017-02-23 16:07:41 -08:00
Michael Layzell
24d21a9419 Bug 1336510 - Part 8: Stop capturing this by value in OSX only code, r=schien
MozReview-Commit-ID: BHWJMHNgdRu
2017-02-23 12:24:12 -05:00
Michael Layzell
dc0af656c5 Bug 1336510 - Part 5: Workaround lambda static analysis in nsMultiMixedConv, r=valentin
MozReview-Commit-ID: 7Mvh9aeCKOh
2017-02-23 12:24:12 -05:00
Ehsan Akhgari
8b2af3a15f Bug 1341954 - Break a reference cycle caused by ChannelListener that creates leaks in all tests using it; r=mcmanus 2017-02-23 12:12:56 -05:00
Nathan Froyd
f7fb97ad16 Bug 1338282 - remove profile.dev options from rust-url-capi's Cargo.toml; r=valentin 2017-02-22 17:15:02 -05:00
Honza Bambas
3c1d8fd7b1 Bug 1322355 - Cancel http:// channel when secure update (redirect) to https:// is vetoed to avoid duplicate OnStartRequest notification + added logs. r=michal
--HG--
extra : rebase_source : edb97c1bdfd700ed75c57d1af0018f63428036f0
2017-02-22 09:10:00 -05:00
Patrick McManus
72f7c60874 Bug 1341128 - high level HTTP Channel Success Telemetry r=dragana r=bsmedberg
--HG--
extra : rebase_source : 22e7e39821c8b1f704b11e27979a02041bce8be2
2017-02-20 17:15:36 -05:00
Carsten "Tomcat" Book
9d982b9508 merge mozilla-inbound to mozilla-central a=merge 2017-02-22 14:33:38 +01:00
Sebastian Hengst
10a6e4f120 Backed out changeset f82fd05e7699 (bug 1333899) 2017-02-22 09:59:57 +01:00
Sebastian Hengst
eba24aae1e Backed out changeset fbb7cc8d04b9 (bug 1333899) 2017-02-22 09:59:53 +01:00
Andrea Marchesini
e87ad16573 Bug 1339710 - Remove nsIPartialFileInputStream, r=smaug 2017-02-22 09:41:51 +01:00
Iris Hsiao
f9bdfe10bb Backed out 5 changesets (bug 1339710) for GTest failures in TestSlicedInputStream.StartBiggerThan
Backed out changeset 7c0ec55b44dc (bug 1339710)
Backed out changeset cbb4e1c2aada (bug 1339710)
Backed out changeset c685dca493f5 (bug 1339710)
Backed out changeset 4761a15d45fd (bug 1339710)
Backed out changeset 7561692c1bc7 (bug 1339710)
2017-02-22 16:19:50 +08:00
Tooru Fujisawa
8f6cb3e9d7 Bug 1338262 - Remove legacy generator from netwerk/test/. r=mayhemer 2017-02-22 16:11:34 +09:00
Andrea Marchesini
190bf147a2 Bug 1339710 - Remove nsIPartialFileInputStream, r=smaug 2017-02-22 07:56:29 +01:00
Eric Rahm
cbfbc77ab8 Bug 1333899 - Part 3: Avoid extra copies in nsDataChannel::OpenContentStream. r=bz
This switches over to cloning the URI without it's ref which will most likely
avoid a copy. The new |ParsePathWithoutRef| is used, again to avoid needing a
copy of the path substring.

A pipe is no longer used for the input stream, instead we use a string stream
which in most cases will be able to share the string data buffer rather than
copying it.

For the base64 case in the best case we only allocate the decoded buffer, worst
case there's another buffer for the URL decoded data. So either 3/4 transient
or 1 3/4 transient, both of which are better than 3.5.

MozReview-Commit-ID: 4tYI3iyxMCl
2017-02-21 17:56:36 -08:00
Eric Rahm
57307ce7cf Bug 1333899 - Part 2: Add nsDataHandler::ParsePathWithoutRef. r=valentin
This adds a version of |ParseURI| that only deals with the path portion of the
URI and expects the ref not to be present. It's mainly copy and pasted from
|ParseURI| but updated to use nsString methods rather than NSPR.

Additionaly it only returns a substring to the path passed in for the data
buffer if requested.

|ParseURI| is updated to advance past the scheme and trim the ref, then it
just uses |ParseURIWithoutRef|.

MozReview-Commit-ID: F5h6bcSLd8P
2017-02-21 17:56:35 -08:00
Wes Kocher
5295bd9f91 Merge m-c to inbound, a=merge
MozReview-Commit-ID: AoD5GpFatBw
2017-02-21 17:41:05 -08:00
Wes Kocher
13e1cccb3f Merge inbound to central, a=merge
MozReview-Commit-ID: EEMZdLCheAm
2017-02-21 17:35:01 -08:00
Ehsan Akhgari
8b87856c36 Bug 1340677 - Stop supporting ORIGIN_IS_FULL_SPEC for Firefox; r=mcmanus
This is only used in Thunderbird and SeaMonkey and makes origin
comparisons needlessly slow in Firefox.
2017-02-21 10:37:37 -05:00
Jonathan Hao
ed61d4b763 Bug 1334468 - A crashtest about restricted characters in URI. r=mcmanus
--HG--
extra : rebase_source : bd69aaed16294f4a4d48a89e3ba11eee758434b3
2017-02-10 11:19:59 +08:00
Carsten "Tomcat" Book
85079555b0 Merge mozilla-central to autoland 2017-02-20 14:12:30 +01:00
Carsten "Tomcat" Book
66dea2a3aa Backed out changeset 5124565a51dc (bug 1334468) for failing on own tests 2017-02-20 12:39:11 +01:00
Jonathan Hao
cfa5b03320 Bug 1334468 - A crashtest about restricted characters in URI. r=mcmanus
--HG--
extra : rebase_source : acac1c82c5716428a4fa99aa4036cac8a6d4da87
2017-02-10 11:19:59 +08:00
Shih-Chiang Chien
9c648e86fc Bug 1337721 - Part 2, add xpcshell test for channel priority. r=mayhemer
MozReview-Commit-ID: JbbRg63ufW9

--HG--
extra : rebase_source : 4a32499e62a9c3f9292311a3974d5759bf5a579e
2017-02-10 16:56:04 +08:00
Shih-Chiang Chien
9de058213e Bug 1337721 - Part 1, preserve the channel priority after redirect. r=mayhemer
MozReview-Commit-ID: 14rIrhOcXXK

--HG--
extra : rebase_source : ec26484daa2684313990f54e4d579fe6b08daaa3
2017-02-10 10:45:28 +08:00
Thomas Nguyen
65d9ef988a Bug 1288633 - Add more information when an URL matches Safe Browsing list. r=dragana,francois
MozReview-Commit-ID: 6u0dUOB838F

--HG--
extra : rebase_source : 8800e60e6a3b787f1ebaeafb48057e3a3d509468
2017-02-21 09:46:36 +08:00
Patrick McManus
93f999e4af Bug 1322373 - TLS 1.3 early-data for HTTP/2. r=dragana,mcmanus 2017-02-21 15:19:46 -05:00
Wes Kocher
5e9e84d7ec Backed out changeset a93c0f43ccf8 (bug 1322355) for android build bustage a=backout
MozReview-Commit-ID: 5ecKiKuodUm
2017-02-21 12:37:27 -08:00
Emanuel Hoogeveen
6a5e949037 Bug 1338574 - Part 5: Use MOZ_CRASH_UNSAFE_OOL in Necko. r=valentin
--HG--
extra : rebase_source : 21482d7c7e8b9451f8602a6373f2d0949c4c3f0d
2017-02-21 18:01:56 +01:00
Honza Bambas
1feb471fe0 Bug 1322355 - Cancel http:// channel when secure update (redirect) to https:// is vetoed to avoid duplicate OnStartRequest notification + added logs. r=michal
--HG--
extra : rebase_source : 23012382b21a1fd908d2cbb2a25b7a014f4149b7
2017-02-21 11:30:00 -05:00
Nathan Froyd
2f23818440 Bug 1339617 - move GetClosure call prior to canceling timer; r=mayhemer
Some recent work on timers changed how we handle callbacks and
associated closure data: prior to these changes, canceling timers would
not null out associated closure data, so calling GetClosure() on a timer
after canceling it would return what you had put in.  After these
changes, however, GetClosure() after cancellation would retrieve a null
value, causing anything that assumed non-nullness to crash.  The simple
fix is to move the GetClosure() call prior to Cancel()'ing the timer.
2017-02-21 13:35:52 -05:00
Carsten "Tomcat" Book
73835fd06d Merge mozilla-central to autoland 2017-02-24 11:54:01 +01:00
Thomas Nguyen
517a43f68d Bug 1336240 - Remove observer in PendingLookup and nsChannelClassifier r=dimi,francois
MozReview-Commit-ID: EBQpQzESVZP

--HG--
extra : rebase_source : 16f93024c26cde43a0960b4c9425f8fb60f66ad3
2017-02-24 10:14:07 +08:00
Jonathan Hao
9a4de2ace4 Bug 1323644 - Isolate the HSTS and HPKP storage by first party domain (Necko) r=ckerschb
MozReview-Commit-ID: 6DFPXTXoykc

--HG--
extra : rebase_source : 4c69a918b289f76a75ac463f08a6e43f7b625571
2017-02-14 10:29:41 +08:00
Phil Ringnalda
40752d4230 Backed out changeset 40d227b74dd1 (bug 1322373) for Android build bustage
CLOSED TREE
2017-02-17 19:32:01 -08:00
Nicholas Hurley
8996614036 Bug 1322373 - TLS 1.3 early-data for HTTP/2. r=dragana,mcmanus
MozReview-Commit-ID: 2edRJu2yPXz

--HG--
extra : rebase_source : e53e1aafc5d827f5fc6ef255a641a7dcc7098be0
2017-01-10 06:42:41 -08:00
Wes Kocher
8c4ce17711 Merge inbound to m-c a=merge
MozReview-Commit-ID: DCUf7VEDrTt
2017-02-17 13:38:51 -08:00
Honza Bambas
bb033696f7 Bug 1324419 - Use QueryObject for nsHttpChannel. r=mcmanus
--HG--
extra : rebase_source : 192a4705e4e91bc393a283743a1ad8880da6aeba
2017-02-17 08:08:00 -05:00
Honza Bambas
161afb3eae Bug 1326136 - Let nsHttpConnection close it's transaction on shutdown. r=mcmanus
--HG--
extra : rebase_source : 64ace3aba1174b82d74d3b872395dcc9e44c8a12
2017-02-16 06:50:00 -05:00
Dragana Damjanovic
7d8caf031b Bug 1338876 - Test for a digest auth. r=mcmanus
--HG--
extra : rebase_source : 2a0e7a7ded147c6fd19a9bc60a552408d7acb7d7
2017-02-17 10:44:36 -05:00
Vedant Sareen
7d4bd52fae Bug 1330907 - Rename Telemetry::ID to Telemetry::HistogramID. r=dexter
Changed |print("enum ID : uint32_t {", file=output)| to |print("enum HistogramID : uint32_t {", file=output)| at line 53 of the file |toolkit/components/telemetry/gen-histogram-enum.py|, and then replaced all the textual occurrences of |Telemetry::ID| to |Telemetry::HistogramID| and |ID| to |HistogramID| in 43 other files.
2017-02-16 00:45:15 +05:30
Carsten "Tomcat" Book
afe4d4b240 merge mozilla-inbound to mozilla-central a=merge 2017-02-17 13:24:55 +01:00
David Major
cb834f6908 Bug 1340030: Remove necko_standalone lib (netwerk/standalone/). r=mcmanus
The only users of this library were removed by bug 1239866 and bug 1239870 as part of the larger removal of libxpcomrt in bug 1237409.
2017-02-17 15:17:39 +13:00
Wes Kocher
adaec16e2b Merge m-c to inbound, a=merge
MozReview-Commit-ID: HtopB4vot9e
2017-02-16 17:23:00 -08:00
Blake Kaplan
7f89fb24f2 Bug 1335989 - Avoid a second copy when sending substrings through IPC. r=billm
MozReview-Commit-ID: HF27bYPH7Uq

--HG--
extra : rebase_source : 3b919d462068d76862e38401be1db9add1aebd05
2017-02-15 16:26:04 -08:00
Blake Kaplan
2620a3cb0c Bug 1335989 - Split aData into smaller chunks to avoid going over the IPC message size limit. r=billm
Unfortunately, this copies each chunk twice (once for the PromiseFlatString
and again for the message itself). At first blush it's hard to avoid the
double copy, but it seems like we could make this better.

MozReview-Commit-ID: F7ujVhUj596

--HG--
extra : rebase_source : 110681cdfe5c05ea735cdc60455e915a70bed3dd
2017-02-14 15:27:06 -08:00
Eric Rahm
6d6da9f240 Bug 1332202 - Followup to fix comment to say infallible. DONTBUILD r=me
MozReview-Commit-ID: ByRWrv7nGnM
2017-02-16 11:52:54 -08:00
Carsten "Tomcat" Book
f3b2544de0 Merge mozilla-central to autoland 2017-02-16 13:20:11 +01:00
Carsten "Tomcat" Book
b218b4c6ae merge mozilla-inbound to mozilla-central a=merge 2017-02-16 13:15:55 +01:00
Dragana Damjanovic
fc793df53d Bug 1338876 - Read ww-auth properly. r=mcmanus
--HG--
extra : rebase_source : 61d54449f04d82ff58358315917558f276bba326
2017-02-15 20:38:59 -05:00
Wes Kocher
3797956aa6 Merge m-c to inbound a=merge
MozReview-Commit-ID: BemR756HJnR
2017-02-15 16:33:03 -08:00
Wes Kocher
9738f2b4f7 Backed out 5 changesets (bug 1336510) for mass bustage a=backout CLOSED TREE
Backed out changeset 35d16d04d67d (bug 1336510)
Backed out changeset 41db22e0c13d (bug 1336510)
Backed out changeset 2075037694ed (bug 1336510)
Backed out changeset 71be73be6c4e (bug 1336510)
Backed out changeset 02ccacdbbb93 (bug 1336510)

MozReview-Commit-ID: Lx2kKu7JVvI
2017-02-15 13:40:12 -08:00
Michael Layzell
455475c58b Bug 1336510 - Part 5: Workaround lambda static analysis in nsMultiMixedConv, r=valentin
MozReview-Commit-ID: 7Mvh9aeCKOh
2017-02-15 15:32:44 -05:00
Bill McCloskey
194043ae97 Bug 1339289 - Give names to a lot of common runnables (r=ehsan)
MozReview-Commit-ID: 5IdvK6kgoAW
2017-02-15 12:30:01 -08:00
Jan Horak
cb8a1f1a44 Bug 1339372 - Abort during geolocation request when system DBus is not available; r=kanru
Under some special circumstances the system DBus is not available (for example in sandboxed environment).
This caused a crash during obtaining list of nearby wifi APs for determining user location. This patch
check result of dbus_bus_get() to avoid aborting.

MozReview-Commit-ID: LunRRdQQ4eL
***
Added braces

--HG--
extra : rebase_source : 40400b187a274d581c2f77081e1cddf589d39a78
2017-02-16 09:18:36 +01:00
Jonathan Hao
4bad12b164 Bug 1334690 - Isolate AlternateService mappings by Origin Attributes. r=mcmanus
MozReview-Commit-ID: LWfmmMn25zT

--HG--
extra : rebase_source : a1011393171cab727ae80652b49f928dad50291f
2017-02-14 16:49:59 +08:00
Jonathan Hao
020a6ee9a8 Bug 1334690 - Test that AlternateService is isolated by origin attributes. r=mcmanus
MozReview-Commit-ID: 3e6eiB5roVt

--HG--
extra : rebase_source : 57e16386780d3bf52e5557f3570a8835eb99e361
2017-02-16 17:50:55 +08:00
Junior Hsu
138b96c6ca Bug 1325322 - add HTTP_NET_VS_CACHE_* for large time span, r=michal
MozReview-Commit-ID: L8IISZ1SFCh

--HG--
extra : rebase_source : 67d8c08288023279f431ebaebdddedbca2fa071b
2017-02-14 01:31:00 +08:00
Ehsan Akhgari
c5652aad98 Bug 1339129 - Remove access to HTTP-only cookies from the child process; r=jdm 2017-02-14 10:01:47 -05:00
Carsten "Tomcat" Book
6215212efa Merge mozilla-central to mozilla-inbound 2017-02-14 13:41:43 +01:00
Junior Hsu
a9616aa8f5 Bug 1338154 - not normalize ipv4 for resource and chrome uri. r=valentin 2017-02-13 03:10:00 +08:00
Shih-Chiang Chien
54bcd3b5da Bug 1334068 - proxy release main-thread-only references in nsHttpChannel and HttpBaseChannel. r=mayhemer
MozReview-Commit-ID: 9lojerCPhSb

--HG--
extra : rebase_source : fe493862b74c9fc2be5358e70ef03deae318ad8d
2017-02-07 10:37:11 +08:00
Wes Kocher
252dae269a Merge inbound to central, a=merge
MozReview-Commit-ID: Gx7IszkCDZ4
2017-02-13 17:04:20 -08:00
Sebastian Hengst
ebe4ae4dc3 Backed out changeset c27179ee59e9 (bug 1339129) for failing xpcshell tests netwerk/cookie/test/unit_ipc/test_ipc_parser_0001.js and test_ipc_parser_0019.js. r=backout 2017-02-13 21:23:52 +01:00
Michael Layzell
a71fd85f7d Bug 1339153 - Part 1: Correctly emulate missing headers in nsViewSourceChannel::GetResponseHeader, r=bz
MozReview-Commit-ID: 34bCA7wKkmh
2017-02-13 14:42:24 -05:00
Ehsan Akhgari
cbdcae43c2 Bug 1339129 - Remove access to HTTP-only cookies from the child process; r=jdm 2017-02-13 14:08:38 -05:00
Valentin Gosu
d28a501a3f Bug 1339809 - Update rust-url to version 1.4.0 r=froydnj
MozReview-Commit-ID: 90Pe9sh91S5

--HG--
extra : rebase_source : 117b3e44a3ceffa9b36cb409b1ae8bf7f0287bad
2017-02-15 16:05:11 +01:00
Sylvestre Ledru
0b79b69876 Bug 1338086 - Remove useless else blocks in order to reduce complexity in netwerk/ r=dragana
MozReview-Commit-ID: 2TSxhHWmL2H

--HG--
extra : rebase_source : a8a70bfc3aec34b85d20021036bd2c13cdcfe5f3
2017-02-09 11:21:38 +01:00
Valentin Gosu
6ea6d93279 Bug 1325081 - Change nsHttpChannel to be able to race network with cache r=michal
MozReview-Commit-ID: LmIK9RiKsKp

--HG--
extra : rebase_source : f908b168eb76781e3f398efed9b111a0aca63c29
2017-02-16 15:20:13 +01:00
Valentin Gosu
bc75a46d4a Bug 1325081 - Add interface to delay the cache fetch in order to test network-cache racing of HTTP requests r=michal
MozReview-Commit-ID: 96fSzPw8FHi
* * *
[mq]: over1

MozReview-Commit-ID: 80RePXK1TbR

--HG--
extra : rebase_source : a89470efe71442fb6af36e74ac582e232557f81d
2017-02-15 20:44:09 +01:00
Tom Tromey
d2667a2b27 Bug 1060419 - make AppendPrintf and nsPrintfCString use Printf.h, r=froydnj
MozReview-Commit-ID: 2E8FoiNxU8L

--HG--
extra : rebase_source : 810ac727bef0751f24edea18c52e0ec170bf367d
2016-12-14 09:32:21 -07:00
Tom Tromey
5f8f360823 Bug 1060419 - make log_print use Printf.h, r=froydnj
MozReview-Commit-ID: BIZ1GQEZ1vs

--HG--
extra : rebase_source : 2f1f0aa12493c44f352d9a7e8683e7bb72d2d75b
2016-12-15 20:16:31 -07:00
Tom Tromey
0f3e91830a Bug 1060419 - make nsHttpHandler.cpp use Printf.h, r=froydnj
MozReview-Commit-ID: 5oMUmsrQV3k

--HG--
extra : rebase_source : a1e8bef0d98d616a20872497213f10261d2cf511
2016-12-09 10:23:00 -10:00
Tom Tromey
8b46780e10 Bug 1060419 - make nsCookieService.cpp use Printf.h, r=froydnj
MozReview-Commit-ID: G2ge9NFbDV6

--HG--
extra : rebase_source : 0f83efba40734408fab3e3b523349202c7b448fb
2016-12-09 10:21:55 -10:00
Tom Tromey
f8ab4ddf02 Bug 1060419 - remove unneeded includes of prprf.h, r=froydnj
MozReview-Commit-ID: JifhpA3oOeH

--HG--
extra : rebase_source : 08460997dc3fd91f3065c718e17b41bb4acf8bae
2016-12-09 10:00:01 -10:00
Nicholas Hurley
31b98bda83 Bug 1312754 - Add a service to throttle certain HTTP channels. r=mayhemer
This patch adds (and hooks up) a new service so that HTTP channels marked as
"Throttleable" will periodically be Suspend()ed and Resume()d when more
important operations are going (such as a page load).

While this patch is not responsible for marking channels as "Throttleable",
the general idea is that these would be less-important channels - background
downloads, beacons, etc, and perhaps even resources known to be trackers.

MozReview-Commit-ID: HEZsxS04rRK

--HG--
extra : rebase_source : 03cce85fe7df782e1f6e2da9e5a99997b796aba2
2017-01-10 06:39:18 -08:00
Nicholas Hurley
daad6c8f13 Bug 1312754 (prereq) - Fix compile issues caused by shuffling around unified files. r=mayhemer
MozReview-Commit-ID: 1FIopeftM6G

--HG--
extra : rebase_source : 8c2bae2051b1459b7304a1208990193581fa84d9
2017-01-10 06:34:49 -08:00
Liang-Heng Chen
ce7d6c91d6 Bug 1028195 - make proxy bypass rule consistent; r=bagder
MozReview-Commit-ID: CMAUt1p3L3u

--HG--
extra : rebase_source : 4a33d2ebd55aa501acf74100273490af9c521c63
2017-02-08 15:10:02 +08:00
Nils Ohlmeier [:drno]
0a462392c1 Bug 1317946: unit test for zero length UDP messages. r=schien
MozReview-Commit-ID: Gemk8EiUO31

--HG--
extra : rebase_source : cd3fc124e4a710b6613b19a79028df5aae4a227c
2017-01-06 15:35:08 -08:00
Nils Ohlmeier [:drno]
73dd4c356c Bug 1317946: allow sending of zero length buffers. r=schien
MozReview-Commit-ID: 4vNPewYScEF

--HG--
extra : rebase_source : d678703429b39a2a8bb2127f5fc55528a38fd480
2017-01-13 23:54:51 -08:00
Nils Ohlmeier [:drno]
90182d07b4 Bug 1317946: allow receiving zero size UDP messages. r=schien
MozReview-Commit-ID: B8B1yDOPi3h

--HG--
extra : rebase_source : a0f87bc33584a24a148c0b7aea182da71f7ffdfb
2017-01-04 13:44:14 -08:00
Brian Hackett
01a649c197 Bug 1337112 - Remove links from JSRuntime to its single context and zone group, r=jandem,jonco.
--HG--
extra : rebase_source : ebf319af724d5f829cdf5c2386dc82d49be89989
2017-02-10 16:47:50 -07:00
Daniel Stenberg
e1b82a23c1 bug 1336069: init class member before return, r=mcmanus
MozReview-Commit-ID: GF008Ughmhv

--HG--
extra : rebase_source : 04cf9802f9fedbb88aae7879f64b95d72930f3d2
2017-02-10 00:06:00 +08:00
Sebastian Hengst
6d91e05a95 Backed out changeset 81388598aeac (bug 1325322) for build bustage, at least on Windows. r=backout 2017-02-13 13:21:47 +01:00
Junior Hsu
fe2150fcef Bug 1325322 - add HTTP_NET_VS_CACHE_* for large time span, r=michal 2017-02-13 00:53:00 +01:00
Wes Kocher
4062cb56a0 Merge inbound to central, a=merge
MozReview-Commit-ID: FNYBhhHr4dg

--HG--
rename : netwerk/base/security-prefs.js => security/manager/ssl/security-prefs.js
2017-02-10 15:23:33 -08:00
Honza Bambas
a69e1886a4 Bug 1325655 - Let HttpChannelParent::ConnectChannel delete itself if redirect target nsHttpChannel is not found registered. r=valentin
--HG--
extra : rebase_source : 988ce351db0169a8552f2ed45e2b6c786fe247bb
2017-02-10 10:51:00 -05:00
Masatoshi Kimura
448874c0f1 Bug 1337748 - Move security-prefs.js from netwerk/ to security/manager/. r=keeler,mcmanus
MozReview-Commit-ID: 2TOJG6tRWJZ

--HG--
rename : netwerk/base/security-prefs.js => security/manager/ssl/security-prefs.js
extra : rebase_source : e11ef6fa7264edd41e77d65512a2183c737f34dd
2017-02-08 21:16:27 +09:00
Shih-Chiang Chien
07cf055e88 Bug 1338096 - correct the data type used in PHttpChannel.SetPriority(). r=mayhemer
MozReview-Commit-ID: k5paB7XsTV

--HG--
extra : rebase_source : 674d2bfc8343a4b66ed84627940a0795e7199906
2017-02-09 17:28:54 +08:00