Closed
Bug 289383
Opened 20 years ago
Closed 20 years ago
X-Remote doesn't differentiate between profiles anymore
Categories
(Core Graveyard :: X-remote, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: dbaron, Assigned: benjamin)
References
Details
Attachments
(1 file)
|
1.60 KB,
patch
|
dbaron
:
review+
jst
:
superreview+
caillon
:
approval1.8b2+
|
Details | Diff | Splinter Review |
This is a regression in the past few days, and it makes it much harder for me to
test my changes while using the trunk as my primary browser, so marking as blocker.
X-Remote no longer differentiates between profiles. It used to not use X-Remote
when the active window was running a different profile from the one requested.
Steps to reproduce:
1. Create two profiles, (say, "default" and "counters").
2. ./firefox -P default
3. ./firefox -P counters
Expected results:
2. browser window in default profile appears
3. browser window in counters profile appears
Actual results:
2. browser window in default profile appears
3. browser window in default profile appears
Comment 1•20 years ago
|
||
I'm surprised to see this bug filed as a regression. I thought this never
worked since the advent of the new toolkit profile stuff (back before firefox
1.0).... see bug 251244. I believe you... I'm just really confused ;-)
| Assignee | ||
Comment 2•20 years ago
|
||
Here's what's happening: previously, xremote would set the "profile" flag if -P
were present on the command line
http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/toolkit/xre/nsAppRunner.cpp&rev=1.77&cvsroot=/cvsroot&mark=888-892#878
However, this has two problems:
1) it's inconsistent: if you don't specify a profile and use the default, or if
you use the profile manager, we don't set the profile atom. This is a result of
the "profiles are a path, not a name" design choice. roc said he had a fix
floating around, but I probably bitrotted it pretty badly with this patch anyway.
2) If I were to add this code back, I can't use the "CheckArg" function, or I
would have to add additional params: if xremote fails, we now do a regular
launch; CheckArg removes params from the argument list, which means that
"SelectProfile" wouldn't see it later on.
I really meant to add a MOZ_NO_REMOTE env checker for the automatic xremoting,
just like we do for the win32 remoting. I can do that here.
| Reporter | ||
Comment 3•20 years ago
|
||
Ah, yeah, the script I use to start firefox always passes a -P <profilename> on
the commandline, so this has always worked for me. (The whole script is really
legacy from before this code existed, but it doesn't hurt anything, and
apparently helped with getting the profile atom right.)
| Assignee | ||
Comment 4•20 years ago
|
||
Attachment #179957 -
Flags: superreview?(jst)
Attachment #179957 -
Flags: review?(dbaron)
Comment 5•20 years ago
|
||
Comment on attachment 179957 [details] [diff] [review]
Add MOZ_NO_REMOTE check
sr=jst
Attachment #179957 -
Flags: superreview?(jst) → superreview+
| Reporter | ||
Comment 6•20 years ago
|
||
Comment on attachment 179957 [details] [diff] [review]
Add MOZ_NO_REMOTE check
r=dbaron, although I'm not sure why you're removing the help text
Attachment #179957 -
Flags: review?(dbaron) → review+
| Assignee | ||
Updated•20 years ago
|
Attachment #179957 -
Flags: approval1.8b2?
Updated•20 years ago
|
Attachment #179957 -
Flags: approval1.8b2? → approval1.8b2+
| Assignee | ||
Comment 7•20 years ago
|
||
Attachment 179957 [details] [diff] checked in on trunk. I'm going to mark this FIXED; there is
already a bug open about always passing a profile name to xremote even if the -P
flag is not used.
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
| Assignee | ||
Comment 8•20 years ago
|
||
*** Bug 300791 has been marked as a duplicate of this bug. ***
Comment 9•20 years ago
|
||
running dp a2:
firefox &
firefox -P second &
Warning: unrecognized command line flag -P
and am thus unable to simulataneously run two profiles.
Is this (still) part of this bug, or is there another one specific to this problem?
Comment 10•20 years ago
|
||
(ignore my comment #9 - setting MOZ_NO_REMOTE=1 fixes it)
| Assignee | ||
Comment 11•20 years ago
|
||
*** Bug 292237 has been marked as a duplicate of this bug. ***
| Assignee | ||
Comment 12•20 years ago
|
||
*** Bug 303138 has been marked as a duplicate of this bug. ***
Updated•6 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•