Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 104701

Summary: [Browser] Web Browser preferences ignore browser parameters
Product: [Eclipse Project] Platform Reporter: Louis-Dominique Dubeau <ldd>
Component: User AssistanceAssignee: Tim deBoer <deboer>
Status: RESOLVED DUPLICATE QA Contact:
Severity: minor    
Priority: P3 CC: billy.biggs, cgold
Version: 3.1   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Louis-Dominique Dubeau CLA 2005-07-21 14:06:07 EDT
Version: 3.1.0
Build id: I20050627-1435

You man want to read all the steps before starting so that you may plan
something good for step 1.

1. Create a new browser profile without any specific parameters and make sure
that this is the profile used by eclipse to start a new browser.  (See bug
99634.  In fact, at step 1 I am in the same state as the one obtained after
following the set of steps in bug 99634, comment 3.)

2. Open Window->Preferences->General->Web Browsers and select your web browser
profile currently in use.  Put in some parameters that should provoke some
change of behavior.  For instance, I enter: 

-remote openURL(%URL%,new-tab)

(I've also tried with simple and double quotes before openURL and after the
closing paren.)

3. Click Ok twice to close the dialog to edit the browser profile and the
preferences dialog.

4. Select Navigate->Open External Javadoc.

5. See how your browser has not changed its behavior.  In my case, I would
expect an already running firefox to use a new tab to display the javadoc
instead of simply loading the javadoc in the active tab (pushing out whatever
was there before).

It may help to create a profile that starts a script in step 1 rather than call
a browser directly.  I have a script that starts firefox, which goes as follow:

---
#!/bin/bash
export XMODIFIER=@im=htt
export GTK_IM_MODULE=iiim

echo "$@" > /tmp/blah

exec ~/src/firefox-installer/firefox "$@"
---

The echo line was temporarily added today to check what parameters are passed to
the script.  Lo and behold, what I find in /tmp/blah, no matter how I set the
parameter supposedly passed to firefox is equivalent to:

-remote openURL(%URL%)

Whereas I would expect:

-remote openURL(%URL%,new-tab)

(Where %URL% is the actual file:/.../whatever URL passed to the browser.)

It appears the whatever is put in the Parameters field is ignored and that some
internal default is used instead.

This can be worked around by preventively creating a new tab before trying to
display the javadoc or by writing a specialized script that will rewrite
parameters before starting firefox.
Comment 1 Louis-Dominique Dubeau CLA 2005-07-21 16:06:36 EDT
I should mention (in case someone thinks that this is just a different
manifestation of bug 99634) that exiting Eclipse and restarting it does not make
the bug go away.
Comment 2 Boris Bokowski CLA 2009-02-10 10:54:08 EST
Mass update - these bugs belong to the UA component.
Comment 3 Chris Goldthorpe CLA 2009-04-08 22:58:11 EDT

*** This bug has been marked as a duplicate of bug 238452 ***