Open Bug 235678 Opened 20 years ago Updated 2 years ago

firefox -remote 'openURL(url)' does not raise window

Categories

(Firefox :: General, defect)

x86
Linux
defect

Tracking

()

People

(Reporter: repp, Unassigned)

Details

User-Agent:       
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; de-DE; rv:1.6) Gecko/20040207 Firefox/0.8

firefox -remote 'openURL(http://www.mozilla.org/)' 
causes the same behaviour as:
firefox -remote 'openURL(http://www.mozilla.org/,noraise)'

raise works properly with new-tab and new-window option for openURL.

Reproducible: Always
Steps to Reproduce:
1.iconify firefox
2.firefox -remote 'openURL(http://www.mozilla.org/)' 


Actual Results:  
firefox window is not raised

Expected Results:  
Window should be raised. When using firefox as browser for a manual 
new-tab or new-window are inexpedient.
Summary: firefox -remote 'openURL(url)' does not raise window → firefox -remote 'openURL(url)' does not raise window
I get

nilson@katheryn mozilla $ /usr/lib/firefox/firefox -remote
'openURL(http://mozilla.org/)'
Error: No running window found

even though there most certainly is one.

Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040613 Firefox/0.8.0+
Gentoo current with 2.6.6 kernel.
Yeah, I just noticed this today when I installed Firefox .9.  Looks like the
-remote function is broken in .9 or something.  I went back to .8.  Submit a bug
report for this, if it hasn't been submitted already.

(In reply to comment #1)
> I get
> 
> nilson@katheryn mozilla $ /usr/lib/firefox/firefox -remote
> 'openURL(http://mozilla.org/)'
> Error: No running window found
> 
> even though there most certainly is one.
> 
> Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040613 Firefox/0.8.0+
> Gentoo current with 2.6.6 kernel.
neil@verizon:~$ /usr/local/bin/firefox09/firefox/firefox -remote
"openURL(http://www.google.com)"
Error: No running window found


Confirming. Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040615
Firefox/0.9 slackware-current.
Status: UNCONFIRMED → NEW
Ever confirmed: true
the '-remote openurl()' and '-remote xfeDoCommand(openBrowser)' functions in
Firefox 0.9 does not appear to be working at all. The error returned is: Error:
No running window found

The offshoot is that it is impossible to set Firefox as the default system
browser. For this reason I propose to raise the priority of the problem
Yes, I get the same problem.  Is there any way to fix it?
(In reply to comment #1)
> I get
> 
> nilson@katheryn mozilla $ /usr/lib/firefox/firefox -remote
> 'openURL(http://mozilla.org/)'
> Error: No running window found

You need to use "/usr/lib/firefox/firefox -a firefox -remote
'openURL(http://mozilla.org/)'" now. Notice the "-a firefox" switch.

I can confirm that the window is not raised and it's really annoying.
Please raise the priority of this issue. It makes firefox unusable for automated
work. I have also some requests from people to add support for firefox in
Netbeans, but if bugs like this one are not fixed, I can't do it.
FWIW, in my experience, the full Mozilla browser also does not usually raise,
either.

Personally, I don't find this to be a problem, but having to use an additional
"-a firefox" switch does throw a monkey wrench into a great many things.
I'm the exact opposite here...using an additional -a firefox is no trouble for
me, but it's annoying when you click on the icon again and a window appears
underneath the others.

(In reply to comment #8)
> FWIW, in my experience, the full Mozilla browser also does not usually raise,
> either.
> 
> Personally, I don't find this to be a problem, but having to use an additional
> "-a firefox" switch does throw a monkey wrench into a great many things.
(In reply to comment #1)
> I get
> 
> nilson@katheryn mozilla $ /usr/lib/firefox/firefox -remote
> 'openURL(http://mozilla.org/)'
> Error: No running window found
> 
> even though there most certainly is one.
> 
> Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040613 Firefox/0.8.0+
> Gentoo current with 2.6.6 kernel.

I believe this is the result of an error (bug) in the firefox script.  In
attempting to determine the location of the run_mozilla.sh script, if it is not
found in the first (or second?) case statement (lines ~85 - ~120 on my linux
box), the run_moz variable is not set and therefore fails the ping in
check_running() function.  I have a patch if someone can tell me where to send
it.  This same error also causes the profile locking issue when firefox is
already running (similar error in the thunderbird startup script by the way).

I have posted the patch to 
http://linuxfromscratch.org/pipermail/blfs-support/2005-August/055826.html

Let me know if you have any questions.
./ks
Assignee: bross2 → nobody
QA Contact: general
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.