Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
build
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CodeLinaro
lf
build
Commits
a0840b7c
Commit
a0840b7c
authored
10 years ago
by
Linux Build Service Account
Committed by
Gerrit - the friendly Code Review server
10 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Patch deletion due to upstream fix"
parents
5bbfd524
725a9b61
No related branches found
Branches containing commit
Tags
AU_LINUX_GECKO_LF.BR.1.2.3.00.00.00.000.097
AU_LINUX_GECKO_LF.BR.1.2.3.00.00.00.000.098
AU_LINUX_GECKO_LF.BR.1.2.3.00.00.00.000.099
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
patch/LF.BR.1.2.3/gecko/bug-1091307-Fix-to-instantiate-vendor-telephony-implementation.patch
+0
-107
0 additions, 107 deletions
...-Fix-to-instantiate-vendor-telephony-implementation.patch
with
0 additions
and
107 deletions
patch/LF.BR.1.2.3/gecko/bug-1091307-Fix-to-instantiate-vendor-telephony-implementation.patch
deleted
100644 → 0
+
0
−
107
View file @
5bbfd524
From c2e6fc245df86f807da7ce04c799fd56e222c974 Mon Sep 17 00:00:00 2001
From: Indrajeet Kumar <ikumar@codeaurora.org>
Date: Tue, 13 Jan 2015 12:41:03 -0800
Subject: [PATCH] Fix to instantiate vendor telephony implementation (bug
1091307)
Change-Id: I33a31b2c8f5b98bbbaee6be789355789a908f71d
---
xpcom/components/nsComponentManager.cpp | 62 ++++++++++++++-------------------
1 file changed, 27 insertions(+), 35 deletions(-)
diff --git a/xpcom/components/nsComponentManager.cpp b/xpcom/components/nsComponentManager.cpp
index c5bcd92..dd01f468 100644
--- a/xpcom/components/nsComponentManager.cpp
+++ b/xpcom/components/nsComponentManager.cpp
@@ -374,6 +374,25 @@
nsComponentManagerImpl::Init()
GetLocationFromDirectoryService(NS_XPCOM_CURRENT_PROCESS_DIR);
InitializeStaticModules();
+ InitializeModuleLocations();
+
+ ComponentLocation* cl = sModuleLocations->InsertElementAt(0);
+ nsCOMPtr<nsIFile> lf = CloneAndAppend(appDir,
+ NS_LITERAL_CSTRING("chrome.manifest"));
+ cl->type = NS_COMPONENT_LOCATION;
+ cl->location.Init(lf);
+
+ bool equals = false;
+ appDir->Equals(greDir, &equals);
+ if (!equals) {
+ cl = sModuleLocations->InsertElementAt(0);
+ cl->type = NS_COMPONENT_LOCATION;
+ lf = CloneAndAppend(greDir, NS_LITERAL_CSTRING("chrome.manifest"));
+ cl->location.Init(lf);
+ }
+
+ PR_LOG(nsComponentManagerLog, PR_LOG_DEBUG,
+ ("nsComponentManager: Initialized."));
nsresult rv = mNativeModuleLoader.Init();
if (NS_FAILED(rv)) {
@@ -388,44 +407,20 @@
nsComponentManagerImpl::Init()
RegisterModule((*sStaticModules)[i], nullptr);
}
- // The overall order in which chrome.manifests are expected to be treated
- // is the following:
- // - greDir
- // - greDir's omni.ja
- // - appDir
- // - appDir's omni.ja
-
- InitializeModuleLocations();
- ComponentLocation* cl = sModuleLocations->AppendElement();
- nsCOMPtr<nsIFile> lf = CloneAndAppend(greDir,
- NS_LITERAL_CSTRING("chrome.manifest"));
- cl->type = NS_COMPONENT_LOCATION;
- cl->location.Init(lf);
-
- nsRefPtr<nsZipArchive> greOmnijar =
- mozilla::Omnijar::GetReader(mozilla::Omnijar::GRE);
- if (greOmnijar) {
- cl = sModuleLocations->AppendElement();
- cl->type = NS_COMPONENT_LOCATION;
- cl->location.Init(greOmnijar, "chrome.manifest");
- }
-
- bool equals = false;
- appDir->Equals(greDir, &equals);
- if (!equals) {
- cl = sModuleLocations->AppendElement();
- cl->type = NS_COMPONENT_LOCATION;
- lf = CloneAndAppend(appDir, NS_LITERAL_CSTRING("chrome.manifest"));
- cl->location.Init(lf);
- }
-
nsRefPtr<nsZipArchive> appOmnijar =
mozilla::Omnijar::GetReader(mozilla::Omnijar::APP);
if (appOmnijar) {
- cl = sModuleLocations->AppendElement();
+ cl = sModuleLocations->InsertElementAt(1); // Insert after greDir
cl->type = NS_COMPONENT_LOCATION;
cl->location.Init(appOmnijar, "chrome.manifest");
}
+ nsRefPtr<nsZipArchive> greOmnijar =
+ mozilla::Omnijar::GetReader(mozilla::Omnijar::GRE);
+ if (greOmnijar) {
+ cl = sModuleLocations->InsertElementAt(0);
+ cl->type = NS_COMPONENT_LOCATION;
+ cl->location.Init(greOmnijar, "chrome.manifest");
+ }
RereadChromeManifests(false);
@@ -439,9 +434,6 @@
nsComponentManagerImpl::Init()
// point. So we wait until now.
nsCategoryManager::GetSingleton()->InitMemoryReporter();
- PR_LOG(nsComponentManagerLog, PR_LOG_DEBUG,
- ("nsComponentManager: Initialized."));
-
mStatus = NORMAL;
return NS_OK;
--
1.8.2.1
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment