Hi Laurent,

The problem that you seem to be running into is the fact that
application bundles (Firefox) and framework bundles (xulrunner) differ
in their file organization [1]. They used to be identical prior to
Firefox 34, but as you can see in the bugs that you referenced, a change
to the structure of the Firefox application bundle became necessary to
support Apple's v2 signatures. Prior to Firefox 34, all files were
expected to be in Firefox.app/Contents/MacOS. This flat structure (all
files in the same directory) is the structure that is still expected by
framework bundles. In Firefox 34, the structure changed to the following:

1. Firefox.app/Contents/MacOS: Compiled code such as executables
(firefox), dynamic libraries (*.dylib), additional .app bundles
(crashreporter.app)
2. Firefox.app/Contents/Resources: Any non-compiled code
(dependentlibs.list, any scripts etc.)

If running SlimerJS via xulrunner is a mode that you want to keep
supporting (running it via the firefox binary seems to be working fine),
it may be necessary to write a patch to support both flat structures
(for framework bundles) and the more complex structure (for application
bundles).

-Stephen

[1]
https://developer.apple.com/library/mac/documentation/CoreFoundation/Conceptual/CFBundles/BundleTypes/BundleTypes.html#//apple_ref/doc/uid/10000123i-CH101-SW1


On 2/22/15 9:52 AM, laurentj wrote:
> Hi,
>
> Since Gecko 34, there are some changes in how Firefox is bundled for
> MacOS:
>
> https://bugzilla.mozilla.org/show_bug.cgi?id=1046906
> http://hearsum.ca/blog/upcoming-changes-to-mac-package-layout-signing.html
>
> https://bugzilla.mozilla.org/show_bug.cgi?id=1047584
> https://bugzilla.mozilla.org/show_bug.cgi?id=1050944
>
> The result is that XulRunner does not work anymore on MacosX, we have
> an error "Couldn't load XPCOM":
>
> https://bugzilla.mozilla.org/show_bug.cgi?id=1105044
>
> And so my project, SlimerJS, doesn't work anymore.
>
> This bug has been closed as "Invalid" (???). It seems that I should
> reorganize my files (or perhaps patch XulRunner). I tried several
> organizations but it doesn't work.
>
> I would like to understand what should be the files structure (the app
> + xulrunner), at least in theory. Then I could provide a patch for
> XulRunner if needed.
>
> thanks
>
> Laurent
> _______________________________________________
> dev-platform mailing list
> [email protected]
> https://lists.mozilla.org/listinfo/dev-platform

_______________________________________________
dev-platform mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to