author | Mike Hommey <mh@glandium.org> |
Fri, 25 Feb 2011 12:48:02 +0100 | |
changeset 69245 | ddc20b6faef05a3afde6a7205a9858882f245ca7 |
parent 69244 | 8d378453a8ac37d3763fec16d98cc83073208b4d |
child 69246 | aad5d018120e8a1245a1f2616d9cb01b4ce24aec |
push id | unknown |
push user | unknown |
push date | unknown |
reviewers | bsmedberg |
bugs | 620931 |
milestone | 6.0a1 |
first release with | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
last release without | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
layout/style/jar.mn | file | annotate | diff | comparison | revisions | |
netwerk/protocol/res/nsResProtocolHandler.cpp | file | annotate | diff | comparison | revisions |
--- a/layout/style/jar.mn +++ b/layout/style/jar.mn @@ -1,8 +1,10 @@ toolkit.jar: * res/ua.css (ua.css) res/html.css (html.css) res/quirk.css (quirk.css) res/viewsource.css (viewsource.css) * res/forms.css (forms.css) res/arrow.gif (arrow.gif) res/arrowd.gif (arrowd.gif) + +% resource gre-resources %res/
--- a/netwerk/protocol/res/nsResProtocolHandler.cpp +++ b/netwerk/protocol/res/nsResProtocolHandler.cpp @@ -72,17 +72,16 @@ static nsResProtocolHandler *gResHandler // // this enables PR_LOG_ALWAYS level information and places all output in // the file log.txt // static PRLogModuleInfo *gResLog; #endif #define kGRE NS_LITERAL_CSTRING("gre") -#define kGRE_RESOURCES NS_LITERAL_CSTRING("gre-resources") //---------------------------------------------------------------------------- // nsResURL : overrides nsStandardURL::GetFile to provide nsIFile resolution //---------------------------------------------------------------------------- nsresult nsResURL::EnsureFile() { @@ -194,28 +193,16 @@ nsResProtocolHandler::Init() NS_ENSURE_SUCCESS(rv, rv); // // make resource://gre/ point to the GRE directory // rv = AddSpecialDir(NS_GRE_DIR, kGRE); NS_ENSURE_SUCCESS(rv, rv); - // make resource://gre-resources/ point to gre toolkit[.jar]/res - nsCOMPtr<nsIURI> greURI; - nsCOMPtr<nsIURI> greResURI; - GetSubstitution(kGRE, getter_AddRefs(greURI)); -#ifdef MOZ_CHROME_FILE_FORMAT_JAR - NS_NAMED_LITERAL_CSTRING(strGRE_RES_URL, "jar:chrome/toolkit.jar!/res/"); -#else - NS_NAMED_LITERAL_CSTRING(strGRE_RES_URL, "chrome/toolkit/res/"); -#endif - rv = mIOService->NewURI(strGRE_RES_URL, nsnull, greURI, - getter_AddRefs(greResURI)); - SetSubstitution(kGRE_RESOURCES, greResURI); //XXXbsmedberg Neil wants a resource://pchrome/ for the profile chrome dir... // but once I finish multiple chrome registration I'm not sure that it is needed // XXX dveditz: resource://pchrome/ defeats profile directory salting // if web content can load it. Tread carefully. return rv; } @@ -239,22 +226,16 @@ nsResProtocolHandler::Init(nsIFile *aOmn // these entries should be kept in sync with the normal Init function // resource:/// points to jar:omni.jar!/ SetSubstitution(EmptyCString(), uri); // resource://gre/ points to jar:omni.jar!/ SetSubstitution(kGRE, uri); - urlStr += "chrome/toolkit/res/"; - rv = mIOService->NewURI(urlStr, nsnull, nsnull, getter_AddRefs(uri)); - NS_ENSURE_SUCCESS(rv, rv); - - // resource://gre-resources/ points to jar:omni.jar!/chrome/toolkit/res/ - SetSubstitution(kGRE_RESOURCES, uri); return NS_OK; } #endif static PLDHashOperator EnumerateSubstitution(const nsACString& aKey, nsIURI* aURI, void* aArg)