gecko-dev/netwerk/protocol
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
..
about Bug 1225682 - Don't use nsAuto{,C}String as class member variables in netwerk/. r=mcmanus 2015-12-02 11:04:37 +09:00
app Bug 1225641 - Change default security flags within NetUtil.newChannel (r=sicking) 2015-11-17 17:35:30 -08:00
data Bug 1221444, r=bz 2015-11-04 16:54:44 +00:00
device Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
file Bug 867407 - Fix cloning of file URIs with search query strings (r=sworkman) 2015-10-30 13:10:27 -07:00
ftp bug 1219466 - convert netwerk to LazyLogModule r=valentin.gosu 2015-11-02 23:35:29 -05:00
http Bug 1220681 P5 Don't double suspend parent channel during synthesized divert to parent. r=jdm 2015-12-23 12:20:53 -08:00
res Bug 1225384 - Change how the default resource "host names" are handled. r=michal 2015-12-28 06:49:05 +09:00
rtsp Bug 1218454 - part 2a - fix bootlegging of nsContentUtils.h includes from nsILoadContext.h; r=bz 2015-12-01 21:49:38 -05:00
viewsource 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
websocket Bug 1223808 - part 1 - optimize creating a WebSocketFrame with a payload; r=mcmanus 2015-11-08 21:26:46 -05:00
wyciwyg Bug 1218454 - part 2 - don't #include nsContentUtils.h from CallbackObject.h; r=bz 2015-10-26 12:14:47 -04:00
moz.build