1 |
On Mon, 13 Nov 2006 10:02:25 +0100, Alexander Skwar |
2 |
<listen@×××××××××××××××.name> wrote: |
3 |
|
4 |
> The problem with that is, that openURL accepts two parameters and |
5 |
> they are seperated with a ,. So it sees two parameters: |
6 |
> http://www.spiegel.de/wirtschaft/0,1518,447923 and 00.html - 00.html |
7 |
> is not a valid parameter, though. It should be something like |
8 |
> new-window. |
9 |
|
10 |
Btw, that's Mozilla bug #298960: |
11 |
https://bugzilla.mozilla.org/show_bug.cgi?id=298960 |
12 |
|
13 |
> I now changed the /usr/bin/firefox script so, that it doesn't |
14 |
> use mozilla-launcher anymore. Up to now, I can't find any problems. |
15 |
|
16 |
The workaround i use here is to set MOZILLA_NEWTYPE=tab in my env, so |
17 |
that the wrapper script always adds a "new-tab" parameter. |
18 |
|
19 |
> Having had a closer "look" at this, I dislike this patch. Reason: |
20 |
> Up to now firefox eventually runs the openURL remote command. Users |
21 |
> might know this and might make use of this. So a user might call |
22 |
> "firefox http://gentoo.org/,new-tab" to have http://gentoo.org/ |
23 |
> opened in a new tab. |
24 |
|
25 |
Imho, that a hack works at some point doesn't mean it is a supported |
26 |
feature that devs should care about never breaking. |
27 |
|
28 |
Though, an other reason for not accepting this patch is that some |
29 |
websites may expect URL like this one, which relies on both encoded |
30 |
and raw commas: http://foo.bar/param-1,param-2%2Cwith%2Ccommas,param-3 |
31 |
Ok, it is not really likely, but i think it would be legal. |
32 |
|
33 |
A different approach to fix this issue would be to exploits the fact |
34 |
"openUrl(URL,anything)" (where "anything" is really anything, any |
35 |
unknown argument, even an empty one) will actually open the "URL" in |
36 |
either a tab or window depending on the user's prefs. Thus, the |
37 |
launcher script could add such a dummy argument when $MOZILLA_NEWTYPE |
38 |
is not set. But sure, it's a hack which may not work anymore in future |
39 |
Firefox versions (i've not even tested it on 2.0 btw, i'm still using |
40 |
1.5.something). |
41 |
|
42 |
-- |
43 |
TGL. |
44 |
-- |
45 |
gentoo-dev@g.o mailing list |