gecko/toolkit/xre
Mike Hommey dd378b8d2c Bug 486172 - Don't ignore a -p command line argument when using the Xremote protocol. r=bsmedberg
On X11, when running firefox -p foo http://mozilla.org, and a window for another
profile is already open, the -p argument is ignored and a new tab or window is
opened in the unrelated session.

Previously, the equivalent firefox -p foo -remote openurl(http://mozilla.org)
would see that there is no window for the profile foo, complain about it, and
abort. If a window for the profile foo was open, however, a new tab or windows
would open in that session.

Here, we modify the behaviour such that firefox -p foo http://mozilla.org never
ignores the -p argument, and does the sensible thing depending on the context:
- if a window is already open for the profile, use that session.
- otherwise, open a new window for that profile.

When no -p argument is given, the behaviour is unchanged.

As RemoteCommandLine, which first attempts to open a connection with an existing
firefox, falls through when there is no existing firefox, the -p argument must be
kept in the command line. It turns out CheckArg didn't handle the case properly,
so fix this as well.

The changes in RemoteCommandLine otherwise match what used to be in
HandleRemoteArgument before bug 1080319.
2015-03-10 10:01:54 +09:00
..
test
CreateAppData.cpp
EventTracer.cpp Bug 1127201 (attempt 2, part 1) - Replace most NS_ABORT_IF_FALSE calls with MOZ_ASSERT. r=Waldo. 2015-02-09 14:34:50 -08:00
EventTracer.h
glxtest.cpp Bug 1124862 Fix glxtest.cpp fail-on-warning errors for ignored return values. r=bjacob 2015-01-25 16:50:13 -05:00
MacApplicationDelegate.h
MacApplicationDelegate.mm
MacAutoreleasePool.h
MacAutoreleasePool.mm
MacLaunchHelper.h
MacLaunchHelper.mm
MacQuirks.h
make-platformini.py
Makefile.in Bug 1057600 - Don't require MOZILLA_OFFICIAL to include build revisions in build. Add MOZ_INCLUDE_SOURCE_INFO variable as an alternate way to include build revisions without setting MOZILLA_OFFICIAL. r=glandium 2015-02-17 22:10:03 -05:00
moz.build Bug 1068190 - Part 1: Add foundation for compositor unit tests. r=mstange 2015-01-14 17:24:09 -05:00
MozMeegoAppService.h
nsAndroidStartup.cpp
nsAppRunner.cpp Bug 486172 - Don't ignore a -p command line argument when using the Xremote protocol. r=bsmedberg 2015-03-10 10:01:54 +09:00
nsAppRunner.h Bug 1068190 - Part 1: Add foundation for compositor unit tests. r=mstange 2015-01-14 17:24:09 -05:00
nsCommandLineServiceMac.cpp
nsCommandLineServiceMac.h
nsConsoleWriter.cpp
nsEmbedFunctions.cpp Bug 1132663 - Part 1: Use the DLL blocklist in plugin-container processes. r=bsmedberg 2015-02-18 14:09:32 +13:00
nsGDKErrorHandler.cpp
nsGDKErrorHandler.h
nsINativeAppSupport.idl
nsIWinAppHelper.idl
nsNativeAppSupportBase.cpp
nsNativeAppSupportBase.h
nsNativeAppSupportCocoa.mm
nsNativeAppSupportDefault.cpp
nsNativeAppSupportQt.cpp
nsNativeAppSupportQt.h
nsNativeAppSupportUnix.cpp Bug 1138295 - Don't define unused types and static variable when building with Gtk+3. r=karlt 2015-03-04 14:39:37 +09:00
nsNativeAppSupportWin.cpp
nsNativeAppSupportWin.h
nsQAppInstance.cpp
nsQAppInstance.h
nsSigHandlers.cpp
nsSigHandlers.h
nsUpdateDriver.cpp Bug 1137901 - Remove param from refreshUpdateStatus. r=spohl 2015-03-02 11:09:13 -08:00
nsUpdateDriver.h Bug 1044443 - release off main thread crash in nsXPCWrappedJS::Release() via nsUpdateProcessor::~nsUpdateProcessor(). r=bbondy 2015-02-18 16:05:00 -08:00
nsWindowsRestart.cpp
nsWindowsWMain.cpp
nsX11ErrorHandler.cpp
nsX11ErrorHandler.h
nsXREDirProvider.cpp
nsXREDirProvider.h
ProfileReset.cpp Bug 1127201 (attempt 2, part 1) - Replace most NS_ABORT_IF_FALSE calls with MOZ_ASSERT. r=Waldo. 2015-02-09 14:34:50 -08:00
ProfileReset.h
WindowsCrtPatch.h Bug 1138070 - Don't use GetModuleHandleA on RtlImageNtHeader. r=dmajor 2015-03-04 11:09:04 +13:00