Package: iceweasel Version: 2.0.0.2+dfsg-2 Severity: important Tags: patch -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
When clicking on a link from another application or running "iceweasel debian.org", the link will open in a new window (despite being set to use existing windows). The link will be opened twice. Running sh -x iceweasel debian.org shows this happening: + exec /usr/lib/iceweasel/firefox-bin slashdot.org slashdot.org -a firefox I found that the section of the script responsible for handling local filesystem URLs is responsible. [EMAIL PROTECTED] Desktop $ diff firefox /usr/bin/firefox 231,251c231,251 < #if [ -z "${opt}" ]; then < # opt="${arg}" < # # check to make sure that the url contains at least a :/ in it. < # echo ${opt} | grep -e ':/' &>/dev/null < # RETURN_VAL=$? < # if [ "${RETURN_VAL}" -eq 1 ]; then < # # if it doesn't begin with a '/' and it exists when the pwd is < # # prepended to it then append the full path < # echo ${opt} | grep -e '^/' &>/dev/null < # if [ "$?" -ne "0" ] && [ -e "`pwd`/${opt}" ]; then < # opt="`pwd`/${opt}" < # fi < # # Make it percent-encoded and prepend file:// if it is a valid file < # if [ -e "${opt}" ]; then < # opt="file://$( echo -n "${opt}" | perl -pe "s/([^a-zA-Z0-9-._~\!\\\$&'()*+,=:@\/])/'%'.unpack('H2',\$1)/ge" )" < # fi < # fi < # set -- "$@" "${opt}" < #else < # set -- "$@" "${arg}" < #fi - --- > if [ -z "${opt}" ]; then > opt="${arg}" > # check to make sure that the url contains at > least a :/ in it. > echo ${opt} | grep -e ':/' 2>/dev/null > /dev/null > RETURN_VAL=$? > if [ "${RETURN_VAL}" -eq 1 ]; then > # if it doesn't begin with a '/' and it exists > when the pwd is > # prepended to it then append the full path > echo ${opt} | grep -e '^/' 2>/dev/null > > /dev/null > if [ "$?" -ne "0" ] && [ -e "`pwd`/${opt}" ]; > then > opt="`pwd`/${opt}" > fi > # Make it percent-encoded and prepend file:// > if it is a valid file > if [ -e "${opt}" ]; then > opt="file://$( echo -n "${opt}" | perl -pe > "s/([^a-zA-Z0-9-._~\!\\\$&'()*+,=:@\/])/'%'.unpack('H2',\$1)/ge" > )" > fi > fi > set -- "$@" "${opt}" > else > set -- "$@" "${arg}" > fi What is line 239 doing? Looks like nothing. echo ${opt} | grep -e '^/' 2>/dev/null > /dev/null - -- System Information: Debian Release: 4.0 APT prefers testing-proposed-updates APT policy: (500, 'testing-proposed-updates'), (500, 'proposed-updates'), (500, 'unstable'), (500, 'testing'), (500, 'stable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.19.1suspend Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1) Versions of packages iceweasel depends on: ii debianutils 2.17.5 Miscellaneous utilities specific t ii fontconfig 2.4.2-1.2 generic font configuration library ii libatk1.0-0 1.12.4-2 The ATK accessibility toolkit ii libc6 2.3.6.ds1-13 GNU C Library: Shared libraries ii libcairo2 1.2.4-4 The Cairo 2D vector graphics libra ii libfontconfig1 2.4.2-1.2 generic font configuration library ii libfreetype6 2.2.1-5 FreeType 2 font engine, shared lib ii libgcc1 1:4.1.1-21 GCC support library ii libglib2.0-0 2.12.6-2 The GLib library of C routines ii libgtk2.0-0 2.8.20-6 The GTK+ graphical user interface ii libjpeg62 6b-13 The Independent JPEG Group's JPEG ii libmyspell3c2 1:3.1-18 MySpell spellchecking library ii libpango1.0-0 1.14.8-5 Layout and rendering of internatio ii libpng12-0 1.2.15~beta5-1 PNG library - runtime ii libstdc++6 4.1.1-21 The GNU Standard C++ Library v3 ii libx11-6 2:1.0.3-5 X11 client-side library ii libxft2 2.1.8.2-8 FreeType-based font drawing librar ii libxinerama1 1:1.0.1-4.1 X11 Xinerama extension library ii libxp6 1:1.0.0.xsf1-1 X Printing Extension (Xprint) clie ii libxrender1 1:0.9.1-3 X Rendering Extension client libra ii libxt6 1:1.0.2-2 X11 toolkit intrinsics library ii psmisc 22.3-1 Utilities that use the proc filesy ii zlib1g 1:1.2.3-13 compression library - runtime iceweasel recommends no packages. - -- no debconf information -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFF62Hza9wihxtqwaURAra5AJ0UjhvH8ezXUjK3nQ9MhE1FS1lc0ACfUJ+x TGM6cuy5TahJP5HdZOkGL8Y= =N7RR -----END PGP SIGNATURE----- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]