Closed Bug 1161212 Opened 10 years ago Closed 10 years ago

Keep supporting binary XPCOM components in addons for b2g

Categories

(Core :: XPCOM, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla40
Tracking Status
firefox40 --- fixed

People

(Reporter: fabrice, Assigned: benjamin)

References

Details

Attachments

(1 file)

We need that for components shipped by partners. Either a pref or something keyed on MOZ_B2G is fine for me.
Can you provide details about where partners are shipping these components? Is it only via distribution/bundles or via other mechanisms as well?
Flags: needinfo?(fabrice)
They use distribution/bundles
Flags: needinfo?(fabrice)
Attachment #8601090 - Flags: review?(nfroyd)
Comment on attachment 8601090 [details] [diff] [review] 1144127-distributionbundles Review of attachment 8601090 [details] [diff] [review]: ----------------------------------------------------------------- ::: toolkit/xre/nsXREDirProvider.cpp @@ +643,5 @@ > > void > nsXREDirProvider::LoadAppBundleDirs() > { > +#ifdef MOZ_B2G This seems like a really big hammer, and has more effects than just B2G. Why not conditionalize the constant passed to XRE_AddManifestLocation, below?
Attachment #8601090 - Flags: review?(nfroyd)
Comment on attachment 8601090 [details] [diff] [review] 1144127-distributionbundles The policy question of removing distribution/bundle support was handled in bug 1144127 and the remaining issue there was B2G. This patch fixes both problems at the same time.
Attachment #8601090 - Flags: review?(nfroyd)
Comment on attachment 8601090 [details] [diff] [review] 1144127-distributionbundles Review of attachment 8601090 [details] [diff] [review]: ----------------------------------------------------------------- r=me with the change below and the commit message updated to reflect that change. ::: toolkit/xre/nsXREDirProvider.cpp @@ +667,5 @@ > mAppBundleDirectories.AppendObject(subdir); > > nsCOMPtr<nsIFile> manifest = > CloneAndAppend(subdir, "chrome.manifest"); > + XRE_AddManifestLocation(NS_APP_LOCATION, manifest); Please just pass NS_APP_LOCATION for B2G and NS_EXTENSION_LOCATION everywhere else. Essentially removing this function on non-B2G is outside the scope of this bug.
Attachment #8601090 - Flags: review?(nfroyd) → review+
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla40
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: