Граф коммитов

6244 Коммитов

Автор SHA1 Сообщение Дата
Michal Novotny 7f22d3a3e9 Bug 1325336 - Generate statistics for cache performance on the given HW, r=valentin, r=honzab
CachePerfStats gathers performance data for single open, read and write operations as well as the whole cache entry opening. It maintains long term and short term average. The long term average filters out excessive values and it represents and average time for a given operation when the cache is not busy. The short term average represents the current cache speed. By comparing these two stats we know pretty quickly that the cache is getting slower and then we race the cache with network immediately without a delay. Otherwise the delay is based on the average cache entry open time.
2017-06-22 15:44:00 +02:00
Junior Hsu f74e69f0bc Bug 1373656 - Move |ReportRcwnStats| before we set mTransactionPump to nullptr. r=michal 2017-06-22 03:42:00 -04:00
Kate McKinley 9108666ee6 Bug 1374443 - Decrease HSTS priming timeout to 2s r=ckerschb
MozReview-Commit-ID: 7brYAUXwHvE

--HG--
extra : rebase_source : 4ef6f27cc855b828ac742f2990dc12668bd910aa
2017-06-19 14:35:27 -07:00
Wes Kocher c0e1236f1a Merge autoland to m-c a=merge
MozReview-Commit-ID: LFtpTAueYrF
2017-06-20 18:24:29 -07:00
Paolo Amadini 10ee6a5c4e Bug 1362970 - Part 2 - Script-generated patch to convert .then(null, ...) to .catch(...). r=florian
Changes to Promise tests designed to test .then(null) have been reverted, and the browser/extensions directory was excluded because the projects it contains have a separate process for accepting changes.

MozReview-Commit-ID: 1buqgX1EP4P

--HG--
extra : rebase_source : 3a9ea310d3e4a8642aabbc10636c04bfe2e77070
2017-06-19 11:32:37 +01:00
Carsten "Tomcat" Book de892834ed Merge mozilla-central to mozilla-inbound 2017-06-20 11:31:34 +02:00
Carsten "Tomcat" Book 013fb0680e merge mozilla-inbound to mozilla-central a=merge 2017-06-20 11:26:40 +02:00
Wes Kocher 17a16ffd2f Merge m-c to inbound, a=merge
MozReview-Commit-ID: Gf5xDaCWnPi
2017-06-19 17:34:36 -07:00
Honza Bambas 9e38f7b8fc Bug 1319111 - Expose 'result principal URI' on LoadInfo as a source for NS_GetFinalChannelURI (removes some use of LOAD_REPLACE flag). r=bz, r=mikedeboer
--HG--
extra : rebase_source : c9690f4b8decd39a10da676bd50ec09cb2ad8892
2017-05-30 18:07:59 +02:00
Valentin Gosu 5a85d67472 Bug 1322610 - MOZ_DIAGNOSTIC_ASSERT that serialized load context is not null in HttpChannelChild r=mcmanus
As part of network security, we currently crash the main process in NeckoParent::GetValidatedOriginAttributes if the SerializedLoadContext is null. This makes it difficult to find out who created the channel that has a null SLC. Adding this assertion to the child allows us to get a nice stack trace and maybe identify the root cause.

MozReview-Commit-ID: 7rz91oEaiRi

--HG--
extra : rebase_source : b411e1e9494623bacb506a2f820902a3f7aa7c2a
2017-06-14 17:17:10 +03:00
Kate McKinley 396962011a Bug 1363546 - Store and report HSTS upgrade source r=francois,keeler,mayhemer p=francois
Add a field to the HSTS cache which indicates the source of the HSTS
entry if known, from the preload list, organically seen header, or HSTS
priming, or unknown otherwise. Also adds telemetry to collect the source
when upgrading in NS_ShouldSecureUpgrade.

MozReview-Commit-ID: 3IwyYe3Cn73

--HG--
extra : rebase_source : 9b8daac3aa02bd7a1b4285fb1e5731a817a76b7f
2017-05-23 15:31:37 -07:00
Valentin Gosu 6dcba0bb7f Bug 1369044 - Change assertion to handle call failure r=michal
MozReview-Commit-ID: KqOfHSNwqEQ

--HG--
extra : rebase_source : eac98ee16b4dd94b32bed7d87f640cafeec3e7fc
2017-06-19 16:55:12 +02:00
Carsten "Tomcat" Book ea1b86680c Backed out changeset 9846de3bd954 (bug 1372405)
--HG--
extra : rebase_source : 5d4a48e8ec394c329994689d938d2a6e9b2752b0
2017-06-20 08:27:02 +02:00
Bill McCloskey 4592152411 Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-19 22:25:47 -07:00
Bevis Tseng d1637b9c5a Bug 1372453 - Part 2: Name the caller of ProxyReleaseEvent. r=billm
MozReview-Commit-ID: LYhSWnZkq0i
2017-06-14 09:27:17 +08:00
Valentin Gosu d54cba6927 Bug 1374591 - Use the correct progressMax in nsHttpChannel::OnDataAvailable for alt-data content r=michal
MozReview-Commit-ID: KUJXHwkooHE

--HG--
extra : rebase_source : 27c618c06d43cad8e6729aa6beb0d0afeaaf5276
2017-06-20 12:31:40 +02:00
Carsten "Tomcat" Book bf5e392d4d Merge mozilla-central to autoland 2017-06-20 11:32:41 +02:00
Tim Huang b6286c46af Bug 1333651 - Part 2: Spoofing Navigator object when 'privacy.resistFingerprinting' is true. r=arthuredelstein,Ehsan
This patch makes navigator object to return spoofed value for fields have fingerprintable
concerns. This changes the worker navigator as well.

MozReview-Commit-ID: E2SLNZRfuVP

--HG--
extra : rebase_source : 960bafbe41382eba891ad807c37a822ba6a758c8
2017-06-01 14:54:59 +08:00
Tim Huang 95f93a6ce6 Bug 1333651 - Part 1: Spoofing the User-Agent header when 'privacy.resistFingerprinting' is true. r=arthuredelstein,mcmanus
This patch makes nsHttpHandler to use a spoofed userAgent in the User-Agent header
when 'privacy.resistFingerprinting' is true, the spoofed userAgent string has a
fixed appName, platform and buildID. The only variant in it is the version number,
it will be rounded to the nearest 10(e.g. 40, 50, 60) for reducing fingerprinting
across release versions.

MozReview-Commit-ID: BTGuIJp94U1

--HG--
extra : rebase_source : ab0b6379630c0e962636e624f2caccca6cc9f934
2017-06-08 14:38:21 +08:00
Liang-Heng Chen 3157086820 Bug 1360332 - Part 1: avoid calling FailDiversion() twice; r=dragana
MozReview-Commit-ID: DxI3c3223hJ

--HG--
extra : rebase_source : c7581ec11a8db113be9c8da0aeb6ca8ee3cc79d6
2017-06-14 11:59:16 +08:00
Liang-Heng Chen d8663d4fd7 Bug 1360332 - Part 0: remove unused function parameter; r=dragana
MozReview-Commit-ID: EGshnNhrVdl

