mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-09 16:57:30 +09:00
Remove MOZ_B2G leftovers and some dead B2G-only components.
This commit is contained in:
parent
75d98fd33e
commit
719ac1bc38
91 changed files with 28 additions and 5017 deletions
|
|
@ -126,10 +126,6 @@ nsXREDirProvider::Initialize(nsIFile *aXULAppDir,
|
|||
}
|
||||
}
|
||||
|
||||
#ifdef MOZ_B2G
|
||||
LoadAppBundleDirs();
|
||||
#endif
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
@ -761,38 +757,6 @@ nsXREDirProvider::LoadExtensionBundleDirectories()
|
|||
}
|
||||
}
|
||||
|
||||
#ifdef MOZ_B2G
|
||||
void
|
||||
nsXREDirProvider::LoadAppBundleDirs()
|
||||
{
|
||||
nsCOMPtr<nsIFile> dir;
|
||||
bool persistent = false;
|
||||
nsresult rv = GetFile(XRE_APP_DISTRIBUTION_DIR, &persistent, getter_AddRefs(dir));
|
||||
if (NS_FAILED(rv))
|
||||
return;
|
||||
|
||||
dir->AppendNative(NS_LITERAL_CSTRING("bundles"));
|
||||
|
||||
nsCOMPtr<nsISimpleEnumerator> e;
|
||||
rv = dir->GetDirectoryEntries(getter_AddRefs(e));
|
||||
if (NS_FAILED(rv))
|
||||
return;
|
||||
|
||||
nsCOMPtr<nsIDirectoryEnumerator> files = do_QueryInterface(e);
|
||||
if (!files)
|
||||
return;
|
||||
|
||||
nsCOMPtr<nsIFile> subdir;
|
||||
while (NS_SUCCEEDED(files->GetNextFile(getter_AddRefs(subdir))) && subdir) {
|
||||
mAppBundleDirectories.AppendObject(subdir);
|
||||
|
||||
nsCOMPtr<nsIFile> manifest =
|
||||
CloneAndAppend(subdir, "chrome.manifest");
|
||||
XRE_AddManifestLocation(NS_APP_LOCATION, manifest);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
static const char *const kAppendPrefDir[] = { "defaults", "preferences", nullptr };
|
||||
|
||||
#ifdef DEBUG_bsmedberg
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue