Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 75064 - mozilla-launcher doesn't load absolute file url in a new tab
Summary: mozilla-launcher doesn't load absolute file url in a new tab
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Aron Griffis (RETIRED)
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2004-12-20 08:21 UTC by Fabio Rossi
Modified: 2005-03-16 05:35 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
mozilla-launcher.patch (mozilla-launcher.patch,586 bytes, patch)
2005-01-18 15:05 UTC, Fabio Rossi
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Fabio Rossi 2004-12-20 08:21:09 UTC
I have installed firefox and set the variable MOZILLA_NEWTYPE=tab for mozilla-launcher. If I try to load a HTML file, giving its absolute path on the command line, nothing happens. Setting MOZILLA_NEWTYPE=window instead, the file is correctly loaded.

Reproducible: Always
Steps to Reproduce:
1. Set MOZILLA_NEWTYPE=tab
2. Load a file giving its absolute path on the command line
3.

Actual Results:  
Nothing

Expected Results:  
Load the file
Comment 1 Fabio Rossi 2005-01-08 08:58:03 UTC
--- /usr/libexec/mozilla-launcher       2005-01-08 17:52:00.000000000 +0100
+++ /usr/libexec/mozilla-launcher.new   2005-01-08 17:53:19.558005008 +0100
I have used this patch and now it works correctly:

@@ -228,6 +228,9 @@
       elif [[ $1 != *://* && $1 != /* && -e $1 ]]; then
         # relative path to a file, transform to absolute path
         urls=("${urls[@]}" "file://$PWD/$1")
+      elif [[ $1 != *://* && $1 == /* && -e $1 ]]; then
+        # absolute path to a file
+        urls=("${urls[@]}" "file://$1")
       elif [[ $1 != *:* && $1 == *@* ]]; then
         # looks like an email address, prefix with mailto: so we can
         # recognize it later.
Comment 2 Fabio Rossi 2005-01-18 15:05:23 UTC
Created attachment 48896 [details, diff]
mozilla-launcher.patch
Comment 3 Aron Griffis (RETIRED) gentoo-dev 2005-03-15 06:17:15 UTC
Thanks!  Committed to cvs, will be available in the next mozilla-launcher release
Comment 4 Aron Griffis (RETIRED) gentoo-dev 2005-03-16 05:35:52 UTC
Fixed in mozilla-launcher-1.26