зеркало из https://github.com/mozilla/gecko-dev.git
Backout changeset 9df6e8117fe0 (Bug 620931 part 4) for causing bug 644790.
This commit is contained in:
Родитель
a52bcd185a
Коммит
acca01a9db
|
@ -79,7 +79,6 @@ static nsResProtocolHandler *gResHandler = nsnull;
|
|||
static PRLogModuleInfo *gResLog;
|
||||
#endif
|
||||
|
||||
#define kAPP NS_LITERAL_CSTRING("app")
|
||||
#define kGRE NS_LITERAL_CSTRING("gre")
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
|
@ -184,12 +183,6 @@ nsResProtocolHandler::Init()
|
|||
rv = SetSubstitution(EmptyCString(), uri);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
//
|
||||
// make resource://app/ point to the application directory or omnijar
|
||||
//
|
||||
rv = SetSubstitution(kAPP, uri);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
//
|
||||
// make resource://gre/ point to the GRE directory
|
||||
//
|
||||
|
|
|
@ -301,6 +301,9 @@ nsXREDirProvider::GetFile(const char* aProperty, PRBool* aPersistent,
|
|||
if (NS_SUCCEEDED(rv))
|
||||
file = lf;
|
||||
}
|
||||
else if (!strcmp(aProperty, "resource:app")) {
|
||||
rv = GetAppDir()->Clone(getter_AddRefs(file));
|
||||
}
|
||||
|
||||
else if (!strcmp(aProperty, NS_APP_PROFILE_DIR_STARTUP) && mProfileDir) {
|
||||
return mProfileDir->Clone(aFile);
|
||||
|
|
Загрузка…
Ссылка в новой задаче