Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

Commit

Permalink
Bug 1091109: Don't sign webapprt-stub on OSX because webapps fail to …
Browse files Browse the repository at this point in the history
…launch due to quarantine bit. r=smichaud,myk
  • Loading branch information
Stephen Pohl committed Nov 3, 2014
1 parent 3f21e62 commit e03475e
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 9 deletions.
1 change: 0 additions & 1 deletion browser/app/macbuild/Contents/MacOS-files.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@
/gtest/***
/pk12util
/ssltunnel
/webapprt-stub
/xpcshell
/XUL
4 changes: 0 additions & 4 deletions browser/installer/package-manifest.in
Original file line number Diff line number Diff line change
Expand Up @@ -856,11 +856,7 @@ bin/libfreebl_32int64_3.so
#ifdef XP_WIN
@BINPATH@/webapp-uninstaller@BIN_SUFFIX@
#endif
#ifdef XP_MACOSX
@APPNAME@/Contents/MacOS/webapprt-stub@BIN_SUFFIX@
#else
@BINPATH@/webapprt-stub@BIN_SUFFIX@
#endif
@BINPATH@/webapprt/webapprt.ini
@BINPATH@/webapprt/chrome.manifest
@BINPATH@/webapprt/chrome/webapprt@JAREXT@
Expand Down
2 changes: 1 addition & 1 deletion testing/mochitest/mach_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def get_webapp_runtime_path(self):
appname = 'webapprt-stub' + mozinfo.info.get('bin_suffix', '')
if sys.platform.startswith('darwin'):
appname = os.path.join(self.distdir, self.substs['MOZ_MACBUNDLE_NAME'],
'Contents', 'MacOS', appname)
'Contents', 'Resources', appname)
else:
appname = os.path.join(self.distdir, 'bin', appname)
return appname
Expand Down
2 changes: 1 addition & 1 deletion testing/testsuite-targets.mk
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ endif
$(CHECK_TEST_ERROR)

ifeq ($(OS_ARCH),Darwin)
webapprt_stub_path = $(TARGET_DIST)/$(MOZ_MACBUNDLE_NAME)/Contents/MacOS/webapprt-stub$(BIN_SUFFIX)
webapprt_stub_path = $(TARGET_DIST)/$(MOZ_MACBUNDLE_NAME)/Contents/Resources/webapprt-stub$(BIN_SUFFIX)
endif
ifeq ($(OS_ARCH),WINNT)
webapprt_stub_path = $(TARGET_DIST)/bin/webapprt-stub$(BIN_SUFFIX)
Expand Down
3 changes: 2 additions & 1 deletion toolkit/webapps/MacNativeApp.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,8 @@ NativeApp.prototype = {

_copyPrebuiltFiles: function(aDir) {
let destDir = getFile(aDir, this.macOSDir);
let stub = getFile(this.runtimeFolder, "webapprt-stub");
let stub = getFile(OS.Path.join(OS.Path.dirname(this.runtimeFolder),
"Resources"), "webapprt-stub");
stub.copyTo(destDir, "webapprt");
},

Expand Down
2 changes: 1 addition & 1 deletion webapprt/mac/webapprt.mm
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@

//we know the firefox path, so copy the new webapprt here
NSString *newWebRTPath =
[NSString stringWithFormat: @"%@%s%s", firefoxPath, APP_MACOS_PATH,
[NSString stringWithFormat: @"%@%s%s", firefoxPath, APP_RESOURCES_PATH,
WEBAPPRT_EXECUTABLE];
NSLog(@"### Firefox webapprt path: %@", newWebRTPath);
if (![fileClerk fileExistsAtPath:newWebRTPath]) {
Expand Down

0 comments on commit e03475e

Please sign in to comment.