gecko-dev/toolkit/xre
Mike Hommey 68b1796240 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 Bug 1120312 - Fix -Wunused-variable warning in toolkit/xre and mark directory as FAIL_ON_WARNINGS. r=tlee 2015-01-07 19:35:19 -08:00
CreateAppData.cpp Bug 1024110 - Change Aurora's default profile behavior to use channel-specific profiles. r=bsmedberg f=gavin,markh 2014-09-23 21:49:03 +03:00
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 Bug 1117635 - Declare that MacApplicationDelegate implements the NSApplicationDelegate protocol. r=mstange 2015-01-07 18:33:32 -08:00
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 Bug 1116589 - Use templated JNI classes in generated bindings; r=snorp 2015-01-09 19:33:57 -05:00
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 Bug 1100530 - Clean up OS X version constants. f=jgilbert, r=mstange 2014-11-28 17:28:59 -05:00
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 Bug 1091608 - Attach the console if the process is running the GTest. r=ted 2014-11-03 22:22:39 +09:00
nsNativeAppSupportWin.h
nsQAppInstance.cpp
nsQAppInstance.h
nsSigHandlers.cpp Bug 1090598: Once we have hit the ah_crap_handler, allow any process (such as gdb) to ptrace us. r=froydnj 2014-10-28 18:27:53 -07:00
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 Bug 1102815 - mingw builds assert in WindowsCrtPatch.h. r=glandium 2014-11-25 12:43:05 +01:00
nsX11ErrorHandler.cpp
nsX11ErrorHandler.h
nsXREDirProvider.cpp Bug 1116560 - Spell shutdown-persist properly in nsXREDirProvider::DoShutdown to make it greppable; r=bsmedberg 2015-01-02 17:53:56 -05:00
nsXREDirProvider.h Bug 1119258 - Mark virtual overridden functions as MOZ_OVERRIDE in toolkit; r=Mossop 2015-01-08 23:12:19 -05:00
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