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

14693 Коммитов

Автор SHA1 Сообщение Дата
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
Mats Palmgren d40a0ac6c8 Bug 1372431 - Use RemoveEntry(EntryType*) instead of RemoveEntry(KeyType) to avoid another hashtable lookup. r=michal
MozReview-Commit-ID: 7zOWbhd8MnN
2017-06-14 17:27:25 +02:00
Mats Palmgren c7e9bf0310 Bug 1372429 - Use RemoveEntry(EntryType*) instead of RemoveEntry(KeyType) to avoid another hashtable lookup. r=michal
MozReview-Commit-ID: IAupx4Eu75h
2017-06-14 17:27:25 +02: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 09a205279b Merge m-c to inbound, a=merge
MozReview-Commit-ID: 7AS5EEH6buZ
2017-06-13 18:36:04 -07:00
Wes Kocher 1af6d5cf57 Merge inbound to central, a=merge
UPGRADE_NSS_RELEASE
MozReview-Commit-ID: CBIFPwA5aNp

--HG--
extra : amend_source : 035a5be59d0046a643d0f836a95195e8c4ade4a6
2017-06-13 18:27:10 -07: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
Boris Zbarsky 3d884086c3 Bug 1371699 part 3. Make nsIStringInputStream not inherit from nsIInputStream anymore. r=bkelly
This will prevent ambiguous nsIInputStream inheritance once we also inherit from nsIAsyncInputStream.
2017-06-13 16:16:23 -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
Jan de Mooij 83f290de99 Bug 1370608 part 1 - Move newEnumerate hook from ObjectOps to ClassOps. r=evilpie,bz 2017-06-14 10:37:44 +02:00
Tom Ritter cc0c6b4d05 Bug 1368416 Include 'windows.h' instead of 'Windows.h' for MinGW support r=mcmanus
MozReview-Commit-ID: AmuNxWpQgKC

--HG--
extra : rebase_source : 3ea0ed75058b757d59bc6f7dda6f0e54ae0499ae
2017-05-29 00:49:29 -05: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
Bill McCloskey 5ddda3bb77 Bug 1361164 - Add infallible IsOnCurrentThread to nsIEventTarget (r=froydnj)
MozReview-Commit-ID: 12bk9hQ7Wnv
2017-06-12 20:20:08 -07:00
Wes Kocher f8412cddff Merge inbound to central, a=merge CLOSED TREE
MozReview-Commit-ID: 4j8ngmg8FAD
2017-06-12 17:02:56 -07:00
Ryan VanderMeulen 1421659aba Backed out changeset b2fe8f4df701 (bug 1158387) for making Win64 xpcshell nearly permafail. 2017-06-12 16:45:34 -04: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 56e1084587 Bug 1343743 - Part3: Set event target for TCPSocketChild and TCPServerSocketChild, r=jdm
Add an event target parameter in constructor, so we can call gNeckoChild->SetEventTargetForActor before sending constructor message to parent.
2017-06-12 00:22: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
Junior Hsu 6f04204c36 Bug 1158387 - Remove "PRAGMA synchronous = OFF" to avoid corruption in cookie service. r=mak 2017-05-21 18:48:00 -04: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
Shih-Chiang Chien c87b54c086 Bug 1371203 - Ensure channel object lives longer than the owned ChannelEventQueue. r=mayhemer
MozReview-Commit-ID: BPNJuMsocrf

--HG--
extra : rebase_source : 760f74a6e3d42afb64c215ca51bfa6bcf05a9898
2017-06-09 19:59:41 +08:00
Liang-Heng Chen c7eec4fbc7 Bug 1371550 - create worker thread before it is required; r=bagder
MozReview-Commit-ID: 9DydRQwOHyT

--HG--
extra : rebase_source : 89b89f9139cc00176cdb29f23f172dab70f5ca44
2017-06-09 15:11:24 +08:00
Wes Kocher 07d7985523 Merge inbound to central, a=merge
MozReview-Commit-ID: IrZXJHbiqpa
2017-06-09 15:28:10 -07: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
Junior Hsu 96ffc639e8 Bug 1370454 - Part2: Expose runInTransaction in nsICookieService.idl, r=jduell 2017-06-06 05:36:00 +02:00
Junior Hsu 72cc7bd8e6 Bug 867798 - avoid blocking main thread when we closes nsCookieService syncConn db, r=mak
--HG--
extra : rebase_source : 04a75c1914209c14d946fbb72f8089cfb722e6c9
2017-06-08 20:06:00 +02:00
Junior Hsu 515d0e58e1 Bug 1370456 - Batch operations for nsCookieService, r=jduell
--HG--
extra : rebase_source : 0a2788a1d6d8d650f1ccdcdc4c7e875e6c5aabac
2017-06-08 20:05:00 +02:00
Carsten "Tomcat" Book 42c6d32a23 Merge mozilla-central to autoland 2017-06-09 16:12:32 +02:00
Tom Tromey 818e335541 Bug 1369830 - fix "telementry" typo in netwerk; r=michal
MozReview-Commit-ID: KPsXmJ6UYyZ

--HG--
extra : rebase_source : 02eb2f0d095edee45e92eb650055a2cc81e57ebe
2017-06-02 12:49:22 -06: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
Honza Bambas 73da6dadb9 Bug 1369496 - linux build fix, r=me 2017-06-08 19:42:42 +02:00