--HG--
extra : rebase_source : d10c40f921a616d2ec4c7cea7bc14625c0e82f8f
2017-06-14 11:58:29 +08:00
Andreas Farre a288a87eba Bug 1373675 - Add hasListenerFor to nsIWebSocketEventService. r=mcmanus
This makes it possible to check if a Window has 'active' WebSockets.
2017-06-16 07:58:00 -04:00
Jan Keromnes 57720f1ea5 Bug 1372853 - Use nullptr in /netwerk (clang-tidy: modernize-use-nullptr). r=valentin 2017-06-16 01:35:00 -04:00
Bill McCloskey 0767e31489 Bug 1372736 - Avoid using AbstractThread for non-media MozPromises (r=bkelly)
MozReview-Commit-ID: BBi0pK4DXxf
2017-06-15 20:16:25 -07:00
Yoshi Huang 5dcdd16255 Bug 1267075 - Part 1: call SetBlockedRequest when CSP check failed. r=bz
As a follow-up from bug 1206961, we will remove calling CanLoadImage in
this bug. Also in the case of CSP check failed, we will call
SetBlockedRequest in those cases.

See https://bugzilla.mozilla.org/show_bug.cgi?id=1267075#c30 for the
analysis between the old and new setup.
2017-06-16 10:12:08 +08:00
Valentin Gosu 7a1ca14038 Bug 1367810 - Don't race cache with network when CORS preflight is required for a channel r=michal
MozReview-Commit-ID: CPyafHsMYoy
2017-06-16 00:32:00 +03:00
Honza Bambas 5faa1a752e Bug 1373064 - Add null-check for a connection entry to nsHttpConnectionMgr::IsConnEntryUnderPressure. r=mcmanus 2017-06-15 07:55:00 -04:00
Ben Kelly 48263c68de Bug 1363848 P4 Only set LOAD_BYPASS_SERVICE_WORKER when resetting the child channel if we're not in "manual" redirect mode. r=dragana 2017-06-15 07:52:42 -07:00
Ben Kelly b3523ebd61 Bug 1363848 P3 Don't set LOAD_BYPASS_SERVICE_WORKER flag on internal redirects in nsHttpChannel. r=dragana 2017-06-15 07:52:42 -07:00
Ben Kelly 45b30214c3 Bug 1363848 P2 Do not intercept internal redirects regardless of LOAD_BYPASS_SERVICE_WORKER flag. r=dragana 2017-06-15 07:52:41 -07:00
Ben Kelly 92ebf95b57 Bug 1363848 P1 Record the last redirect flags on the http channel. r=dragana 2017-06-15 07:52:41 -07:00
Michal Novotny 17a6f52d45 Bug 1367742 - Crash in mozilla::net::nsHttpChannel::ContinueProcessRedirection, r=valentin, r=honzab
Setting mFirstResponseSource in nsHttpChannel::OnStartRequest when cache wins is too late, because the channel might already started redirecting in nsHttpChannel::ReadFromCache. In this case nsHttpChannel::OnStartRequest is not call at all for the cache pump and we would proceed the network response which should be ignored.
2017-06-15 13:47:33 +02:00
Bill McCloskey d7df561295 Bug 1372426 - More detailed names for nsInputStreamReadyEvent (r=erahm)
MozReview-Commit-ID: 6beE0eMCxg7
2017-06-14 14:44:04 -07:00
Carsten "Tomcat" Book 4f44c026f2 Merge mozilla-central to mozilla-inbound 2017-06-14 14:50:11 +02:00
Carsten "Tomcat" Book 5e8c1546ec merge mozilla-inbound to mozilla-central a=merge 2017-06-14 14:45:26 +02:00
Kershaw Chang 14ca5d5894 Bug 1360581 - Part3: Add setTopWindowURIIfUnknown in nsIHttpChannelInternal, r=mayhemer
Since the uri classifier needs topWindowURI to decide whether or not to enable channel annotation, we have to allow to change this attribute in js for passing the test.

--HG--
extra : rebase_source : c5effa05fecef0d32600e4c9c926dbfa77c2ca6f
2017-06-13 01:21:00 +02:00
Kershaw Chang c0c44ffb82 Bug 1360581 - Part2: Do channel annotation a bit earlier and only for third-party uri, r=francois
This patch includes two changes:
1. The current channel annotation is happened at nsChannelClassifier::OnClassifyComplete and this is too late because this channel might be already hit the network.
This patch adds a new API CheckIsTrackerWithLocalTable in nsChannelClassifier to check if the URI is in local blacklist and whitelist before calling BeginConnectActual.
Please note that whitelist will be checked only when TP is disabled.
2. Skip channel annotation for first-party and top-level load http channels

--HG--
extra : rebase_source : 78f98f8200d3dbb1cb96cd0a33901b2a82227974
2017-06-13 01:16:00 +02:00
Wes Kocher 6c1a0ae549 Backed out 6 changesets (bug 1371699) for various failures including frequent img-blobURI-2.html failures and leaks a=backout
Backed out changeset 67a27cf0ab80 (bug 1371699)
Backed out changeset 7e494fa90087 (bug 1371699)
Backed out changeset 30405ec37e1e (bug 1371699)
Backed out changeset 2d67624a01dc (bug 1371699)
Backed out changeset 503c9d22e6bb (bug 1371699)
Backed out changeset eedcb67a9fb6 (bug 1371699)

MozReview-Commit-ID: 4HydLjK7Ond
2017-06-13 17:50:11 -07:00
Wes Kocher e883883e7c Backed out changeset 45b5cadadc22 (bug 1372426) because it's blocking a backout a=backout
MozReview-Commit-ID: Jl0zxef8R9k
2017-06-13 17:48:38 -07:00
Bill McCloskey 1b366c9ec9 Bug 1372426 - More detailed names for nsInputStreamReadyEvent (r=erahm)
MozReview-Commit-ID: 6beE0eMCxg7
2017-06-13 15:24:08 -07:00
Wes Kocher fdca69feeb Backed out changeset e8a63038d787 (bug 1372426) for build failures in nsStringStream.cpp a=backout
MozReview-Commit-ID: 8ci8nKoiLhz
2017-06-13 15:20:12 -07:00
Bill McCloskey 7efe80ba16 Bug 1372426 - More detailed names for nsInputStreamReadyEvent (r=erahm)
MozReview-Commit-ID: 6beE0eMCxg7
2017-06-13 14:53:26 -07:00
Bill McCloskey c85ab6308c Bug 1366072 - Change promises to take nsISerialEventTarget instead of AbstractThread (r=jwwang)
MozReview-Commit-ID: 4azUhSB6whu
2017-06-13 14:51:01 -07:00
Boris Zbarsky 5193353a61 Bug 1371699 part 4. Make nsIMultiplexInputStream not inherit from nsIInputStream. r=bkelly
This is a preexisting issue that makes nsMultiplexInputStream multiple-inherit
from nsIInputStream: once via nsIMultipartInputStream and once via
nsIAsyncInputStream.  This causes problems once we end up with more multiplex
streams that are async streams, because then some assingments to
nsCOMPtr<nsIInputStream> start asserting.  This patch just removes the footgun
by getting rid of the multiple inheritance.
2017-06-13 16:16:39 -04:00
Kershaw Chang 683a1fc058 Bug 1360581 - Part1: Avoid nsChannelClassifier being created twice, r=mayhemer
The original code creates nsChannelClassifier and calls ShouldEnableTrackingProtection twice when TP is enabled. To avoid redundancy, this patch makes channel classifier as a data member in nsHttpChannel. Note that the data member is a weak ptr to prevent ref count cycle.

