Nicholas Nethercote
0af5a36bf5
Bug 1262359 (part 4) - Make data URL payload assignment fallible in nsDataHandler::ParseURI(). r=jduell.
...
--HG--
extra : rebase_source : c4c3f2f59945be28615286ff46ff11d7a4f316df
2016-04-06 17:23:20 +10:00
Nicholas Nethercote
35f4f94106
Bug 1262359 (part 2) - Make the filling in of two parameters optional in nsDataHandler::ParseURI(). r=jduell.
...
--HG--
extra : rebase_source : ef9621513850f3d31a8691cfa2d271f7c9742b74
2016-04-06 17:19:14 +10:00
Nicholas Nethercote
e847bfec30
Bug 1262359 (part 1) - Remove unused |hashRef| parameter from nsDataHandler::ParseURI(). r=jduell.
...
--HG--
extra : rebase_source : 416a8cb87d12bbd862652728141c2e68a1f4dfee
2016-04-06 17:18:45 +10:00
Dragana Damjanovic dd.mozilla@gmail.com
5d5fb10507
Bug 1261632 - Assert that OnStopRequest is called only once. r=michal
...
--HG--
extra : rebase_source : fef5faba65c878b3f3528de054a0601c3ad74035
2016-04-06 04:47:00 -04:00
Ben Kelly
46ccf135c6
Bug 1261784 Make sure InterceptedChannel body streams are always closed. r=jdm
2016-04-04 13:24:05 -07:00
Patrick McManus
e0f8bdd662
Bug 905460 - Convert http legacy refs to smart pointers r=dragana a=kwierso
...
MozReview-Commit-ID: G86Mrv0Cdgk
2016-03-29 15:35:56 -04:00
Christoph Kerschbaumer
3f988218c4
Bug 1243586 - Implement Upgrade-Insecure-Requests HTTP Request Header Field. r=rbarnes
2016-03-01 09:17:56 -08:00
Nicholas Hurley
ccbf76c675
Bug 1260498 - Make test_rel_preconnect work in e10s mode. r=mcmanus
...
MozReview-Commit-ID: 3PGA2N73foH
--HG--
extra : rebase_source : b3837c38a8bf1847d207ebfc2d3ce60ddf826a01
2016-03-28 16:43:01 -07:00
Kyle Huey
d9265a3eaf
Bug 1259294: Part 2 - Use MOZ_ALWAYS_SUCCEEDS. r=froydnj
2016-03-28 10:28:15 -07:00
Christoph Kerschbaumer
ebabdb7c40
Bug 1259511 - Overwrite loadInfo within AboutProtocolHandler and log warning to console. r=sicking
2016-03-24 16:10:59 -07:00
Patrick McManus
f2d272afa3
Bug 1259459 - h2 0 length options puts end-stream on headers r=hurley
2016-03-18 14:08:01 -04:00
Dragana Damjanovic dd.mozilla@gmail.com
a542bdf22b
Bug 1256336 - Do not use httpChannelChild after Send__delete is called. r=jduell
2016-03-24 16:40:42 +01:00
Valentin Gosu
f59858b263
Bug 1254061 - Rewrite nsHttp::ParseInt64 using strtoll r=mcmanus
...
MozReview-Commit-ID: FXjTBah4OSd
* * *
[mq]: test
MozReview-Commit-ID: 5YT1jWVb21K
2016-03-23 13:42:12 +01:00
Sebastian Hengst
437ce2efda
Backed out changeset 74312d99d538 (bug 1254061) for bustage. r=backout on a CLOSED TREE
2016-03-21 19:15:49 +01:00
Valentin Gosu
518b567d5a
Bug 1254061 - Rewrite nsHttp::ParseInt64 r=mcmanus
...
MozReview-Commit-ID: FXjTBah4OSd
* * *
[mq]: test
MozReview-Commit-ID: 5YT1jWVb21K
--HG--
extra : rebase_source : 8bd1b91fd83f1f1f2d815d12baa5002f69e933f2
2016-03-21 17:57:02 +01:00
Franziskus Kiefer
1a47cfb77a
Bug 1186072 - Add trailing slash to origin referer header when policy is set. r=sworkman
...
MozReview-Commit-ID: 3PYuODmqpbL
--HG--
extra : source : ac4148f22b2d6f76762dac3fd94a6452da80bdde
2016-02-24 10:51:54 +01:00
Stone Shih
d2be3770c7
Bug 1255597 - Part 3: Synchronize content-type hint of HttpChannelChild to HttpChannelParent. r=jduell
...
--HG--
extra : rebase_source : 59b5fadf761e8a11d4f946259d5074ba698a46f5
2016-03-16 14:03:57 +08:00
Patrick McManus
22890fcef4
Bug 1253582 - h2 coalescing impacts wss:// r=michal
2016-03-15 11:54:12 -04:00
Franziskus Kiefer
156284d9a8
Bug 1256248 - allow disabling content-signatures for about:newtab on certain channels, r=mayhemer
2016-03-15 16:12:21 +01:00
Dragana Damjanovic
2533fab1f6
Bug 1201170 - During message diversion must be possible to suspend them. r=jduell
2016-03-15 04:10:00 +01:00
Nicholas Nethercote
a2f068b2ad
Bug 1253085 - Remove the |PLDHashTable*| argument from PLDHash{HashKey,MatchEntry}. r=froydnj.
...
This is easy because it's never needed.
--HG--
extra : rebase_source : 78830dab41c40a1544fa55fc69ca9c1c6709d767
2016-03-16 15:33:44 +11:00
Nicholas Nethercote
c49a9433ca
Bug 1255239 - Reduce size of HuffmanIncomingTables. r=hurley.
...
Splitting Each HuffmanIncomingTable into two parts avoids the wasted
0/nullptr fields and allows the remaining fields to be packed more efficiently.
Making them all const allows them to be shared between processes.
On 64-bit platforms this saves (60*N - 7.5) KiB, where N is the number of
processes.
--HG--
extra : rebase_source : 1c55b325a01df53b0d8e28e5f3102b8ed57e5e47
2016-03-11 09:57:02 +11:00
Andrea Marchesini
e0a0cfb614
Bug 1254730 - patch 2 - Better comments and a better management of lifetime of ChannelEvents, r=michal
2016-03-14 18:46:22 +01:00
Andrea Marchesini
669f5b1954
Bug 1254730 - ChannelEventQueue must be thread-safe, r=michal
2016-03-14 17:10:26 +01:00
Franziskus Kiefer
0d2149893d
Bug 1226928 - network and ipc bits for content-signing on remote about:newtab, r=mayhemer
2016-03-14 11:56:52 +01:00
Ehsan Akhgari
7837cfcff2
Bug 1120715 - Part 2: Don't use OPEN_TRUNCATE when reopening a fake synthesized cache entry; r=mayhemer,jdm
...
This shows up when intercepting the reload cache type channels, since
the cache storage will reopen the cache entry that has been used to fill
up the synthesized response otherwise because of the LOAD_BYPASS_CACHE
flag.
2016-03-11 14:40:37 -05:00
Ehsan Akhgari
ac9a100c66
Bug 1120715 - Part 1: Add Necko APIs to preserve the Request cache mode on the channel; r=mayhemer
2016-03-11 14:40:33 -05:00
Ryan VanderMeulen
e98112b9bd
Backed out 8 changesets (bug 1120715) for Android dom/u2f/tests/test_no_token.html permafail.
...
Backed out changeset 043770204431 (bug 1120715)
Backed out changeset e10c375353f4 (bug 1120715)
Backed out changeset c2871dbeb7cc (bug 1120715)
Backed out changeset 79158f028ad3 (bug 1120715)
Backed out changeset c74866f52320 (bug 1120715)
Backed out changeset c731944ecc64 (bug 1120715)
Backed out changeset 44f346712a3a (bug 1120715)
Backed out changeset 60d6045125e2 (bug 1120715)
CLOSED TREE
2016-03-10 20:20:05 -05:00
Daniel Holbert
447b3ae749
Bug 1249450 part 2: Convert some nsIURI SetScheme("https") calls to use NS_GetSecureUpgradedURI instead. r=mcmanus
2016-03-10 15:23:46 -08:00
Daniel Holbert
9b70d28e34
Bug 1249450 part 1: Move GetSecureUpgradedURI from HttpBaseChannel to nsNetUtil. r=mcmanus
2016-03-10 15:23:45 -08:00
Ehsan Akhgari
8a2cfbf5b6
Bug 1120715 - Part 2: Don't use OPEN_TRUNCATE when reopening a fake synthesized cache entry; r=mayhemer,jdm
...
This shows up when intercepting the reload cache type channels, since
the cache storage will reopen the cache entry that has been used to fill
up the synthesized response otherwise because of the LOAD_BYPASS_CACHE
flag.
2016-03-10 17:29:11 -05:00
Ehsan Akhgari
9874b83667
Bug 1120715 - Part 1: Add Necko APIs to preserve the Request cache mode on the channel; r=mayhemer
2016-03-10 17:29:11 -05:00
Patrick McManus
265bd49b07
Bug 1246735 - h2 reset recursive push. r=hurley
...
--HG--
extra : rebase_source : 91c88eacaf31338c0c1c027665ed5d6001e3b843
2016-03-09 09:20:02 -05:00
Christoph Kerschbaumer
f29ec8d62f
Bug 1254689 - Remove SEC_NORMAL where loadingPrincipal is SystemPrincipal or NullPrincipal. r=sicking
2016-03-09 13:55:59 -08:00
Wes Kocher
53011a6a05
Backed out 6 changesets (bug 1120715) for wpt bustage in request-cache.html
...
Backed out changeset 2ee4b18f6b3a (bug 1120715)
Backed out changeset f87a25ade31e (bug 1120715)
Backed out changeset 9391f22c08c2 (bug 1120715)
Backed out changeset c5bf9f7bb86e (bug 1120715)
Backed out changeset 7e003fb64d41 (bug 1120715)
Backed out changeset ef66b64e9f8a (bug 1120715)
MozReview-Commit-ID: AI47IhtGWea
2016-03-09 15:57:43 -08:00
Valentin Gosu
7cff2da47e
Bug 1234575 - Empty fragment is ignored in URI of location header r=mcmanus
...
MozReview-Commit-ID: 9qhZfwgANRY
2016-03-10 00:41:17 +01:00
Ehsan Akhgari
456b0a7460
Bug 1120715 - Part 2: Don't use OPEN_TRUNCATE when reopening a fake synthesized cache entry; r=mayhemer,jdm
...
This shows up when intercepting the reload cache type channels, since
the cache storage will reopen the cache entry that has been used to fill
up the synthesized response otherwise because of the LOAD_BYPASS_CACHE
flag.
2016-03-09 16:43:11 -05:00
Ehsan Akhgari
fded90051d
Bug 1120715 - Part 1: Add Necko APIs to preserve the Request cache mode on the channel; r=mayhemer
2016-03-09 16:42:53 -05:00
Wes Kocher
817d8829fc
Backed out changeset 7cbab9ec76d5 (bug 1254689) for browser_dbg_addon-sources.js failures
...
MozReview-Commit-ID: 3zPliH7mmPj
--HG--
extra : rebase_source : 90a6c96c2106ec23043160ed93041cd7e15b1640
2016-03-09 10:56:23 -08:00
Christoph Kerschbaumer
007c074be0
Bug 1254689 - Remove SEC_NORMAL where loadingPrincipal is SystemPrincipal or NullPrincipal (r=sicking)
...
MozReview-Commit-ID: LKK3MGMODNI
2016-03-09 09:01:45 -08:00
Michal Novotny
2e9a36c765
Bug 1227136 - crash in mozilla::net::WebSocketChannel::StartWebsocketData, r=bagder, r=baku
2016-03-09 17:02:28 +01:00
Jan Horak
ab13daefb2
Bug 1248564 - "Default authentication credentials (NTLM, Kerb) used in private mode". r=mayhemer
...
--HG--
extra : rebase_source : 4a51b046a473f2e4b6122f4348dd839ca1db8ddd
2016-03-08 08:49:00 +01:00
Blake Kaplan
456e54eb3b
Bug 1113196
- Pass a sane set of parameters to loadinfo for top-level loads in e10s. r=sicking
2016-03-04 08:54:07 -08:00
Valentin Gosu
9ee45bbb21
Bug 1253379 - Cache timings not send to HttpChannelChild r=mayhemer
...
MozReview-Commit-ID: D7IWrI25mIB
--HG--
extra : rebase_source : 323b385c910356472bb805c6a16b4a57f3e107c5
2016-03-04 12:14:00 +01:00
Patrick McManus
743611280b
Bug 1253358 - Assert no flags on several h2 frame types r=hurley
2016-03-03 16:35:38 -05:00
Patrick McManus
bf8f0696ad
Bug 1253358 - no flags on priority frames r=hurley
2016-03-03 13:33:04 -05:00
Patrick McManus
267eda0f68
Bug 1253358 - minor h2 push fixes r=hurley
2016-03-03 11:48:30 -05:00
Carsten "Tomcat" Book
eb98199ac0
Backed out changeset ac4148f22b2d (bug 1186072) for referrer test failures
...
--HG--
extra : rebase_source : 124130bb041418eb97862a131ae6365df5cfbdc6
2016-03-03 09:23:59 +01:00
Franziskus Kiefer
55e0623947
Bug 1186072 - add trailing slash to origin referer header when policy is set, r=sworkman
...
MozReview-Commit-ID: 3PYuODmqpbL
--HG--
extra : transplant_source : %E5P%B1%1F%82%08%07%2A%1C%26%AF%C5%C8%29%B1y%97O%877
2016-02-24 10:51:54 +01:00
Nicholas Hurley
0b3b2a68db
Bug 1246761 - Properly handle non-terminal 0-length DATA frames. r=mcmanus
...
--HG--
extra : rebase_source : 756e42ecea9646b5b0e2770060090437b06b9f9d
2016-03-01 16:28:39 -08:00
J. Ryan Stinnett
5bede71f0d
Bug 1238160 - Rename nsILoadContext::GetIsInBrowserElement. r=smaug,mayhemer
...
This change renames nsILoadContext::GetIsInBrowserElement to
GetIsInIsolatedMozBrowserElement. Other methods that pass these values around
also have name changes.
Tokens such as "isInBrowserElement" have previously been serialized into cache
keys, used as DB column names, stored in app registries, etc. No changes are
made to any serialization formats. Only runtime method and variable names are
updated.
No behavior changes are made in this patch, so some renamed methods may have
nonsensical implementations. These are corrected in subsequent patches
focused on behavior.
MozReview-Commit-ID: CUttXANQjSv
2016-03-02 10:35:56 -06:00
Ehsan Akhgari
8a0731fdde
Bug 1251875 - Part 1: Remove the dom.serviceWorkers.interception.enabled pref; r=bkelly
2016-03-01 09:16:38 -05:00
Ehsan Akhgari
baf9a67550
Bug 1251873
- Store the trimmed referrer URL on HTTP channel if a trimming referrer policy is in effect; r=mcmanus
...
Failure to do this will result in the consumers of
nsIHttpChannel::GetReferrer() observing the wrong referrer. The test in this
patch shows the scenarios which would fail under such conditions.
2016-03-01 09:15:25 -05:00
David Rajchenbach-Teller
077332385a
Bug 1252386 - Removed debugging printf,r=me
...
MozReview-Commit-ID: 131XBlD5YOQ
--HG--
extra : rebase_source : 9d3453845ade7e36ede08d09a6d4d5566924a7a7
2016-03-01 08:38:27 +01:00
Wes Kocher
e2f9524db9
Backed out changeset fc5cc380ddb3 (bug 1251873
) for wpt cross-origin.swap-origin-redirect.http.html failures
...
MozReview-Commit-ID: Anr0ilrYczq
2016-02-29 13:34:55 -08:00
Ehsan Akhgari
befc43a124
Bug 1251873
- Store the trimmed referrer URL on HTTP channel if a trimming referrer policy is in effect; r=mcmanus
...
Failure to do this will result in the consumers of
nsIHttpChannel::GetReferrer() observing the wrong referrer. The test in this
patch shows the scenarios which would fail under such conditions.
2016-02-29 14:51:16 -05:00
Wes Kocher
4712647d7d
Backed out 2 changesets (bug 1243586) for dt5 bustage in netmonitor tests
...
Backed out changeset 06a4d2d48fb2 (bug 1243586)
Backed out changeset 846e31fe5eb2 (bug 1243586)
MozReview-Commit-ID: 69kiDIULtm2
2016-02-29 10:39:04 -08:00
Christoph Kerschbaumer
a863521d73
Bug 1243586 - Implement Upgrade-Insecure-Requests HTTP Request Header Field (r=rbarnes)
2016-02-29 08:44:39 -08:00
Paul Bignier
1d1fd489f5
Bug 1245106 - necko compilation warnings r=mcmanus
...
--HG--
extra : rebase_source : 6f4adf253af73a58d3ff5561e33e34eed94e456b
2016-02-26 11:29:28 -05:00
David Rajchenbach-Teller
48f2be74e2
Bug 1249590 - Bullet-proofing AsyncShutdown wrt exceptions;r=froydnj
...
While investigating bug 1248489, we discovered that some code paths in
AsyncShutdown could possibly be sensitive to exceptions being thrown
in unexpected places. This patch attempts to make AsyncShutdown more
robust to such exceptions.
MozReview-Commit-ID: 5ImL9YNVgQr
--HG--
extra : rebase_source : 823ee41406f7b341750e0339dfe3d5dbaa6d0cc9
2016-02-19 12:51:04 +01:00
Nathan Froyd
f1a24ff6a0
Bug 1247393 - use arrays of UniquePtr in ChannelEventQueue; r=mcmanus
2016-01-20 16:56:04 -05:00
Dylan Roeh
93886420a6
Bug 1148544 - Figure out UA override once per LoadGroup and cache it, rather than once per channel. r=nwgh
2016-02-22 15:57:18 -06:00
Patrick McManus
529544b457
Bug 831450 - No Range Requests against weak Etag r=mayhemer
2016-02-19 16:09:16 -05:00
Patrick McManus
bb76653375
Bug 1249432 - less h2 parallel conns r=hurley
2016-02-18 17:30:46 -05:00
Patrick McManus
57205a2a42
Bug 1249379 - H2 Push WindowUpdate not written to network r=hurley
2016-02-18 15:00:46 -05:00
Honza Bambas
d9866a3576
Bug 1247998 - Let nsHttpChannel::AsyncOpen* throw after nsHttpHandler has been shutdown, r=mcmanus
2016-02-18 08:54:00 +01:00
Patrick McManus
0acb222f9a
Bug 1248203
- streamline h2 stream flow control buffer r=hurley
2016-02-13 12:10:02 -05:00
Honza Bambas
d5d114572a
Bug 587177 - Update all comments before SetOriginalURI to reflect reality, r=mcmanus
...
--HG--
extra : rebase_source : adbb70cbdc4a1f58af02f19bdba4f5a6eb06e9f0
2016-02-17 10:46:00 +01:00
Daniel Holbert
e064e82632
Bug 1247733 part 2: Give nsIStandardURL an API to set its default port, and use it when upgrading HTTP connections to HTTPS. r=valentin
2016-02-17 19:24:36 -08:00
Shih-Chiang Chien
2624c1bfd1
Bug 1231416 - fix Mulet UA string generation rule. r=fabrice.
...
MozReview-Commit-ID: 69fIxw0FO9l
--HG--
extra : rebase_source : c3720d20001096b1775cdade418de27983720c40
2016-02-16 18:54:12 +08:00
Patrick McManus
54be97b2ea
Bug 1247205 - dont loop on http2 softerror r=dragana
2016-02-13 20:54:24 -05:00
Michal Novotny
1833733f5d
Bug 1247806 - Fix HSTS redirect check in WebSocketChannel, r=mcmanus
2016-02-16 01:19:57 +01:00
Dragana Damjanovic dd.mozilla@gmail.com
483a342274
Bug 1242755 - Move nsHttpConnectionMgr->Shutdown back to nsHttpHandler. r=mcmanus
...
--HG--
extra : rebase_source : 762aa4b8f1e03c7422cd9416dfb724ac8926820d
2016-02-04 04:14:00 +01:00
Patrick McManus
532454b02a
Bug 1240025 - incorrect close state on pushed stream r=hurley
2016-02-10 14:54:32 -05:00
Aidin Gharibnavaz
686438c658
Bug 1164581 - Adding an overload for NS_ProxyRelease that accepts already_AddRefed, and removing all the others. r=bobbyholley
2016-02-10 08:23:00 +01:00
Carsten "Tomcat" Book
b8f6140f54
merge mozilla-inbound to mozilla-central a=merge
2016-02-10 11:47:34 +01:00
Honza Bambas
403865b110
Bug 1231512 - Allow nsIHttpChannel.redirectTo() work also on an open channel, r=jduell
...
--HG--
rename : netwerk/test/unit/test_redirect_from_script.js => netwerk/test/unit/test_redirect_from_script_after-open_passing.js
2016-02-05 07:45:00 +01:00
Patrick McManus
677082b660
Bug 1241906 - Spdy deadlock on suspended channel r=hurley
...
--HG--
extra : rebase_source : 5c61ce077ba3b6ff5e68b379ac0efda304424e1b
2016-01-29 11:47:58 -05:00
Wes Kocher
807175f2a6
Backed out 2 changesets (bug 1148544) for failures in test_user_agent_overrides.html
...
Backed out changeset 5073d841f77d (bug 1148544)
Backed out changeset 64a2c41c6f20 (bug 1148544)
--HG--
extra : commitid : 3oP1hrXASC1
2016-02-09 16:58:54 -08:00
Dylan Roeh
1bcde8e01f
Bug 1148544 - Figure out UA override once per LoadGroup and cache it, rather than once per channel. r=nwgh
2016-02-09 16:51:34 -06:00
Patrick McManus
cbb7790bab
Bug 1246778 - dont loop in nshttpconnection during shutdown r=dragana
...
--HG--
extra : rebase_source : e3a787fbb6a188d45530ab77f914cfeb4bdd9777
2016-02-08 17:21:43 -05:00
Valentin Gosu
82a16a09cb
Bug 241788 - net_FilterURIString should filter \r\n\t from the entire URL r=honzab
...
* net_ExtractURLScheme now uses mozilla::Tokenizer
* net_FilterURIString also filters characters in the scheme now
* removed startPos and endPos parameters for net_FilterURIString and introduced net_IsAbsoluteURL
2016-02-05 14:45:08 +01:00
Sebastian Hengst
3de13c67e0
Backed out changeset 28188ac5d84a (bug 1242755) for XPCshell failures on Linux x64. r=backout
2016-02-08 13:17:43 +01:00
Carsten "Tomcat" Book
5b358688b7
Backed out changeset c18e29c1b369 (bug 1164581) for cpp unit tests test failures
...
--HG--
extra : rebase_source : fb6fd434c8e3f4b5fa53ea645a54c07cab207894
2016-02-08 11:17:38 +01:00
Dragana Damjanovic dd.mozilla@gmail.com
8939aa6688
Bug 1242755 - Move nsHttpConnectionMgr->Shutdown back to nsHttpHandler. r=mcmanus
2016-02-04 04:14:00 +01:00
Ben Kelly
0c15e9bdfd
Bug 1243453
P1 Make nsCORSListenerProxy call UpdateChannel() for internal redirects. r=sicking
2016-02-04 07:28:21 -08:00
Patrick McManus
e148eb356e
bug 277813 - autogenerated expires needs max r=mayhemer
...
--HG--
extra : rebase_source : 1f772fae7ed927310e1e40877d96754158da0898
2016-01-26 15:54:25 -05:00
Christoph Kerschbaumer
2f5879179c
Bug 1195173 - Convert ExtensionProtocolHandler to use channel->Open2() (r=maglione)
2016-02-02 20:35:15 -08:00
Blake Kaplan
6dbe3327a3
Bug 1242472 - Properly propagate mTopWindowURI through redirects. r=francois/ckerschb
2016-02-02 13:44:11 -08:00
Ben Kelly
2f4a4aa980
Bug 1244122 P1 Always support SW intercept even when http cache is disabled. r=mayhemer
2016-02-02 10:03:20 -08:00
Phil Ringnalda
5bf2bbbbee
Back out 2 changesets (bug 1244122) for a 50% failure rate in (at least) 10.6 e10s browser_force_refresh.js
...
Backed out changeset d383f170be3f (bug 1244122)
Backed out changeset b1eacad41db4 (bug 1244122)
2016-02-01 19:53:55 -08:00
Mark Goodwin
68617816d0
Bug 1241455 Send TLS Error Reports for subresources r=past, Gijs, mcmanus
...
This patch makes use of the security reporter component (which hasn't landed yet
- see blockers) to allow automatic TLS error reports to be sent directly from
nsHttpChannel.cpp rather than sending them from browser.js. This allows failed
connections for subresources to be reported.
Some of the report sending from browser.js was retained to allow reports to be
sent at the time a user enables reporting. This has been modified to also make
use of the component.
Since the patient is on the table, I've also taken the opportunity to
remove the retry and status bits from aboutCertError.xhtml and
aboutNetError.xhtml - which removes a bunch of code and simplifies things a bit.
The mochitests have been modified to cope with the fact that the UI does not
update with report sending / report failures - instead, success and failure are
determined by examining the response seen from the server from within the test.
2016-02-01 11:18:50 +00:00
Ben Kelly
273bea9bb6
Bug 1244122 P1 Always support SW intercept even when http cache is disabled. r=mayhemer
2016-02-01 12:29:40 -08:00
Aidin Gharibnavaz
69cf7e035f
Bug 1164581 - Adding an overload for NS_ProxyRelease that accepts already_AddRefed, and removing all the others. r=bobbyholley
...
--HG--
extra : rebase_source : 3c6bba6613a14e48239d302bdd0f7fe2e322265d
2016-02-07 10:56:00 +01:00
Wes Kocher
8320c4f055
Backed out changeset 448af29079c9 (bug 1231512) for being a possible cause of build bustage CLOSED TREE
...
--HG--
extra : commitid : 5eX9SsyDT40
2016-02-05 15:07:06 -08:00
Honza Bambas
77a7813385
Bug 1231512 - Allow nsIHttpChannel.redirectTo() work also on an open channel. r=jduell
...
--HG--
rename : netwerk/test/unit/test_redirect_from_script.js => netwerk/test/unit/test_redirect_from_script_after-open_passing.js
2016-02-05 07:45:00 -05:00
Andrea Bartolucci
7155453855
Bug 137852 - Add a new working HTTP authentication identity to the begining of the session cache list. r=honzab
2016-01-21 11:22:00 +01:00
Nicholas Nethercote
2de1cd4d7a
Bug 1187137 (part 13) - Replace nsBaseHashtable::Enumerate() calls in netwerk/protocol/ with iterators. r=valentin.
...
--HG--
extra : rebase_source : 67a9afc30e75e7676a935e95057af28ed2623354
2016-01-29 16:02:26 +11:00
Nicholas Nethercote
f852272c8b
Bug 1187137 (part 12) - Replace nsBaseHashtable::Enumerate() calls in netwerk/protocol/ with iterators. r=valentin.
...
--HG--
extra : rebase_source : 5adeeac7c622891a303c79b7d9814283a64972b0
2016-01-29 15:58:07 +11:00
Nicholas Nethercote
43b9335159
Bug 1187137 (part 11) - Replace nsBaseHashtable::Enumerate() calls in netwerk/protocol/ with iterators. r=valentin.
...
--HG--
extra : rebase_source : 25e5fbab48ff133fbc191876b687d713dc8669c9
2016-01-29 15:57:49 +11:00
Nicholas Nethercote
6422b3c748
Bug 1187137 (part 10) - Replace nsBaseHashtable::Enumerate() calls in netwerk/protocol/ with iterators. r=valentin.
...
--HG--
extra : rebase_source : acee355399453c04286196a79190cd754c94ec91
2016-01-29 15:20:55 +11:00
Nicholas Nethercote
053d6c9295
Bug 1187137 (part 9) - Replace nsBaseHashtable::Enumerate() calls in netwerk/protocol/ with iterators. r=valentin.
...
--HG--
extra : rebase_source : 77a50ddc4d984b19f23d03d884418d0ea46fb859
2016-01-29 15:17:28 +11:00
Nicholas Nethercote
e8413873d8
Bug 1187137 (part 8) - Replace nsBaseHashtable::Enumerate() calls in netwerk/protocol/ with iterators. r=valentin.
...
--HG--
extra : rebase_source : 1c7255ee6768c7e43bc7174f887bfed8e2751cfb
2016-01-29 15:11:36 +11:00
Kyle Huey
91efc5a86c
Bug 1241764: Replace nsPIDOMWindow with nsPIDOMWindowInner/Outer. r=mrbkap,smaug
2016-01-30 09:05:36 -08:00
Ehsan Akhgari
6990b92c6b
Bug 1243942 - Bypass service workers for WebSocket handshake channels; r=bkelly
...
Without this patch, the presence of a service worker that doesn't
respond to the FetchEvent that we dispatch for the handshake request
causes an internal redirect, which is unacceptable to the handshake
channel, therefore all WebSocket channels break on such pages.
Moreover, the integration of Web Sockets and Service Workers is unclear
yet, so these channels should bypass service workers completely.
2016-01-29 09:31:24 -05:00
Nicholas Nethercote
900298f2a4
Bug 1187137 (part 7) - Replace nsBaseHashtable::Enumerate() calls in netwerk/protocol/ with iterators. r=valentin.
...
--HG--
extra : rebase_source : 7326c0f51805e8d38ff7c7996355dfda36be03d7
2016-01-27 19:18:33 -08:00
Nicholas Nethercote
d04f9d9bd4
Bug 1187137 (part 6) - Replace nsBaseHashtable::Enumerate() calls in netwerk/protocol/ with iterators. r=valentin.
...
--HG--
extra : rebase_source : 7dc26d97543ed93bb0feee7539954316ab36348b
2016-01-27 19:04:38 -08:00
Nicholas Nethercote
0fc6893b11
Bug 1187137 (part 5) - Replace nsBaseHashtable::Enumerate() calls in netwerk/protocol/ with iterators. r=valentin.
...
--HG--
extra : rebase_source : 87ff74c1f4a66987de60cfc7a77269ae83d2b318
2016-01-27 18:38:45 -08:00
Nicholas Nethercote
f3f9d0c09e
Bug 1187137 (part 4) - Replace nsBaseHashtable::Enumerate() calls in netwerk/protocol/ with iterators. r=valentin.
...
--HG--
extra : rebase_source : c9f2dd39d41f023d9caf8042b4388af23692950a
2016-01-27 16:05:00 -08:00
Bill McCloskey
c663839ade
Bug 1240871 - Don't allow implicit "async" in IPDL (r=mccr8,billm)
2016-01-28 20:56:37 -08:00
Wes Kocher
84714308b8
Merge fx-team to central, a=merge
...
--HG--
extra : commitid : 2DZ63I10LcS
2016-01-28 17:47:33 -08:00
Michael Madsen
150b645ebb
Bug 1241377 - Part 1: Implement nsIFormPOSTActionChannel for the channel accepts form POST. r=mayhemer
2016-01-28 19:38:34 +09:00
Masatoshi Kimura
e7df5bd97a
Bug 1242926 - Increase the max retry attempt number. r=mcmanus
2016-01-28 05:44:48 +09:00
Ehsan Akhgari
fbf2580b8c
Bug 1197379 - Remove support for intercepting app:// URIs using service workers; r=jdm
2016-01-27 15:26:27 -05:00
Sebastian Hengst
9969f938e7
Backed out 4 changesets (bug 1195173) for webtest failures. r=oranges on a CLOSED TREE
...
Backed out changeset 92b7c3c6e875 (bug 1195173)
Backed out changeset d026d6f185ab (bug 1195173)
Backed out changeset 3b51d7bae8e4 (bug 1195173)
Backed out changeset a75bb8d083e8 (bug 1195173)
2016-01-27 20:24:52 +01:00
Christoph Kerschbaumer
cf3432d576
Bug 1195173 - Convert ExtensionProtocolHandler to use channel->Open2() (r=maglione)
2016-01-26 15:31:02 -08:00
Gijs Kruitbosch
ef04fd0f90
Bug 1172165 - check all nested URI schemes in CAPS. Make view-source dangerous to load, and about: URIs use per-URI flags so they keep working, r=bz
...
Also, add an opt-out for crashtest/reftest for the view-source thing so they don't all break, r=bz
--HG--
extra : commitid : 8NqvmbphSgh
extra : rebase_source : bbe0b6f11a77d7e6241a5733931d9baa95bb3fed
2015-12-11 08:06:41 -05:00
Patrick McManus
519de62f7c
Bug 567365 - allow bfcache for no-cache/https r=jduell r=bz
2016-01-26 13:27:46 -05:00
Carsten "Tomcat" Book
1b3a625f51
Backed out changeset e73523d185a7 (bug 567365) for m-oth failures in test_bug112564.xul
...
--HG--
extra : rebase_source : 4dd3038d27708719a5382b32b929125c583105b6
2016-01-26 16:11:13 +01:00
Patrick McManus
3a54e21101
Bug 567365 - allow bfcache for no-cache/https r=jduell r=bz
2016-01-25 16:10:06 -05:00
Patrick McManus
d1286944d6
Bug 1233774 - fix Leak EventTokenBucket on shutdown r=dragana
2016-01-21 12:40:15 -05:00
Andrea Marchesini
9e47057422
Bug 1241565 - nsIHttpChannelInternal should be a builtinclass, r=honzab.moz
2016-01-22 11:55:54 +00:00
Andrea Marchesini
e9160985c2
Bug 1221320 - XMLHttpRequest authentication should not require auth prompt dialog, r=honzab.moz
2015-12-30 18:47:55 +00:00
Honza Bambas
80cd6c95fd
Bug 1064378 - Don't rewrite custom Authorization header set on a channel by cached credential. r=jduell
2016-01-21 09:33:00 -05:00
Patrick McManus
27973cab8d
Bug 366023 - Allow h/1.0 chunked encodings r=bagder
2016-01-19 14:22:50 -05:00
Honza Bambas
31fe69aff2
Bug 1087320 - On charset reload set LOAD_FROM_CACHE only on the default channel, r=bz r=jduell
2016-01-19 15:28:00 +01:00
Ehsan Akhgari
d08dcc913c
Bug 1209081 - Part 1: Implement the "navigate" value for RequestMode; r=bkelly
2016-01-19 17:46:10 -05:00
Dragana Damjanovic
854aecd889
Bug 1239961 - Minimize amount of PR_Poll and PR_Read calls during shutdown. r=mcmanus
2016-01-15 08:21:00 +01:00
Dragana Damjanovic
737f45f2c0
Bug 1238017
- Remove ClosingService. r=mcmanus
2016-01-08 10:20:00 -05:00
Dragana Damjanovic
198debd13b
Bug 1238910 - Rework shutdown necko. r=mcmanus
2016-01-14 04:42:00 -05:00
Bogdan Postelnicu
43ffa675aa
Bug 1226526 - NS_ENSURE_ARG_POINTER on result to remove warning added by scan-build. r=mcmanus
...
--HG--
extra : rebase_source : 73ee1126287bbc2865568a074678564fd3372032
2016-01-13 11:41:04 +02:00
Dragana Damjanovic
bdee941ae5
Bug 1236277 - Retry all connections not just the reused one. r=mcmanus
2016-01-11 05:20:00 +01:00
Patrick McManus
7ed406b2be
Bug 1238290 - fix bad necko deps on unified_sources r=valentin.gosu
...
---
netwerk/base/ARefBase.h | 2 ++
netwerk/base/CaptivePortalService.cpp | 1 +
netwerk/base/CaptivePortalService.h | 1 +
netwerk/base/EventTokenBucket.cpp | 4 +++-
netwerk/base/LoadContextInfo.cpp | 3 +++
netwerk/base/LoadInfo.cpp | 3 +++
netwerk/base/MemoryDownloader.cpp | 1 +
netwerk/base/Predictor.cpp | 1 +
netwerk/base/RedirectChannelRegistrar.h | 1 +
netwerk/base/nsBaseChannel.cpp | 1 +
netwerk/base/nsChannelClassifier.cpp | 1 +
netwerk/base/nsDirectoryIndexStream.cpp | 3 ++-
netwerk/base/nsDownloader.cpp | 1 +
netwerk/base/nsIOService.cpp | 1 +
netwerk/base/nsIncrementalDownload.cpp | 3 +++
netwerk/base/nsNetUtil.cpp | 4 ++++
netwerk/base/nsNetUtil.h | 1 +
netwerk/base/nsProtocolProxyService.cpp | 1 +
netwerk/base/nsSecCheckWrapChannel.cpp | 2 ++
netwerk/base/nsUDPSocket.cpp | 4 +++-
netwerk/cache/nsDiskCacheBinding.cpp | 2 +-
netwerk/cache/nsDiskCacheDeviceSQL.cpp | 2 ++
netwerk/cache/nsMemoryCacheDevice.cpp | 2 +-
netwerk/cache2/CacheFileUtils.cpp | 2 ++
netwerk/cache2/CacheStorageService.h | 1 +
netwerk/ipc/NeckoParent.cpp | 1 +
netwerk/ipc/RemoteOpenFileChild.cpp | 1 +
netwerk/protocol/about/nsAboutBloat.cpp | 1 +
netwerk/protocol/about/nsAboutCacheEntry.cpp | 1 +
netwerk/protocol/about/nsAboutProtocolHandler.cpp | 1 +
netwerk/protocol/data/DataChannelParent.cpp | 1 +
netwerk/protocol/file/nsFileProtocolHandler.cpp | 1 +
netwerk/protocol/ftp/FTPChannelParent.cpp | 2 ++
netwerk/protocol/ftp/FTPChannelParent.h | 1 +
netwerk/protocol/ftp/nsFtpConnectionThread.cpp | 1 +
netwerk/protocol/ftp/nsFtpProtocolHandler.h | 1 +
netwerk/protocol/http/Http2Compression.cpp | 1 +
netwerk/protocol/http/Http2Session.cpp | 1 +
netwerk/protocol/http/Http2Stream.h | 2 ++
netwerk/protocol/http/HttpBaseChannel.cpp | 4 ++++
netwerk/protocol/http/HttpBaseChannel.h | 1 +
netwerk/protocol/http/HttpChannelChild.cpp | 25 ++--------------------
netwerk/protocol/http/HttpChannelChild.h | 24 +++++++++++++++++++++
netwerk/protocol/http/HttpChannelParent.cpp | 1 +
netwerk/protocol/http/HttpChannelParent.h | 1 +
.../protocol/http/HttpChannelParentListener.cpp | 1 +
netwerk/protocol/http/HttpChannelParentListener.h | 1 +
netwerk/protocol/http/InterceptedChannel.cpp | 1 +
netwerk/protocol/http/NullHttpChannel.cpp | 1 +
netwerk/protocol/http/NullHttpTransaction.cpp | 1 +
netwerk/protocol/http/PackagedAppService.cpp | 14 ++++++++++--
netwerk/protocol/http/PackagedAppService.h | 4 +++-
netwerk/protocol/http/PackagedAppVerifier.cpp | 1 +
netwerk/protocol/http/nsCORSListenerProxy.cpp | 2 +-
netwerk/protocol/http/nsHttpBasicAuth.cpp | 1 +
netwerk/protocol/http/nsHttpChannel.cpp | 2 ++
netwerk/protocol/http/nsHttpChunkedDecoder.cpp | 1 +
netwerk/protocol/http/nsHttpConnectionInfo.cpp | 2 ++
netwerk/protocol/http/nsHttpConnectionMgr.cpp | 1 +
netwerk/protocol/http/nsHttpDigestAuth.cpp | 1 +
netwerk/protocol/viewsource/nsViewSourceHandler.h | 4 ++++
.../protocol/websocket/BaseWebSocketChannel.cpp | 1 +
.../websocket/WebSocketEventListenerParent.cpp | 1 +
.../protocol/websocket/WebSocketEventService.cpp | 3 +++
netwerk/protocol/websocket/WebSocketFrame.cpp | 2 ++
netwerk/protocol/wyciwyg/nsWyciwygChannel.cpp | 1 +
.../protocol/wyciwyg/nsWyciwygProtocolHandler.cpp | 1 +
netwerk/streamconv/converters/mozTXTToHTMLConv.cpp | 1 +
.../streamconv/converters/nsFTPDirListingConv.cpp | 1 +
.../streamconv/converters/nsHTTPCompressConv.cpp | 2 ++
netwerk/streamconv/converters/nsHTTPCompressConv.h | 1 +
netwerk/streamconv/converters/nsIndexedToHTML.cpp | 1 +
netwerk/streamconv/converters/nsMultiMixedConv.cpp | 2 ++
netwerk/streamconv/converters/nsTXTToHTMLConv.cpp | 2 ++
netwerk/streamconv/converters/nsUnknownDecoder.cpp | 2 ++
75 files changed, 147 insertions(+), 32 deletions(-)
2016-01-08 20:20:50 -05:00
Chris Peterson
03f5630fd2
Bug 1235298 - Annotate intentional switch fallthroughs to suppress -Wimplicit-fallthrough warnings in netwerk/. r=mcmanus
2015-11-22 21:58:33 -08:00
Mike Taylor
d72068aa11
Bug 1237091. Remove WAP telemetry probe. r=mcmanus
2016-01-06 12:15:41 -06:00
Ehsan Akhgari
5f8c37f202
Bug 1229369
- Part 2: Drop the aChannel argument to HttpChannelChild::ShouldInterceptURI()
2016-01-06 11:19:50 -05:00
Ehsan Akhgari
ddf76b50b9
Bug 1229369
- Intercept redirected network fetches that have their request mode set to manual; r=jdm
...
In the non-e10s case, this is done by simply avoiding to set the
LOAD_BYPASS_SERVICE_WORKER flag when we detect a non-internal redirect
in the manual redirect mode.
The e10s solution is a bit more complicated. Only the child process
knows whether a URI needs to be intercepted, so we piggy back on the
code written to support the |event.respondWith(Response.redirect())|
case where we know in the child that the target of the redirect needs to
be intercepted.
This means that we need to check the same condition as in the non-e10s
case, but we also need to check whether the target of the redirection
needs to be intercepted, which means we need to properly take secure
upgrades into account as well. This is done by computing both whether
we should intercept and whether we should do a secure upgrade in
HttpChannelChild::SetupRedirect() and saving the information on the
HttpChannelChild for later usage in HttpChannelChild::AsyncOpen().
2016-01-05 21:02:00 -05:00
Patrick McManus
061f13abb6
Bug 1121447 - trust cache less for error codes r=mayhemer
2015-12-22 16:06:07 -05:00
Patrick McManus
b28062758e
Bug 299031 - heuristic cache rule for 410 should be longer r=mayhemer
2015-12-22 14:58:44 -05:00
Ehsan Akhgari
40c82fa10c
Bug 1236686 - Remove nsIFetchEventDispatcher; r=jdm
2016-01-05 15:04:41 -05:00
Patrick McManus
74c91a9068
Bug 524232 - cache about: protocol handlers r=mayhemer
2015-12-17 10:39:41 -05:00
Nicholas Hurley
af06028314
Bug 1236170 - Make Http2Session::UncompressAndDiscard push-aware. r=mcmanus
...
--HG--
extra : commitid : 16EiVpkRWzq
extra : rebase_source : 6146a35424871e8de7cc989acb3479b35921a2a9
2016-01-04 12:17:39 -08:00
Ehsan Akhgari
9f447f6c4f
Bug 1214305 - Part 7: Decide in the child process whether an intercepted channel should go through a secure upgrade; r=mcmanus
...
This is OK from a security perspective, since this decision only affects
whether the channel will be intercepted with the secure URI in the child
process. If the intercepting service worker decides to fall back to an
actual network request, we send the request to the parent process with
the original pre-upgrade URI, and the parent process will still be in
charge of whether a network visible HTTP request should be upgraded.
2016-01-04 16:30:02 -05:00
Ehsan Akhgari
69ce1d24d9
Bug 1214305 - Part 6: Use a non-IPC redirect for synthesized upgraded responses to ensure the response URL is correctly propagated; r=mcmanus
2016-01-04 16:30:02 -05:00
Ehsan Akhgari
a48f3795ae
Bug 1214305 - Part 3: Add a nsIInterceptedChannel.secureUpgradedChannelURI helper; r=jdm
2016-01-04 16:30:02 -05:00
Ehsan Akhgari
9d105a6fd7
Bug 1214305 - Part 2: Refactor the logic for obtaining the secure upgraded URI into HttpBaseChannel; r=mcmanus
2016-01-04 16:30:02 -05:00
Ehsan Akhgari
377b919b76
Bug 1214305 - Part 1: Refactor the logic for querying whether a connection should go through a secure upgrade into NS_ShouldSecureUpgrade; r=mcmanus
2016-01-04 16:30:02 -05:00
Wes Kocher
dbbade6e75
Backed out 10 changesets (bug 1214305) for leaks on linux debug m-e10s(bc7)
...
Backed out changeset 1f482566235a (bug 1214305)
Backed out changeset 001b31489756 (bug 1214305)
Backed out changeset 4e94d2088219 (bug 1214305)
Backed out changeset fba4a5bcea41 (bug 1214305)
Backed out changeset 100f8e249007 (bug 1214305)
Backed out changeset a59c453192dc (bug 1214305)
Backed out changeset 2daa86fc1fb9 (bug 1214305)
Backed out changeset c04efb57b0ed (bug 1214305)
Backed out changeset 52046e843c60 (bug 1214305)
Backed out changeset ac4fd6615828 (bug 1214305)
--HG--
extra : commitid : ILmaVumvmvH
2016-01-04 10:34:24 -08:00
Ehsan Akhgari
96c8327a92
Bug 1214305 - Part 7: Decide in the child process whether an intercepted channel should go through a secure upgrade; r=mcmanus
...
This is OK from a security perspective, since this decision only affects
whether the channel will be intercepted with the secure URI in the child
process. If the intercepting service worker decides to fall back to an
actual network request, we send the request to the parent process with
the original pre-upgrade URI, and the parent process will still be in
charge of whether a network visible HTTP request should be upgraded.
2016-01-04 09:52:47 -05:00
Ehsan Akhgari
1927591d62
Bug 1214305 - Part 6: Use a non-IPC redirect for synthesized upgraded responses to ensure the response URL is correctly propagated; r=mcmanus
2016-01-04 09:52:45 -05:00
Ehsan Akhgari
17e63f2856
Bug 1214305 - Part 3: Add a nsIInterceptedChannel.secureUpgradedChannelURI helper; r=jdm
2016-01-04 09:52:40 -05:00
Ehsan Akhgari
478b7b9bc3
Bug 1214305 - Part 2: Refactor the logic for obtaining the secure upgraded URI into HttpBaseChannel; r=mcmanus
2016-01-04 09:52:39 -05:00
Ehsan Akhgari
3e8d2fe85d
Bug 1214305 - Part 1: Refactor the logic for querying whether a connection should go through a secure upgrade into NS_ShouldSecureUpgrade; r=mcmanus
2016-01-04 09:52:37 -05:00
Ehsan Akhgari
bbc181b4fe
Bug 1219469 - Part 2: Make HttpChannelParentListener be the controller; r=jdm,jduell
...
The controller needs to be able to handle redirects.
HttpChannelParentListener is a listener object that can attach to
multiple HttpChannelParent objects as part of a single logical Necko
channel (meaning that the listener object will be reused for redirected
channels) so it seems like the better choice for the object that should
implement nsINetworkInterceptController. This patch moves the
implementation of the nsINetworkInterceptController interface to
HttpChannelParentListener.
2016-01-04 09:39:12 -05:00
Ehsan Akhgari
77182bbd83
Bug 1219469 - Part 1: Revert the error reporting added in bug 1233845; r=jdm
2016-01-04 09:39:10 -05:00
Ehsan Akhgari
208f93e405
Bug 1233245 - Propagate the interception information in the non-e10s case for all HTTP redirects, not just the internal ones; r=jdm
...
Doing this work in StartRedirectChannelToURI() was causing us to not set
the bypass service worker flag properly in the case of real HTTP redirects.
This patch also fixes the incorrect test expectation value.
2016-01-04 09:39:09 -05:00
Jason Duell
b091fa291e
Bug 1199841 - Restructure private browsing to remember status after OnStopRequest r=jdm
2015-12-30 17:51:21 -05:00
Mike Hommey
ce3914c897
Bug 1225384 - Change how the default resource "host names" are handled. r=michal
...
The meaning of resource:///, resource://app/ and resource://gre/ needs to
remain constant. Unfortunately, the model of the resource protocol handler
is that it is possible to set substitutions that change their meaning.
So, we forbid setting overwriting the substitutions for those three
special "host names".
Unfortunately, with e10s, the full list of substitutions is also sent to
the content process, which then sets substitutions, making it harder to
know in which cases SetSubstitution is valid for those three "host names"
or not.
So instead of trying to find the right heuristics, use the recently added
SubstitutingProtocolHandler::ResolveSpecialCases API to handle the three
"host names" instead of storing them as "normal" substitutions.
Still actively reject SetSubstitution with the three special "host names"
so as to find issues such as bug 1224000 instead of allowing the chrome
manifest entry and have it silently ignored.
Additionally, make GetSubstitution return the URIs for the three special
"host names" through GetSubstitutionInternal, replacing what was originally
added in bug 257162. Those changes from bug 257162 relied on the
resource:app string being handled by nsXREDirProvider::GetFile, but that was
removed in bug 620931, effectively making that code now in
GetSubstitutionInternal useless.
2015-12-28 06:49:05 +09:00
Ben Kelly
3972c8300e
Bug 1220681 P5 Don't double suspend parent channel during synthesized divert to parent. r=jdm
2015-12-23 12:20:53 -08:00
Ben Kelly
dd179ed223
Bug 1220681 P4 Automatically suspend the parent channel after synthesizing the response for diverison. r=jdm
2015-12-23 12:20:53 -08:00
Ben Kelly
9230279805
Bug 1220681 P3 Delay diversion on parent side until response head has been synthesized. r=jdm
2015-12-23 12:20:53 -08:00
Ben Kelly
0616535096
Bug 1220681 P1 Make HttpChannelChild::DivertToParent() work with synthetic responses. r=jdm
2015-12-23 12:20:53 -08:00
Patrick McManus
29ca4c0e9d
Bug 1218297 - eventtokenbucket shutdown leak r=valentin
2015-12-23 10:47:13 -05:00
Patrick McManus
90c978fb27
Bug 1234896 - refptrs for httphandler.cpp r=valentin.gosu
2015-12-23 11:43:41 -05:00
Ben Kelly
3fcfa5995a
Bug 1233962 P1 Call ResetInterception() if the controller is nullptr. r=jdm
2015-12-22 11:57:10 -08:00
Blake Kaplan
92c07bc4ad
Bug 1229177 - Show the tracking protection shield for fetch and XHR requests. r=jduell
...
--HG--
extra : rebase_source : 81f1819355ee85b323cdfff4505e20613c4c5296
2015-12-21 14:12:52 -08:00
Sebastian Hengst
678b0a4325
Backed out changeset e8c63b932647 (bug 1225384) for bustage in netwerk/test/unit/test_bug580508.js in e.g. XPCshell tests. r=bustage
2015-12-22 01:33:26 +01:00
Mike Hommey
b6ec2d180a
Bug 1225384 - Change how the default resource "host names" are handled. r=michal
...
The meaning of resource:///, resource://app/ and resource://gre/ needs to
remain constant. Unfortunately, the model of the resource protocol handler
is that it is possible to set substitutions that change their meaning.
So, we forbid setting overwriting the substitutions for those three
special "host names".
Unfortunately, with e10s, the full list of substitutions is also sent to
the content process, which then sets substitutions, making it harder to
know in which cases SetSubstitution is valid for those three "host names"
or not.
So instead of trying to find the right heuristics, use the recently added
SubstitutingProtocolHandler::ResolveSpecialCases API to handle the three
"host names" instead of storing them as "normal" substitutions.
Still actively reject SetSubstitution with the three special "host names"
so as to find issues such as bug 1224000 instead of allowing the chrome
manifest entry and have it silently ignored.
2015-12-22 07:55:40 +09:00
Ehsan Akhgari
aa999694ec
Bug 1234251 - Remove HttpChannelChild::mSynthesizedResponseHead; r=jdm
2015-12-21 17:01:28 -05:00
Dragana Damjanovic
c2d5cae269
Bug 664163 - Fix Get(Local|Remote)(Address|Port) in HttpChannelChild. r=jduell
2015-12-19 16:11:39 -05:00
Josh Matthews
d2cef8692f
Bug 1233845 - Report an interception error and cancel the HTTP channel when encountering a known topcrash situation. r=ehsan
2015-12-19 09:40:06 -05:00
Patrick McManus
ae19b61b33
Bug 513129 - Dont reuse connections after security prefs change r=hurley
2015-12-17 17:37:53 -05:00
Wes Kocher
48e8bea219
Backed out changeset 82cd6a486698 (bug 1233245) for fetch-request-redirect.https.html failures CLOSED TREE
...
--HG--
extra : commitid : 2O37Vand5Zd
2015-12-17 16:18:29 -08:00
Ehsan Akhgari
91432f79e5
Bug 1233245 - Propagate the interception information in the non-e10s case for all HTTP redirects, not just the internal ones; r=jdm,bkelly
...
Doing this work in StartRedirectChannelToURI() was causing us to not set
the bypass service worker flag properly in the case of real HTTP redirects.
This patch also fixes the incorrect test expectation value.
2015-12-17 17:32:38 -05:00
Nicholas Hurley
a6d6d5ef55
Bug 1228822 - Ensure we send out the window update when matching a pushed stream with a pull stream. r=mcmanus
...
--HG--
extra : commitid : D6pRH1pTQe6
extra : rebase_source : 0b1d5f10a9ebeda7b037e2c147f426908ef241a2
2015-12-09 10:11:04 -08:00
Tim Nguyen
8fe11e6a5d
Bug 1137681 - Make user agent docshell overrides affect network requests. r=jduell
2015-12-08 09:27:00 +01:00
Patrick McManus
4c8ee0930e
Bug 1230743 - telemtry for nsConnectionEntry hit rate r=hurley
2015-12-05 07:43:01 -05:00
Jonas Sicking
081cb24a23
Bug 1226909 followup to fix bustage. Make sure that the channel returned by NS_NewChannel doesn't have a loadinfo that indicates that the channel has already been opened
2015-12-06 23:50:49 -05:00
Jonas Sicking
0bb4231605
Bug 1216687: Add nsILoadInfo flags for cookie policies. r=ckerschb
2015-12-06 18:33:15 -05:00
Jonas Sicking
28de02f687
Bug 1226909 part 3: Move logic of when to initiate CORS preflight into channels. Allow CORS preflight to happen when doing a same-origin to cross-origin redirect. r=ckerschb
2015-12-06 18:33:14 -05:00
Jonas Sicking
0e0c8c52ea
Bug 1226909 part 2: Let CORS preflight logic grab information from nsILoadInfo rather than duplicate it. r=ckerschb
2015-12-06 18:33:14 -05:00
Sebastian Hengst
774236075d
Backed out changeset 09d64535bcda (bug 1216687), a7f1a289dd78, 4dbf06183e6c, 26318a5e3006, 9ae2af3cf86d (bug 1226909) for M(1,2,5) oranges. r=backout
2015-12-05 16:34:47 +01:00
Jonas Sicking
993136c2c9
Bug 1216687: Add nsILoadInfo flags for cookie policies. r=ckerschb
2015-12-05 01:46:21 -08:00
Jonas Sicking
ff12f48c5a
Bug 1226909 part 3: Move logic of when to initiate CORS preflight into channels. Allow CORS preflight to happen when doing a same-origin to cross-origin redirect. r=ckerschb
2015-12-05 01:46:20 -08:00
Jonas Sicking
918c689657
Bug 1226909 part 2: Let CORS preflight logic grab information from nsILoadInfo rather than duplicate it. r=ckerschb
2015-12-05 01:46:20 -08:00
Nathan Froyd
9a956c9885
Bug 1223808 - part 3 - replace nsAutoArrayPtr<T> with UniquePtr<T[]> in netwerk/; r=mcmanus
2015-11-08 21:28:05 -05:00
Nathan Froyd
fcdd745657
Bug 1223808 - part 1 - optimize creating a WebSocketFrame with a payload; r=mcmanus
...
This function:
- Allocates a block of memory;
- Copies things into that block of memory;
- Allocates another block of memory inside nsAutoCString;
- Copies into our string from the block of memory we just allocated.
Clearly we can avoid a memory allocation and some copying by just
allocating the amount of data we need in the string first, and copying
things into the string.
2015-11-08 21:26:46 -05:00
Nathan Froyd
3071ec2419
Bug 1218454 - part 2a - fix bootlegging of nsContentUtils.h includes from nsILoadContext.h; r=bz
2015-12-01 21:49:38 -05:00
Nathan Froyd
c381a6b86c
Bug 1218454 - part 2 - don't #include nsContentUtils.h from CallbackObject.h; r=bz
...
We used to need nsContentUtils.h here for nsCxPusher, but since that got
moved to ScriptSettings.h, we no longer need nsContentUtils.h for
anything.
2015-10-26 12:14:47 -04:00
Carsten "Tomcat" Book
5adcabb340
merge mozilla-inbound to mozilla-central a=merge
2015-12-02 15:20:57 +01:00
Carsten "Tomcat" Book
44cd9f4db8
Backed out changeset 7a9e01e904b0 (bug 1137681) for test bustage on a CLOSED TREE
2015-12-02 11:28:46 +01:00
Tim Nguyen
e0f8972f78
Bug 1137681 - Make user agent docshell overrides affect network requests. r=jduell
2015-12-01 13:08:00 +01:00
Mike Hommey
b2e31e6ade
Bug 1225682 - Don't use nsAuto{,C}String as class member variables in netwerk/. r=mcmanus
2015-12-02 11:04:37 +09:00
Christoph Kerschbaumer
413a60a063
Bug 1225641 - Change default security flags within NetUtil.newChannel (r=sicking)
2015-11-17 17:35:30 -08:00
Blake Kaplan
b62a6327bd
Bug 1171215 - Compute third-partyness in the loadinfo instead of nsIHttpChannelInternal so that other protocols correctly respect the third-party cookie pref. r=sicking/ckerschb
2015-11-30 13:25:29 -08:00
Nicholas Nethercote
4a7f327575
Bug 1186783 (part 4) - Replace nsBaseHashtable::EnumerateRead() calls in netwerk/ with iterators. r=valentin.
2015-11-19 16:46:24 -08:00
Patrick McManus
cff263f5f6
Bug 1133873 - some spdy logs r=hurley
2015-11-29 16:11:16 -05:00
Carsten "Tomcat" Book
358e4575c4
merge mozilla-inbound to mozilla-central a=merge
2015-11-26 16:54:27 +01:00
Daniel Stenberg
1a4f344e08
Bug 1227931 - init Http2Stream::mReceivedData in the constructor. r=nwgh
2015-11-25 05:15:00 +01:00
Yoshi Huang
4b500464f5
Bug 1209162 - Create OriginAttributes subtypes. IGNORE IDL r=sicking.
2015-11-03 09:50:54 +08:00
Valentin Gosu
3890536ca3
Bug 1222352
- Resource Timing - nextHopProtocol does not work in e10s r=nwgh
2015-11-24 13:42:47 +01:00
Jonas Sicking
66bbe5bc72
Bug 1217456: Add a security flag for controlling redirects. Use this flag in fetch() implementation. r=bkelly,jduell
2015-11-23 18:47:10 -08:00
Valentin Gosu
c62bdbfd66
Bug 1226760 - ViewSource doesn't work for packaged app resources r=mcmanus
...
* The packaged app service should use the URI of the channel, not the URI of the channel's principal.
2015-11-25 12:44:43 +01:00
Ben Bucksch
2572e8c3db
Bug 1200802 - Accept RFC1929 SOCKS credentials in proxyInfo. r=michal
2015-11-24 22:56:00 +01:00
Patrick McManus
ad7e5f708d
Bug 1174899 - discarded spdy data with fin attributed to wrong stream r=bagder
2015-11-22 16:23:18 -05:00
Patrick McManus
cb590dc42e
Bug 1174899 - fixup log format strings for spdy/h2 r=bagder
2015-11-20 15:33:04 -05:00
Jan Varga
c1c950896a
Bug 961049 - Part 3: Move PersistenceType serializer from indexedDB to quota module; r=baku
2015-11-22 10:43:34 +01:00
Kris Maglione
758d568a88
Bug 1209184: Part 2 - [webext] Localize CSS files served from moz-extension: channels. r=jdm
...
--HG--
extra : commitid : AydP9pd8Oa0
extra : rebase_source : 11dfd5aff943faa3472577241a502ace3f87996e
extra : source : 9c63ffd499ebc4ed4f164d4b35e09a7a03c36387
2015-11-27 16:03:01 -08:00
Christoph Kerschbaumer
1a042dd25b
Bug 1226444 - Use helper function to identify preloads. r=sicking
2015-11-19 17:02:40 -08:00
Nicholas Nethercote
7226cb18c8
Bug 1187137 (part 3) - Replace nsBaseHashtable::Enumerate() calls in netwerk/protocol/ with iterators. r=michal.
...
--HG--
extra : rebase_source : 14445e0a69e5fdff108857b443e1e8fa2829415f
2015-11-03 17:05:34 -08:00
Nicholas Nethercote
1b73f741f6
Bug 1187137 (part 2) - Replace nsBaseHashtable::Enumerate() calls in netwerk/protocol/ with iterators. r=michal.
...
--HG--
extra : rebase_source : 07e6ca520d40492fe5ab7975c0026ed5511298bd
2015-11-03 17:00:30 -08:00
Nicholas Nethercote
7af30fe1a6
Bug 1187137 (part 1) - Replace nsBaseHashtable::Enumerate() calls in netwerk/protocol/ with iterators. r=michal.
...
--HG--
extra : rebase_source : 7448eda5a80a75d3b117599da849ae2e9df0b255
2015-11-03 16:31:40 -08:00
Mike Hommey
05bb883ae6
Bug 1225407 - Replace nsInterfaceHashtable::EnumerateRead() call in SubstitutingProtocolHandler with an iterator. r=michal
2015-11-19 08:05:51 +09:00
Ben Kelly
d6cd5e961e
Bug 1217909 P8 Track navigation interceptions per scope in ServiceWorkerManager. r=catalinb
2015-11-16 08:04:11 -08:00
Henry
c5b6b535ec
Bug 1224508 - Use URI path without reference as the callback key. r=valentin.
2015-11-13 02:15:00 +01:00
sajitk
8eb3a68c9e
Bug 1201997
- Part 4 - Change size and offset variables to size_t.r=froydn
2015-11-15 14:48:08 +01:00
Christoph Kerschbaumer
d9f1276ace
Bug 663570 - MetaCSP Part 3: Upgrade insecure requests changes (r=bz)
2015-11-14 19:28:38 -08:00
Phil Ringnalda
596e8ff827
Back out 9 changesets (bug 1214305) for e10s devtools browser_bug1045902_console_csp_ignore_reflected_xss_message.js failures
...
Backed out changeset 82929be36e95 (bug 1214305)
Backed out changeset e926606aefbf (bug 1214305)
Backed out changeset 226c83ca9a2a (bug 1214305)
Backed out changeset 88ab26108f2d (bug 1214305)
Backed out changeset 2e3e4f256d46 (bug 1214305)
Backed out changeset 347cd0f8f1e3 (bug 1214305)
Backed out changeset be072bba15fc (bug 1214305)
Backed out changeset 3b85acbe7be7 (bug 1214305)
Backed out changeset 49b930683c02 (bug 1214305)
2015-11-14 10:09:58 -08:00
Ehsan Akhgari
f51834eac5
Bug 1214305 - Part 7: Decide in the child process whether an intercepted channel should go through a secure upgrade; r=mcmanus
...
This is OK from a security perspective, since this decision only affects
whether the channel will be intercepted with the secure URI in the child
process. If the intercepting service worker decides to fall back to an
actual network request, we send the request to the parent process with
the original pre-upgrade URI, and the parent process will still be in
charge of whether a network visible HTTP request should be upgraded.
2015-11-02 11:27:00 -05:00
Ehsan Akhgari
cef4c60f16
Bug 1214305 - Part 6: Use a non-IPC redirect for synthesized upgraded responses to ensure the response URL is correctly propagated; r=mcmanus
2015-11-02 11:27:00 -05:00
Ehsan Akhgari
03d8835f92
Bug 1214305 - Part 3: Add a nsIInterceptedChannel.secureUpgradedChannelURI helper; r=jdm
2015-11-02 11:27:00 -05:00
Ehsan Akhgari
1295fc0d03
Bug 1214305 - Part 2: Refactor the logic for obtaining the secure upgraded URI into HttpBaseChannel; r=mcmanus
2015-11-02 11:27:00 -05:00
Ehsan Akhgari
39d5e41384
Bug 1214305 - Part 1: Refactor the logic for querying whether a connection should go through a secure upgrade into NS_ShouldSecureUpgrade; r=mcmanus
2015-11-02 11:27:00 -05:00
Nicholas Hurley
31010dbad5
Bug 1224328 - Don't infinite loop when parsing headers with newlines. r=mcmanus
...
--HG--
extra : rebase_source : c044f7bd991b7e48010d6bb6997585b1fc846d1d
2015-11-12 14:44:31 -08:00
Nathan Froyd
245e39afde
Bug 1222867 - part 2 - be smarter about transferring ownership of WebSocketFrame; r=mcmanus
...
WebSocketFrames are created only to be transferred in to
WebSocketEventService::Frame{Sent,Received}, where a strong reference is
taken to them by a runnable posted to the main thread. Let's avoid an
extra AddRef/Release cycle by passing through already_AddRefed
structures.
2015-11-08 20:52:27 -05:00
Nathan Froyd
bb66fde0a0
Bug 1222867 - part 1 - return already_AddRefed from WebSocketEventService::CreateFrameIfNeeded; r=mcmanus
...
The result of CreateFrameIfNeeded is always assigned to a RefPtr, so we
can save a little code space by moving the AddRef into the callee,
rather than doing it in the caller.
2015-11-08 20:44:11 -05:00
Nathan Froyd
0d181baf2d
Bug 1219910 - make gSocketThread a relaxed atomic variable; r=mcmanus
...
Many places that (re-)declared gSocketThread already included
nsSocketTransportService2.h; we can delete the declaration for those
places. For all the other places, we need to include
nsSocketTransportService2.h.
2015-11-06 12:00:37 -05:00
Henry
ba8fe97d17
Bug 1214079 - Doom the package cache if the signature verification failed. r=valentin
2015-11-05 23:44:00 +01:00
Mike Hommey
4d40edea15
Bug 1221453 - Use AbsolutePaths with LOCAL_INCLUDES instead of manual -I in CXXFLAGS. r=gps
2015-11-06 09:59:21 +09:00
Gijs Kruitbosch
3718ce387c
Bug 1221444, r=bz
...
--HG--
extra : commitid : KNAjQV8ZZZG
extra : rebase_source : aae0193c47347b32a85a3c374b8dc6f2f2fb0fb8
2015-11-04 16:54:44 +00:00
Ben Kelly
8267928bb3
Bug 1220007 P2 Make InterceptedChannel's collect logs locally and only flush to nsIChannel on main thread r=bz
2015-11-03 11:20:56 -08:00
Ben Kelly
c59018c14a
Bug 1220007 P1 Allow ConsoleReportCollectors to flush to another collector. r=bz
2015-11-03 11:20:56 -08:00
Julian Seward
c93c98f458
Bug 1218506
- Uninitialised value use in nsHttpTransaction::OnTransportStatus. r=mcmanus.
2015-11-03 15:03:16 +01:00
Carsten "Tomcat" Book
507e90cf52
Backed out changeset c253b6bd00b1 (bug 1220007) for causing a bustage on B2g-emulator L builds which is only visible on b2g-inbound on a CLOSED TREE
2015-11-03 14:08:50 +01:00
Carsten "Tomcat" Book
042b4d64cd
Backed out changeset d8d75be11275 (bug 1220007)
2015-11-03 14:08:04 +01:00
Patrick McManus
073d4a9803
bug 1219466 - convert netwerk to LazyLogModule r=valentin.gosu
2015-11-02 23:35:29 -05:00
Wes Kocher
5c94e0f593
Merge m-c to inbound, a=merge
...
--HG--
extra : commitid : 2sVZQRwbKyB
2015-11-02 15:57:48 -08:00
Wes Kocher
3696443a14
Merge inbound to m-c a=merge
...
--HG--
extra : commitid : Iy93sktRpdv
2015-11-02 15:12:16 -08:00
Fabrice Desré
5f7f5f2afc
Bug 1220061 - Android UA is not correct when MOZ_UA_OS_AGNOSTIC is set r=gerv
2015-11-02 09:23:28 -08:00
Birunthan Mohanathas
9985829ecc
Bug 1219392 - Capitalize mozilla::unused to avoid conflicts. r=froydnj
2015-11-02 07:53:26 +02:00
Ben Kelly
537f8dad54
Bug 1220007 P2 Make InterceptedChannel's collect logs locally and only flush to nsIChannel on main thread r=bz
2015-11-02 12:04:29 -08:00
Ben Kelly
671d5644f9
Bug 1220007 P1 Allow ConsoleReportCollectors to flush to another collector. r=bz
2015-11-02 12:04:29 -08:00
Madhurima
a687733788
Bug 1197313 - remove PR_snprintf calls in netwerk/; r=froydnj
2015-10-29 16:07:44 -04:00
Ben Kelly
5b0d032145
Bug 1220678 Don't crash when DivertToParent() is called on an intercepted channel. r=jdm
2015-11-02 08:17:27 -08:00
Christoph Kerschbaumer
7dd3e47cb3
Bug 1194052 - Append to redirectchain before asyncopen() is called (r=sicking,mayhemer)
2015-10-31 15:22:01 -07:00
Christoph Kerschbaumer
08e98bc312
Bug 1194052 - Update Clone() functionality of LoadInfo (r=sicking)
2015-10-31 15:20:48 -07:00
Christoph Kerschbaumer
e15fd3a5f0
Bug 1194052 - Add support for internal redirectchain to loadInfo (r=sicking)
2015-10-31 15:18:59 -07:00
Phil Ringnalda
d8a1629175
Back out changeset ea8093d8be6a (bug 1197313) for Linux xpcshell bustage in test_offlinecache_custom-directory.js
...
CLOSED TREE
2015-10-31 12:14:38 -07:00
Madhurima
52b55c546f
Bug 1197313 - remove PR_snprintf calls in netwerk/; r=froydnj
2015-10-29 16:07:44 -04:00
Bill McCloskey
397ea79ef1
Bug 867407 - Fix cloning of file URIs with search query strings (r=sworkman)
2015-10-30 13:10:27 -07:00