mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
dd378b8d2c
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. |
||
---|---|---|
.. | ||
test | ||
CreateAppData.cpp | ||
EventTracer.cpp | ||
EventTracer.h | ||
glxtest.cpp | ||
MacApplicationDelegate.h | ||
MacApplicationDelegate.mm | ||
MacAutoreleasePool.h | ||
MacAutoreleasePool.mm | ||
MacLaunchHelper.h | ||
MacLaunchHelper.mm | ||
MacQuirks.h | ||
make-platformini.py | ||
Makefile.in | ||
moz.build | ||
MozMeegoAppService.h | ||
nsAndroidStartup.cpp | ||
nsAppRunner.cpp | ||
nsAppRunner.h | ||
nsCommandLineServiceMac.cpp | ||
nsCommandLineServiceMac.h | ||
nsConsoleWriter.cpp | ||
nsEmbedFunctions.cpp | ||
nsGDKErrorHandler.cpp | ||
nsGDKErrorHandler.h | ||
nsINativeAppSupport.idl | ||
nsIWinAppHelper.idl | ||
nsNativeAppSupportBase.cpp | ||
nsNativeAppSupportBase.h | ||
nsNativeAppSupportCocoa.mm | ||
nsNativeAppSupportDefault.cpp | ||
nsNativeAppSupportQt.cpp | ||
nsNativeAppSupportQt.h | ||
nsNativeAppSupportUnix.cpp | ||
nsNativeAppSupportWin.cpp | ||
nsNativeAppSupportWin.h | ||
nsQAppInstance.cpp | ||
nsQAppInstance.h | ||
nsSigHandlers.cpp | ||
nsSigHandlers.h | ||
nsUpdateDriver.cpp | ||
nsUpdateDriver.h | ||
nsWindowsRestart.cpp | ||
nsWindowsWMain.cpp | ||
nsX11ErrorHandler.cpp | ||
nsX11ErrorHandler.h | ||
nsXREDirProvider.cpp | ||
nsXREDirProvider.h | ||
ProfileReset.cpp | ||
ProfileReset.h | ||
WindowsCrtPatch.h |