--HG--
extra : rebase_source : 11d2e17c2b45b70e3cd407d882ddf0c57ad51755
2017-06-06 02:35:00 +02:00
Kershaw Chang b59d3c86ec Bug 1343747 - Part 2: Label runnables in WebSocketEventListenerChild. r=mayhemer
Use inner window id to get the window's event target and use it to label runnables.
2017-06-13 20:15:00 -04:00
Kershaw Chang b4232a0b60 Bug 1343747 - Part 1: Label runnables in WebSocketChannelChild. r=mayhemer
Use nsContentUtils::GetEventTargetByLoadInfo to get a labeled event target and use it to dispatch runnables.
2017-06-13 20:14:00 -04:00
Wes Kocher ebf35623cd Merge mozilla-central to autoland a=merge
UPGRADE_NSS_RELEASE
2017-06-13 18:57:32 -07:00
Kate McKinley 37a7ace256 Bug 1359987 - Update HSTS priming telemetry r=ckerschb,francois,mayhemer p=francois
Collect telemetry for all requests to get an exact percentage of
requests that are subject to HSTS priming, and how many result in an
HSTS Priming request being sent. Clean up telemetry to remove instances
of double counting requests if a priming request was sent.

HSTSPrimingListener::ReportTiming was using mCallback to calculate
timing telemetry, but we were calling swap() on the nsCOMPtr. Give it an
explicit argument for the callback.

Add tests for telemetry values to all of the HSTS priming tests. This
tests for the minimum as telemetry may be gathered on background or
other requests.

MozReview-Commit-ID: 5V2Nf0Ugc3r

--HG--
extra : rebase_source : daa357219a77d912a78b95a703430f39d884c6ab
2017-05-09 15:36:07 -07:00
Bill McCloskey 7cb6a23814 Bug 1365101 - Convert NS_GetCurrentThread uses in netwerk/ (r=meyhemer)
MozReview-Commit-ID: IHBt6XAG8em
2017-06-12 20:21:43 -07:00
Ben Kelly 93851fe7bb Bug 1370617 Set Authorization header using eVarietyRequestDefault to avoid exposing it to service workers. r=dragana 2017-06-12 06:52:44 -07:00
Kershaw Chang f903c2a340 Bug 1343743 - Part5: Label PAltDataOutputStreamChild, r=mayhemer
Use neckoTarget in HttpChannelChild to label PAltDataOutputStreamChild actor.
2017-06-12 00:24:00 +02:00
Kershaw Chang e592661572 Bug 1343743 - Part2: Set event target for WyciwygChannelChild, r=mayhemer
We should not directly use MainThreadChannelEvent in WyciwygChannelChild, instead, using NeckoTargetChannelEvent.
2017-06-12 00:21:00 +02:00
Kershaw Chang 7f73aa6ef7 Bug 1343743 - Part1: Refactoring for mNeckoTarget and ChannelEvent, r=mayhemer
This patch contains two parts below:
1. mNeckoTarget
Since almost all child channels in necko need mNeckoTarget to dispatch runnables to main thread, it seems worth to have a holder class of mNeckoTarget and ask child channels to inherit it.

2. ChannelEvent
A lot of classes in FTPChannelChild and HttpChannelChild inheriting ChannelEvent and override GetEventTarget. It should be worth to extract the same code and put it in the same space.
2017-06-12 00:21:00 +02:00
Honza Bambas a3533ddf2a Bug 1370340 - Carry TopLevelOuterContentWindowId to redirected HTTP channels. r=mcmanus
--HG--
extra : rebase_source : dc78c705f0c738b07352b4a7d6d80eac7e65b5b4
2017-06-10 03:47:00 -04:00
Nicolas B. Pierron dbebd16202 Bug 1371260 - Allow fetchCount/lastFetched to be read when either cache or alt-data cache entry is available. r=valentin 2017-06-09 13:52:52 +00:00
Honza Bambas 73da6dadb9 Bug 1369496 - linux build fix, r=me 2017-06-08 19:42:42 +02:00
Honza Bambas e9c7254a37 Bug 1369496 - HTTP transaction read throttling algorithm improvements. r=mcmanus 2017-06-08 09:45:00 -04:00
Nicolas B. Pierron aa07911158 Bug 1368675 - Expose nsICacheEntry fetchCount and lastFetched time as read-only on the nsICacheInfoChannel. r=valentin 2017-06-05 12:06:19 +00:00
Kris Maglione 6d24c4b91a Bug 1322235: Part 7 - DeCOMtaminate moz-extension protocol handler. r=billm
This removes unnecessary COM overhead from the extension protocol service,
particularly from the flag lookup code, which is called often, and from hot
paths. The devirtualized lookups should have virtually no overhead for
extensions without web-accessible resources, and very little overhead except
when resources are specified as non-prefix globs.

MozReview-Commit-ID: 4hQ7GuQSjvW

--HG--
extra : rebase_source : 61897a204abd915ad61852fa475cde2de51753f3
2017-05-23 14:40:38 -07:00
Shih-Chiang Chien e4a31c0691 Bug 1369878 - background channel might be closed in the middle of init procedure during shutdown. r=mayhemer
MozReview-Commit-ID: L1Om8h4fBfU

--HG--
extra : rebase_source : de87b3ff00b5af6c863d607209d076145e324669
2017-06-03 14:29:37 +08:00
Liang-Heng Chen 117950c731 Bug 1341266 - create http/2 stream for urgent-start; r=mcmanus
MozReview-Commit-ID: GIZuAmigK9n

--HG--
extra : rebase_source : 59c9ac3428943de90b2044f44d4632b084786d6b
2017-05-19 00:50:15 +08:00
Henri Sivonen 432653453a Bug 1261841 part 2 - Use encoding_rs instead of uconv. r=emk,mystor.
MozReview-Commit-ID: 15Y5GTX98bv
2017-06-13 13:23:23 +03:00
Honza Bambas e98f5af878 Bug 1365307 - Throttling of HTTP transactions. r=mcmanus 2017-06-01 12:16:00 -04:00
Shih-Chiang Chien 738f6da3cf Bug 1015466 - Part 5, move tracking protection and safe browsing state update IPC to PBackground. r=mayhemer
NotifyTrackingProtectionDisabled/NotifyTrackingResource/SetClassifierMatchedInfo updates tracking protection and safe browsing states from parent to child.
They should at least handled by child process before OnStopRequest. Move them to PHttpBackgroundChannel can ensure that.

MozReview-Commit-ID: 8T6k9z9FgrI

--HG--
extra : rebase_source : fd26e2b4309a31e0a9bb16c9236eb4a1875518dc
2017-05-26 11:04:03 +08:00
Shih-Chiang Chien 2be0682f1d Bug 1015466 - Part 4, implement OnStartRequestSent/OnStopRequest/OnTransportAndData/OnDiversion on background channel. r=mayhemer
OnStartRequestSent is used to ensure the execution order between OnStartRequest and all other messsages sent over PBackground.
IPC messages sent before OnStartRequestSent can be processed immediately while received by content process.
IPC messages sent after OnSartRequestSent need to be pending until OnStartRequestReceived is called.

MozReview-Commit-ID: 5Vbb8SBQmW8

--HG--
extra : rebase_source : 81ddce949d2a658e227e1e67d7d4313f7c66513f
2017-05-15 18:58:31 +08:00
Shih-Chiang Chien e7a014adc4 Bug 1015466 - Part 3, PHttpBackgroundChannel lifecycle management. r=mayhemer
PHttpBackgroundChannel is created by content process because PBackground IPDL
can only be initiated from content process. The background channel deletion is
controlled by chrome process while PHttpChannel is going to be closed or canceled.

BackgroundChannelRegistrar is introduced for pairing HttpChannelParent and
HttpBackgroundChannelParent since they are created over different IPDL
asynchronously.

nsIParentRedirectingChannel.continueVerification is introduced to asynchronously
wait for background channel to be established on the new channel during the
Redirect2Verify phase.

MozReview-Commit-ID: 41l8ivan8iA

--HG--
extra : rebase_source : b8b6d7e7c037efaa9fc13df14191205c603e833a
2017-04-24 11:09:35 +08:00
Shih-Chiang Chien ccfe1721d6 Bug 1015466 - Part 2, break reference cycle among HttpChannelParent, HttpChannelParentListener, and nsHttpChannel while async open is failed. r=mayhemer
AsyncOpen procedure can failed and trigger FailedAsyncOpen IPC to do the clean up.
However FailedAsyncOpen might not complete if content process is destroyed at the meantime.
We can delay the timing of holding the strong reference to parent listener and channel object
to make sure no reference cycle is created by HttpChannelParent. In addition, clean up the
strong reference as soon as FailedAsyncOpen IPC is triggered.

MozReview-Commit-ID: LDOt0BpBgFe

--HG--
extra : rebase_source : 38e1128e8c361a2422ec4d8292b591ab3b3ef41f
2017-05-03 19:20:12 +08:00
Shih-Chiang Chien c878e800ea Bug 1015466 - Part 1, skeleton of PHttpBackgroundChannel. r=mayhemer
PHttpBackgroundChannel is introduced to deliver OnStopRequest/OnTransportAndData/OnProgress/OnStatus on background thread.
FlushedForDiversion/DivertMessages is moved to PHttpBackgroundChannel to ensure no more channel event are delivered after these two messages on the background channel.
OnStartRequestSent is introduced to synchronize the execution order between OnStartRequest (main thread IPC) and all other messages on PHttpBackgroundChannel.

MozReview-Commit-ID: HfqvPML6EKw

--HG--
extra : rebase_source : 423709763e1abf1362347bc2d3141e2d33aed46a
2017-05-15 16:01:10 +08:00
Shih-Chiang Chien a06d325b04 Bug 1015466 - Part 0, fix warning/error covered by unified build. r=mayhemer
MozReview-Commit-ID: KUHl1ZBuddC

--HG--
extra : rebase_source : 1bc0649cbfc9cd5336d2fbec23fb8ee6eea5b44a
2017-01-16 18:20:42 +08:00
Ryan VanderMeulen b2f44e5181 Merge inbound to m-c. a=merge 2017-05-31 20:25:52 -04:00
Valentin Gosu 7b6dbd12fb Bug 1356097 - Improve correctness of HTTP_PAGE_* telemetry r=mcmanus
When the last request is removed from the load group, we report telemetry for the default load request. This was done without checking if the request was successful, which may cause us to report telemetry for failed requests as well.
Also, the NullHttpChannel had its timingEnabled attribute set to true, which could lead us to report invalid telemetry

MozReview-Commit-ID: 5w7rd2V17Xd

--HG--
extra : rebase_source : 60785ebc38da8880aa6ded668fed8af81c3d60e9
2017-05-29 22:15:37 +02:00
Valentin Gosu a1c45c3558 Bug 1368549 - Remove MOZ_WIDGET_GONK from netwerk/* r=mcmanus
MozReview-Commit-ID: J2njLbNwlco

--HG--
extra : rebase_source : ccb35cb5845024c1bf7b448ebcec451bab264e8b
2017-05-29 22:09:04 +02:00
Honza Bambas d02e6da08f Bug 1356538 - Carry class-of-service flags to redirected channels. r=mcmanus
--HG--
extra : rebase_source : a0688aa4f470fe377de3cc377f2eb8a2c67bef0c
2017-05-31 05:06:00 -04:00
Dragana Damjanovic edd1ee7e13 Bug 1357678 - Make stream converters do omt. r=mayhemer 2017-05-30 14:11:34 +02:00
Junior Hsu 1eb95dd7bf Bug 1363659 - Ensure not sending IPC constructor in HTTP channel when shutting down, r=nwgh 2017-05-26 03:10:00 +02:00
Junior Hsu 6d29e8963d Bug 1363659 - Ensure not sending file channel constructor when shutting down, r=valentin 2017-05-26 03:10:00 +02:00
Junior Hsu 90f88bd0ac Bug 1363659 - Ensure not sending IPC constructor in FTP channel when shutting down, r=valentin 2017-05-26 03:09:00 +02:00
Junior Hsu b2a039ad47 Bug 1363659 - Ensure not sending data channel constructor when shutting down, r=valentin 2017-05-26 03:09:00 +02:00
Arthur Edelstein 2895153229 Bug 1367564 - Use pref name 'referer.hideOnionSource' everywhere. r=mcmanus
Correcting my mistake in
https://bugzilla.mozilla.org/show_bug.cgi?id=1305144
2017-05-24 14:12:00 -04:00
Junior Hsu cfb7c13b7c Bug 1367353 - Correct the spelling to NETWORK_RACE_CACHE_BANDWIDTH*. r=michal, data-r=bsmedberg 2017-05-24 19:46:00 -04:00
Thomas Nguyen 262347b745 Bug 1351146 - P2 - Update test case and usage of nsIRedirectHistoryEntry interface. r=dragana
MozReview-Commit-ID: s61VV5CLx8
2017-05-25 19:42:00 +02:00
Honza Bambas b852ed009a Backout of 7f28c1084c47 (bug 1319111) for security checks breakage, r=me 2017-05-25 18:16:02 +02:00
Honza Bambas 5f3173e90f Bug 1365306 - Remove net::ThrottlingService, don't suspend/resume download channels on page load. r=hurley 2017-05-18 14:09:00 -04:00
Dragana Damjanovic 4d67546b87 Bug 1364371 - Introduce mHalfOpenFastOpenBackups and make TFO handling clearer. r=mcmanus 2017-05-24 14:03:40 +02:00
Dragana Damjanovic d88e097afa Bug 1364189 - Make sure not to retry socketTransaction if nsHttpConnectionMgr cancels it. r=mcmanus 2017-05-24 11:19:40 +02:00
Honza Bambas 2dfe5d94b8 Bug 1319111 - Expose 'result principal URI' on LoadInfo as a source for NS_GetFinalChannelURI (removes some use of LOAD_REPLACE flag). r=bz 2017-05-23 08:09:00 -04:00
Ryan VanderMeulen 22d214ae4b Merge autoland to m-c. a=merge 2017-05-23 10:32:42 -04:00
Shih-Chiang Chien b192c9800e Bug 1364812 - ensure OnStartRequest is called after nsHttpChannel::CallOnStartRequest. r=dragana.
1. Use ScopeExit to ensure mListener->OnStartRequest() is invoked before exit CallOnStartRequest.
2. Add assertion to ensure OnStartRequest called before OnStopRequest.

MozReview-Commit-ID: FgONlk5HPNz

--HG--
extra : rebase_source : ffe386bc8bea6defb216ecf149a29deacdb3737a
2017-05-22 16:26:22 +08:00
Shih-Chiang Chien 0131b8b831 Bug 1363421 - Part 2, delay the initialization of UserAgentOverrides.jsm until first nsHttpChannel is created. r=mcmanus
UAOverridesBootstrapper.js is introduced to delay the initialization of
UserAgentOverrides.jsm until the creation of the first nsHttpChannel.
Uninit will be triggered at profile-change-net-teardown because no network
traffice after this point.


MozReview-Commit-ID: F8Lpn6RyZEm

--HG--
extra : rebase_source : 7c3649b50ad8594dc0968961fbbd2766d0d98b0a
2017-05-16 12:11:12 +08:00
Shih-Chiang Chien 7f847e5b32 Bug 1363421 - Part 1, lazy load HTTP protocol handler to improve start-up performance. r=mcmanus
system-info might need to be construct while creating nsHttpHandler and it might take up to 30ms.
Lazy loading the DEFAULT_UA can delay the creation of nsHttpHandler after start-up.

MozReview-Commit-ID: FtIpKjcY38r

--HG--
extra : rebase_source : 8061ed3ce6c42955e52f494166958f5b63ab940b
2017-05-10 11:06:05 +08:00
Dragana Damjanovic dd.mozilla@gmail.com 2dd3b9d1b3 Bug 1352273 - Restart the TFO failure counter if a captive portal is detected.r=mcmanus 2017-05-19 13:16:08 +02:00
Carsten "Tomcat" Book e5197b271a Merge mozilla-central to autoland 2017-05-18 15:00:43 +02:00
Shih-Chiang Chien 56a6fc77dc Bug 1365566 - use PR_GetSystemInfo to get OS version on Firefox desktop. r=dragana.
MozReview-Commit-ID: J5qlptRVzQe

--HG--
extra : rebase_source : 0a674ee1227d1f0c61adeac4e5f9e007991a4d7f
2017-05-12 12:03:14 +08:00
Junior Hsu 3b926e298f Bug 1354405 - Add new telemetry probe for bandwidth cost for rcwn, r=michal, valentin, data-r=bsmedberg 2017-05-02 10:08:06 +08:00
Catalin Badea 1f3ef0f4d6 Bug 1359610 - Add telemetry for fetch interception. r=chutten data-r=bsmedberg 2017-05-17 15:42:53 +01:00
Junior Hsu 427608c4e0 Bug 1354407 - Add new telemetry probe for saved time when we rcwn. r=michal, data-r=bsmedberg 2017-05-02 10:08:06 +08:00
Nathan Froyd c1d1748428 Bug 1359490 - add an event loop spinning abstraction function; r=gerald
This function is arguably nicer than calling NS_ProcessNextEvent
manually, is slightly more efficient, and will enable better auditing
for NS_ProcessNextEvent when we do Quantum DOM scheduling changes.
2017-05-15 09:34:19 -04:00
Sebastian Hengst 484d2b7f51 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: Jduo3F6TzgF
2017-05-14 18:04:29 +02:00
Wes Kocher b0d1320ad8 Backed out 2 changesets (bug 1363421) for assertions in test_enterjit_osr.js on Windows xpcshell tests a=backout
Backed out changeset 722236d77865 (bug 1363421)
Backed out changeset 8a9e10fae26c (bug 1363421)

MozReview-Commit-ID: 93rH7BqbgHP
2017-05-13 00:32:36 -07:00
Honza Bambas d6d727a69e backout of f9abb9c83452 (bug 1319111) for crashes, r=bz 2017-05-13 13:55:11 +02:00
Wes Kocher 0a1e1fe23b Backed out changeset 95ff98f1c2e5 (bug 1319111) for talos failures a=backout
MozReview-Commit-ID: Gs09moFm5rQ
2017-05-12 18:24:42 -07:00
Patrick McManus e7245fc847 Bug 1362388 - Remove nsAHttpTransaction::Available as footgun r=nwgh
nsAHttpTransaction::Available() obtained a bytecount from the abstract
transaction's input stream. If that stream was derived from a file://
it would create janky IO - so remove the interface.

Http2Push maintains a non-inherited interface which is used to check
the number of bytes it has internally buffered in memory.

MozReview-Commit-ID: IQHt8yGsqDE

--HG--
extra : rebase_source : 64449c6bd743119ea7626a3b2b2b91a376280021
2017-05-05 18:12:36 -04:00
Patrick McManus eab0a004e6 Bug 1362388 - dont let File backed http requests find size on main thread r=nwgh
MozReview-Commit-ID: AFM4R0M7dmj

--HG--
extra : rebase_source : 01d3020eb952ec286be30b937476161a403215ff
2017-05-05 17:51:13 -04:00
Shih-Chiang Chien d9626ddc70 Bug 1363421 - Part 2, delay the initialization of UserAgentOverrides.jsm until nsHttpHandler is created. r=mcmanus
UAOverridesBootstrapper.js is introduced to delay the initialization of
UserAgentOverrides.jsm until the creation of nsHttpHandler in chrome process.
Uninit will be triggered at profile-change-net-teardown because no network
traffice after this point.


MozReview-Commit-ID: F8Lpn6RyZEm

--HG--
extra : rebase_source : b516209f96ec81deb54aab3c038803beb3cea441
2017-05-12 17:13:01 +08:00
Shih-Chiang Chien 0381369d6c Bug 1363421 - Part 1, lazy load HTTP protocol handler to improve start-up performance. r=mcmanus
system-info might need to be construct while creating nsHttpHandler and it might take up to 30ms.
Lazy loading the DEFAULT_UA can delay the creation of nsHttpHandler after start-up.

MozReview-Commit-ID: FtIpKjcY38r

--HG--
extra : rebase_source : 8061ed3ce6c42955e52f494166958f5b63ab940b
2017-05-10 11:06:05 +08:00
Nicholas Hurley 23ce343ec5 Bug 1360574 - Detect & handle connection auth at the http/2 layer. r=mcmanus
This is also the non-broken way to fix bug 1346392. Instead of waiting
until the auth handler gets its hands on things, we break layering a bit
and inspect the response headers as soon as we decompress them to see if
there's any connection-oriented auth being requested. If there is, we
treat the situation as if we got a RST_STREAM or GOAWAY with
HTTP_1_1_REQUIRED.

We were able to re-purpose the NS_ERROR_ABORT code path that was
previously used with an inappropriate HTTP status code when talking to
an HTTPS proxy over http/2, as that usage was removed a while back from
the stream, though we still had the (dead) code in the session to handle
the stream giving us that return value. The error code was changed to
NS_ERROR_NET_RESET, however, to give a better description of what's
going on.

MozReview-Commit-ID: DLjOIIiXGrV

--HG--
extra : rebase_source : 703fde39432808cabd05b48aa40165e53ebc5ed1
2017-05-11 14:42:05 -07:00
Nicholas Hurley e34c25dfc7 Bug 1360574 - Backout original fix to bug 1346392 r=mcmanus
MozReview-Commit-ID: 1ljoiCXciRq

--HG--
extra : rebase_source : e7cead30d7e6ffef73a988d3c7afcbafce8baedd
2017-05-11 10:20:14 -07:00
Wes Kocher 8eaf64f920 Backed out 2 changesets (bug 1362388) for android build bustage in nsHttpChannel.cpp a=backout
Backed out changeset f5b4fbe31c01 (bug 1362388)
Backed out changeset 446ecc3f5715 (bug 1362388)

MozReview-Commit-ID: DI01cDPrgM7
2017-05-12 13:58:28 -07:00
Patrick McManus 1a4ed2cc65 Bug 1362388 - Remove nsAHttpTransaction::Available as footgun r=nwgh
nsAHttpTransaction::Available() obtained a bytecount from the abstract
transaction's input stream. If that stream was derived from a file://
it would create janky IO - so remove the interface.

Http2Push maintains a non-inherited interface which is used to check
the number of bytes it has internally buffered in memory.

MozReview-Commit-ID: IQHt8yGsqDE

--HG--
extra : rebase_source : 78dbd5cae35bc6cb1ce2f03192226cb85564298e
2017-05-05 18:12:36 -04:00
Patrick McManus 3db60df302 Bug 1362388 - dont let File backed http requests find size on main thread r=nwgh
MozReview-Commit-ID: AFM4R0M7dmj

--HG--
extra : rebase_source : ad15d3aad5d0d271acd5cd35dbfbf72e432bcdd7
2017-05-05 17:51:13 -04:00
Honza Bambas 70f62bdec1 backout of f9abb9c83452 (bug 1319111) for crashes, r=bz 2017-05-12 22:13:49 +02:00
Valentin Gosu b830ea1f6d Bug 1363653 - Make AltDataOutputStreamParent not send any messages after object destruction r=mayhemer
This patch prevents the following error:
AltDataOutputStreamChild::Close -> SendClose()
AltDataOutputStreamChild::Release -> Send__delete__()
AltDataOutputStreamParent::RecvClose() -> SendError()
AltDataOutputStreamParent::ActorDestroy -> mIPCOpen = false
AltDataOutputStreamChild::RecvError -> === Crash - object was deleted ===

We introduce the DeleteSelf message.
AltDataOutputStreamChild::Release -> SendDeleteSelf()
AltDataOutputStreamParent::RecvDeleteSelf -> mIPCOpen = false; SendDeleteSelf()
AltDataOutputStreamChild::RecvDeleteSelf -> Send__delete__()

The parent will not send any more messages after receiving the DeleteSelf message.

MozReview-Commit-ID: I9RQ5I7eSt9

--HG--
extra : rebase_source : 8f918d24595248149ebd3857e05e38dc5237059b
2017-05-11 21:35:37 +02:00
Sebastian Hengst a477978a5d Backed out changeset a418e4a81c02 (bug 1362388) for build bustage from netwerk/protocol/http/nsHttpChannel.cpp:597 not being declared. r=backout 2017-05-11 18:01:01 +02:00
Sebastian Hengst 4dc5072fcb Backed out changeset fef09999e003 (bug 1362388) 2017-05-11 18:00:09 +02:00
Patrick McManus f48decf9ef Bug 1362388 - Remove nsAHttpTransaction::Available as footgun r=nwgh
nsAHttpTransaction::Available() obtained a bytecount from the abstract
transaction's input stream. If that stream was derived from a file://
it would create janky IO - so remove the interface.

Http2Push maintains a non-inherited interface which is used to check
the number of bytes it has internally buffered in memory.

MozReview-Commit-ID: IQHt8yGsqDE

--HG--
extra : rebase_source : 6b3b210a8f6736887b5076c90621d678b038bcad
2017-05-05 18:12:36 -04:00
Patrick McManus 20a6e4849c Bug 1362388 - dont let File backed http requests find size on main thread r=nwgh
MozReview-Commit-ID: AFM4R0M7dmj

--HG--
extra : rebase_source : 3cd535eb604a78551f6a6043088701e1d1fc40ce
2017-05-05 17:51:13 -04:00
Ryan VanderMeulen ff1d6f6f88 Merge m-c to autoland. a=merge 2017-05-11 11:30:47 -04:00
Wes Kocher 02bf8c4425 Merge m-c to inbound, a=merge
MozReview-Commit-ID: FfNikA7un6F
2017-05-10 17:31:18 -07:00
Wes Kocher 1b5ad2c128 Merge inbound to central, a=merge
MozReview-Commit-ID: DfRZi0gKjit
2017-05-10 16:48:03 -07:00
Dragana Damjanovic 1b299341de Bug 1362978 - Remove callbacks on socketInput stream if we cancel a TFO socketTransport. r=mcmanus 2017-05-10 22:54:27 +02:00
Valentin Gosu 4ccb51bae2 Bug 1363700 - Add RCWN stats to about:networking r=bz,michal
MozReview-Commit-ID: GVt1omCfL6t

--HG--
extra : rebase_source : fdb321360f21f0f54692bc6b715abb4c155171b7
2017-05-10 19:23:54 +02:00
Patrick McManus 580ef98764 Bug 1362498 - cache some networking mozilla::services r=bagder
MozReview-Commit-ID: G61lDIOKcm

--HG--
extra : rebase_source : 83d3f8258234f85145f485ae35e6ac07e77bac98
2017-05-05 14:32:19 -04:00
Junior Hsu d30acfedb7 Bug 1363472 - Ensure that the wyciwyg constructor isn't sent when shutting down. r=valentin 2017-05-09 23:57:00 -04:00
Dragana Damjanovic 5512738e6d Bug 1363448 - Let nsHttpConnectionMgr behave properly if StartFastOpen fails (which is conn->Activate() failing). r=mcmanus 2017-05-10 00:18:27 +02:00
Carsten "Tomcat" Book 76ca853e3e Merge mozilla-central to mozilla-inbound 2017-05-09 14:40:11 +02:00
Dragana Damjanovic dd.mozilla@gmail.com 62b9fc4ab8 Bug 1357835 - Extend telemetry for http autentication dialog prompt to show the subresource cross-origin auth dialog prompt per suresource type. Also add a pre to putentially disable auth propts for the cross-origin images. r=mayhemer r=ckerschb r=francois 2017-05-09 12:36:21 +02:00
Dragana Damjanovic dd.mozilla@gmail.com bf4c15a65c Bug 136178 - Keep list of weakPtrs instead of streamIds of streams started during 0rtt. r=mcmanus 2017-05-09 11:37:45 +02:00
Wes Kocher 73b318df0a Backed out changeset 7cd208304d1f (bug 1363472) for being a possible cause of failures in test_animSVGImage.html a=backout
MozReview-Commit-ID: KU4GKyDD2ne

--HG--
extra : rebase_source : d66a936a81723d1dcb7032f28d50b5582d748fa9
2017-05-10 10:15:39 -07:00
Junior Hsu d9ef6fd797 Bug 1363472 - Ensure not sending wyciwyg constructor when shutting down, r=valentin 2017-05-09 23:57:00 +02:00
Kershaw Chang 9ea8bbb5d9 Bug 1352176 - Part2: Pass an event target when calling nsInputStreamPump::Create, r=mayhemer 2017-05-09 20:05:00 +02:00
Jonathan Watt 33cfc4aa43 Bug 1362891, part 2 - Make use of XRE_IsE10sParentProcess in code that could use it. r=froydnj
MozReview-Commit-ID: 81PFEgNH37m

--HG--
extra : rebase_source : 350b11b3bec652472565bd590ef13680e480a75e
2017-04-24 10:40:12 +01:00
Wes Kocher f5ba7a67d6 Merge m-c to inbound, a=merge
MozReview-Commit-ID: 9QuGHXqdxTb
2017-05-08 16:14:34 -07:00
Wes Kocher cbfdaf8fb2 Merge inbound to central, a=merge CLOSED TREE
MozReview-Commit-ID: 5kxOZZxjMEl
2017-05-08 16:07:25 -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
Amar Lakshya 077409e068 Bug 633747 - about:cache now displays 'Expired Immediately' for 1970-01-01 01:00:00 r=mayhemer
MozReview-Commit-ID: 89CX7UqwuXl

--HG--
extra : rebase_source : b8d9a8fba8ff017b5633c093c57127076c77757a
2017-05-02 20:48:34 +05:30
Dragana Damjanovic dd.mozilla@gmail.com 87f75e4bea Bug 1362861 - Call SetFastOpenStatus only if we have httpTransaction. r=mcmanus 2017-05-08 15:33:44 +02:00
Amar Lakshya badcf950f5 Bug 633747 - about:cache displays "Expires: 1970-01-01 01:00:00" r=mayhemer
MozReview-Commit-ID: BAn8EFYGeux

--HG--
extra : rebase_source : 1bf1626578e22f14ee3c7511227c4106758d07b3
2017-04-29 01:24:29 +05:30
Dragana Damjanovic 6ad0af18de Bug 1363108 - Fix some small bugs connectied to tcp fast open. r=mcmanus 2017-05-08 22:15:26 +02:00
Gijs Kruitbosch 2c13f23a54 Bug 1360842, r=valentin
MozReview-Commit-ID: B7uG3ShaGuH

--HG--
extra : rebase_source : 92813be22a7554fec17981bf14903a526145fed2
extra : amend_source : 30643e1d5a4b942d4069e3dd28b5f736cb7fdc18
2017-05-04 11:28:04 +01:00
Dragana Damjanovic 7a6c685fd1 Bug 1363034 - Do not make new transactions for backupSocketTransport, behave as nsHttpConnectionMgr used to behave. r=mcmanus 2017-05-08 20:17:47 +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
Ehsan Akhgari c696722eda Bug 1360973 - Don't do the work needed for same origin referrer policies unless if we need to; r=tnguyen
CheckSameOriginURI() can be expensive and shows up under profiles, so we
should try to avoid calling it unless if we are going to use
isCrossOrigin.
2017-05-04 13:30:13 -04:00
Michal Novotny 133308dd0d Bug 1361435 - Remove references to unused pref network.http.bypass-cachelock-threshold, r=mcmanus
Removes references to now unused pref that was added in bug 868441 and removed in bugs 913807 and 1054572. It also removes some leftovers from http channel which have not been removed in those 2 bugs.
2017-05-04 17:37:42 +02:00
Junior Hsu 5130d2e6d3 Bug 1359951 - Ensure that the WebSocket not sending constructor when shutting down, r=nwgh
--HG--
extra : rebase_source : c11a6d29d6da9a83f15a00f02c877960a0d5bf06
2017-05-02 19:50:00 +02: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 2c802ffe1c Bug 1360570 - Make sure to write as much data as possible during FastOpen. r=mcmanus 2017-05-04 12:15:23 +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 6fb8664ccb Bug 1352271 - Add telemetry about TCP Fast Open. r=mcmanus r=francois 2017-05-04 12:15:01 +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 04e98c441a Bug 1188435 - Fix http2 restart on net-reset and fix activeConn count. r=mcmanus 2017-05-04 12:14:41 +02:00
Dragana Damjanovic abf0402f0a Bug 1188435 - Make TFO work with 0RTT and H2 work. r=mcmanus 2017-05-04 12:14:29 +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
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
Honza Bambas 124792a6b7 Bug 1354796 - Close unconnected HTTP connection with NS_ERROR_NET_TIMEOUT after 90s timeout. r=mcmanus 2017-05-03 08:31:00 -04:00
Wes Kocher df3f95a52f Merge inbound to m-c a=merge
MozReview-Commit-ID: 4SpokMW1d3I
2017-05-02 17:35:06 -07:00
Kershaw Chang ca7ad21c91 Bug 1355539 - Insert blocking transactions in the front of pendingQ, r=mayhemer
The blocking transactions should be dispatched before other transactions. So, this patch aims to put those transactions in front of the pending queue.
Moreover, also give the rest available connections to background tab when processing pendingQ for all entries.
2017-05-02 00:30:00 +02:00
Ehsan Akhgari b3c48a1104 Bug 1360723 follow-up: Rename ContentParent::AboutToLoadDocumentForChild to ContentParent::AboutToLoadHttpFtpWyciwygDocumentForChild 2017-05-01 15:44:01 -04:00
Ehsan Akhgari 88089b7bf1 Bug 1360723 - Rename ContentParent::TransmitPermissionsFor() to ContentParent::AboutToLoadDocumentForChild(); r=mystor 2017-04-28 18:05:32 -04:00
Sebastian Hengst 0936d33fb8 Backed out changeset 88c2a0b2dde5 (bug 1319111) for crashing Talos. r=backout 2017-04-28 00:16:39 +02:00
Valentin Gosu 3b8965a9dd Bug 1359106 - Make sure AltDataOutputStreamParent::SendError is not called after ActorDestroy r=bagder
MozReview-Commit-ID: I2m4K7MhQoA

--HG--
extra : rebase_source : 6a9d1457ae53e2438e01691064458d1c6a138924
2017-04-30 18:08:25 +02:00
Valentin Gosu eab53800bf Bug 1354409 - Make sure nsHttpChannel::mRacingNetAndCache is only true when we are actually racing r=michal
mRacingNetAndCache used to be set in TriggerNetwork, when the network was triggered before the cache callbacks had been called, but this could also happen when we bypassed the cache.


MozReview-Commit-ID: 4CklwPVRGar

--HG--
extra : rebase_source : 47a604e25ce879b929dbb2eba7bca36e371845ae
2017-04-21 11:42:29 +08:00
Valentin Gosu cc80d8fcd8 Bug 1354409 - Add telemetry for how often we race network and cache r=michal
MozReview-Commit-ID: 1D1KyGbLxdW

--HG--
extra : rebase_source : 5bfeed6c1fb8f1379844947bd391ac352700b411
2017-04-20 16:42:10 +08: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
Dragana Damjanovic 9a3cfa6017 Bug 1334776 - Store header names into nsHttpHeaderArray. r=mcmanus 2017-04-27 16:48:36 +02:00
Dragana Damjanovic a90129c020 Bug 1359496 - Remove code added in bug 1340164. This code was taking care that we do not send multiple socket status events. r=mcmanus 2017-04-27 16:37:31 +02:00
Wes Kocher 75c2b7a481 Merge m-c to autoland, a=merge
MozReview-Commit-ID: 3BrkDVl7521
2017-05-08 16:24:51 -07:00
Shane Caraveo 075b7b243b Bug 1360052 handle cancel during http-on-examine-response, r=mayhemer
MozReview-Commit-ID: 607FLbUWjxT

--HG--
extra : rebase_source : 226e21dbbc9de386c43af788d7c375759ca17b1d
2017-05-05 15:54:19 -07:00
Jason Duell d8fc808f1c Bug 711886 - Fail Websocket if server replies with non-matching subprotocol, r=mcmanus 2016-05-11 08:50:13 -07:00
Wes Kocher da57a3e4df Merge m-c to inbound, a=merge
MozReview-Commit-ID: DimBmdgo95e
2017-04-26 17:35:26 -07:00
Honza Bambas a3ab3a3a4a Bug 1345910 - Allow HTTP connection restart for the first connection-based authentication request in a round. r=mcmanus
--HG--
extra : rebase_source : 31810fd50075524faee7e410402c0b18954b449e
2017-04-26 17:02:05 +02:00
Florian Queze 4b1556a5f2 Bug 1355056 - replace (function(args) { /* do stuff using this */ }).bind(this) with arrow functions, r=jaws. 2017-04-27 00:25:45 +02:00
Carsten "Tomcat" Book 14278a9b22 Backed out changeset 5a9277de75b3 (bug 1188435) for test failures in test_devtools_serviceworker_interception.html | undefined assertion name 2017-04-25 16:32:26 +02:00
Carsten "Tomcat" Book 67baf53f29 Backed out changeset 3c71363497a8 (bug 1188435) 2017-04-25 16:32:01 +02:00
Carsten "Tomcat" Book deb3127d30 Backed out changeset ee570e804c7f (bug 1188435) 2017-04-25 16:31:58 +02:00
Carsten "Tomcat" Book 3f920013e0 Backed out changeset 1426ecc8209d (bug 1188435) 2017-04-25 16:31:53 +02:00
Dragana Damjanovic dd5b4dd59e Bug 1188435 - Fix http2 restart on net-reset and fix activeConn count. r=mcmanus 2017-04-25 15:08:55 +02:00
Dragana Damjanovic 570aea598d Bug 1188435 - Make TFO work with 0RTT and H2 work. r=mcmanus 2017-04-25 15:08:29 +02:00
Dragana Damjanovic 9e6540d673 Bug 1188435 - Make TLS 0RTT work with TLS Fast Open. r=mcmanus 2017-04-25 15:08:12 +02:00
Dragana Damjanovic 70daeb893e Bug 1188435 - Implement fast open necko part. r=mcmanus 2017-04-25 15:07:59 +02:00
Tom Tromey 99f4608655 Bug 1334278 - change mozilla::Smprintf to return a UniquePtr; r=froydnj
Change mozilla::Smprintf and friends to return a UniquePtr, rather than
relying on manual memory management.  (Though after this patch there are
still a handful of spots needing SmprintfFree.)

MozReview-Commit-ID: COa4nzIX5qa

--HG--
extra : rebase_source : ab4a11b4d2e758099bd0794d5c25d799a7e42680
2017-03-03 08:17:27 -07:00
Carsten "Tomcat" Book 8e84189916 Merge mozilla-central to mozilla-inbound 2017-04-24 16:07:21 +02:00
Honza Bambas 203c640be7 Bug 1348062 - Mark channels used for downloads as throttable, r=nick+paolo
MozReview-Commit-ID: 9cg4PwrXtNa

--HG--
extra : rebase_source : 2ff2d771a6ccb2a3e11c2d65e0a64ebbaa443206
2017-04-16 14:53:30 +01:00
Kershaw Chang d2acdf1290 Bug 1343745 - Label runnables in /http, r=honzab 2017-04-23 19:59:00 +02:00
Alex Gaynor 9d47375e30 Bug 1074642 - When multiple HSTS headers are received, only consider the first. r=keeler,mcmanus
This implements a plaintext reading of RFC 6797, which says to only consider the
first, however it slightly conflicts with RFC 7230, which says that sending
multiple headers which can't be merged is illegal (except for a specific
whitelist which HSTS isn't in). Chrome also implements HSTS using RFC 6797's
description of the parsing algorithm.

r=mcmanus,keeler

