gecko-dev/netwerk/protocol/res
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
..
ExtensionProtocolHandler.cpp 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
ExtensionProtocolHandler.h Bug 1209184: Part 2 - [webext] Localize CSS files served from moz-extension: channels. r=jdm 2015-11-27 16:03:01 -08:00
moz.build Bug 1198334 (part 1) - Replace the opt-in FAIL_ON_WARNINGS with the opt-out ALLOW_COMPILER_WARNINGS. r=glandium. 2015-08-27 20:44:53 -07:00
nsIResProtocolHandler.idl Bug 1161831 - Factor the sharable bits out of nsIResProtocolHandler. r=billm 2015-07-21 12:57:21 -07:00
nsISubstitutingProtocolHandler.idl Bug 1161831 - Factor the sharable bits out of nsIResProtocolHandler. r=billm 2015-07-21 12:57:21 -07:00
nsResProtocolHandler.cpp Bug 1225384 - Change how the default resource "host names" are handled. r=michal 2015-12-28 06:49:05 +09:00
nsResProtocolHandler.h Bug 1225384 - Change how the default resource "host names" are handled. r=michal 2015-12-28 06:49:05 +09:00
SubstitutingProtocolHandler.cpp Bug 1209184: Part 2 - [webext] Localize CSS files served from moz-extension: channels. r=jdm 2015-11-27 16:03:01 -08:00
SubstitutingProtocolHandler.h Bug 1209184: Part 2 - [webext] Localize CSS files served from moz-extension: channels. r=jdm 2015-11-27 16:03:01 -08:00