Keep supporting binary XPCOM components in addons for b2g

RESOLVED FIXED in Firefox 40

Status

()

defect
RESOLVED FIXED
4 years ago
4 years ago

People

(Reporter: fabrice, Assigned: benjamin)

Tracking

unspecified
mozilla40
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(firefox40 fixed)

Details

Attachments

(1 attachment)

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+
https://hg.mozilla.org/mozilla-central/rev/2e20e099b6df
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla40
You need to log in before you can comment on or make changes to this bug.