MozReview-Commit-ID: E06uIk2IcEK

--HG--
extra : rebase_source : 4a67f067d2953d4b30c1019a61bbfc7073e55b3d
2017-04-20 10:03:53 -04:00
Wes Kocher 5ce5528fb1 Merge inbound to m-c a=merge
MozReview-Commit-ID: DQDuEiYLWCO
2017-04-20 15:30:43 -07:00
Chris Peterson 2c92802c13 Bug 1356843 - Fix -Wcomma warning in netwerk/protocol/http/Http2Stream.cpp. r=jhao
clang's -Wcomma warning warns about suspicious use of the comma operator such as between two statements.

netwerk/protocol/http/Http2Stream.cpp:436:59 [-Wcomma] possible misuse of comma operator here

MozReview-Commit-ID: AsmNPTjKlYB

--HG--
extra : rebase_source : f25e62c3ac95b2b2cc412f82a8282591371f4925
extra : source : 9a1518b310c517ea81e78421c1479cfa14c8b17a
2017-03-27 21:42:21 -07:00
Kershaw Chang 30b3084e4f Bug 1355700 - Correct the count of available new connections. r=honzab 2017-04-19 19:03:00 +08: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
Junior Hsu 35f3699a4e Bug 1357647 - Convert names to RaceCacheWithNetwork form. r=valentin
--HG--
rename : netwerk/test/unit/test_race_cache_network.js => netwerk/test/unit/test_race_cache_with_network.js
extra : rebase_source : 908d6437a25d58be0c6dc4cd9a33ae77cd6d0dc8
2017-04-18 23:52:00 -04:00
Carsten "Tomcat" Book 87edaf78ee Merge mozilla-central to autoland
--HG--
extra : rebase_source : 46bdde97ce6567ce8a06b1609de547ef11b24c2a
2017-04-20 13:06:52 +02: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
Zibi Braniecki c4783f92b9 Bug 1005640 - Flush StringBundle cache when app-locales change. r=valentin
StringBundle caches bundles, so when language chain changes we should
flush the cache to enable new strings to be loaded.
This also affects localized prefs like intl.accept_languages.

Then in HttpHandler we have to mark the value as dirty so that next
time it's called it actually recalculates using flushed string bundle
with the new locale.

MozReview-Commit-ID: DKWEDUli4yH

--HG--
extra : rebase_source : 75ecc4204deca066d7492d1494492a91685f36be
2017-04-18 01:03:05 -07:00
Carsten "Tomcat" Book 7ba1b88f0b Backed out changeset ec9fb39f7133 (bug 1354349) for bustage 2017-04-18 08:52:14 +02:00
Valentin Gosu 8f33abcc56 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 : 226ef1e6685a9608aa7c07d3c83b048d6e1e7278
2017-04-18 11:25:47 +08:00
Nicholas Hurley 861e6a501e Bug 1345094 - make http redirects to file:// uris work under e10s. r=mayhemer
MozReview-Commit-ID: J4IheswoeMZ

--HG--
extra : rebase_source : 4af1354af026fc9be255ed2ef92164d5575f1d5d
2017-04-12 11:43:50 -07:00