diff --git a/xulrunner/config/mozconfigs/macosx-universal/xulrunner b/xulrunner/config/mozconfigs/macosx-universal/xulrunner index fe9a3a83bf5b..ac7e24fe23a1 100644 --- a/xulrunner/config/mozconfigs/macosx-universal/xulrunner +++ b/xulrunner/config/mozconfigs/macosx-universal/xulrunner @@ -4,5 +4,6 @@ export MOZILLA_OFFICIAL=1 ac_add_options --enable-application=xulrunner ac_add_options --disable-tests +ac_add_options --with-xulrunner-stub-name=xulrunner-stub . "$topsrcdir/xulrunner/config/mozconfigs/common.override" diff --git a/xulrunner/stub/moz.build b/xulrunner/stub/moz.build index 30afcf99712d..9e28f7978c3e 100644 --- a/xulrunner/stub/moz.build +++ b/xulrunner/stub/moz.build @@ -8,8 +8,8 @@ MODULE = 'xulrunner' # The value of XULRUNNER_STUB_NAME is generated by configure to allow XULRunner # apps to override it using the --with-xulrunner-stub-name= argument. -# If this configure argument is not present then the default name is 'xulrunner' -# for Mac OS X and 'xulrunner-stub' for all other platforms. +# If this configure argument is not present then the default name is +# 'xulrunner-stub'. PROGRAM = CONFIG['XULRUNNER_STUB_NAME'] SOURCES += [ diff --git a/xulrunner/stub/nsXULStub.cpp b/xulrunner/stub/nsXULStub.cpp index f4b182e95b55..b49697b1f752 100644 --- a/xulrunner/stub/nsXULStub.cpp +++ b/xulrunner/stub/nsXULStub.cpp @@ -350,7 +350,7 @@ main(int argc, char **argv) if (!greFound) { #ifdef XP_MACOSX - // Check for /Contents/Frameworks/XUL.framework/libxpcom.dylib + // Check for /Contents/Frameworks/XUL.framework/Versions/Current/libmozglue.dylib CFURLRef fwurl = CFBundleCopyPrivateFrameworksURL(appBundle); CFURLRef absfwurl = nullptr; if (fwurl) { @@ -361,13 +361,13 @@ main(int argc, char **argv) if (absfwurl) { CFURLRef xulurl = CFURLCreateCopyAppendingPathComponent(nullptr, absfwurl, - CFSTR("XUL.framework"), + CFSTR("XUL.framework/Versions/Current"), true); if (xulurl) { CFURLRef xpcomurl = CFURLCreateCopyAppendingPathComponent(nullptr, xulurl, - CFSTR("libxpcom.dylib"), + CFSTR("libmozglue.dylib"), false); if (xpcomurl) {