From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ryo ONODERA Newsgroups: gmane.emacs.bugs Subject: bug#19921: Support URL open for upcomming Mozilla Firefox 36 Date: Sun, 22 Feb 2015 17:01:13 +0900 (JST) Message-ID: <20150222.170113.1017436961048435194.ryo_on@yk.rim.or.jp> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1424594668 29338 80.91.229.3 (22 Feb 2015 08:44:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 22 Feb 2015 08:44:28 +0000 (UTC) To: 19921@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Feb 22 09:44:16 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YPS9A-0005xP-75 for geb-bug-gnu-emacs@m.gmane.org; Sun, 22 Feb 2015 09:44:16 +0100 Original-Received: from localhost ([::1]:39467 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YPS99-0005cV-Da for geb-bug-gnu-emacs@m.gmane.org; Sun, 22 Feb 2015 03:44:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37208) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YPS95-0005Zx-8g for bug-gnu-emacs@gnu.org; Sun, 22 Feb 2015 03:44:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YPS8y-0007Up-C9 for bug-gnu-emacs@gnu.org; Sun, 22 Feb 2015 03:44:11 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59255) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YPS8y-0007Uj-8e for bug-gnu-emacs@gnu.org; Sun, 22 Feb 2015 03:44:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YPS8y-00039s-05 for bug-gnu-emacs@gnu.org; Sun, 22 Feb 2015 03:44:04 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ryo ONODERA Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 22 Feb 2015 08:44:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 19921 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.142459464212130 (code B ref -1); Sun, 22 Feb 2015 08:44:03 +0000 Original-Received: (at submit) by debbugs.gnu.org; 22 Feb 2015 08:44:02 +0000 Original-Received: from localhost ([127.0.0.1]:50493 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YPS8v-00039Q-LG for submit@debbugs.gnu.org; Sun, 22 Feb 2015 03:44:02 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:58408) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YPRTo-000274-DY for submit@debbugs.gnu.org; Sun, 22 Feb 2015 03:01:33 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YPRTn-0003Gm-85 for submit@debbugs.gnu.org; Sun, 22 Feb 2015 03:01:32 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:60075) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YPRTn-0003Gi-5E for submit@debbugs.gnu.org; Sun, 22 Feb 2015 03:01:31 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60130) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YPRTm-0004dr-2b for bug-gnu-emacs@gnu.org; Sun, 22 Feb 2015 03:01:31 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YPRTi-00039f-Pi for bug-gnu-emacs@gnu.org; Sun, 22 Feb 2015 03:01:30 -0500 Original-Received: from mail117.siriuscloud.jp ([219.118.72.117]:45724 helo=mail07.SiriusCloud.jp) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YPRTi-000316-Gn for bug-gnu-emacs@gnu.org; Sun, 22 Feb 2015 03:01:26 -0500 Original-Received: from localhost (p8222-ipngn201funabasi.chiba.ocn.ne.jp [114.158.215.222]) (Authenticated sender: ryo_on@yk.rim.or.jp) by access07.SiriusCloud.jp (Postfix) with ESMTPA id 0139D400E86DA; Sun, 22 Feb 2015 17:01:21 +0900 (JST) Authentication-Results: access07.SiriusCloud.jp; dkim=none (no signature) header.i=unknown; x-dkim-adsp=none (insecure policy) X-Mailer: Mew version 6.6 on Emacs 24.4 / Mule 6.0 (HANACHIRUSATO) X-Virus-Scanned: clamav-milter 0.97.8 at si-mail07 X-Virus-Status: Clean X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Mailman-Approved-At: Sun, 22 Feb 2015 03:44:00 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:99694 Archived-At: Hi, Firefox 36 or later has no "-remote" command line option anymore. browse-url-firefox of Emacs uses this "-remote" option to open URL as new window or new tab. We should use "--new-tab URLString" or "--new-window URLString" instead. See https://developer.mozilla.org/en-US/docs/Mozilla/Command_Line_Options#-remote_remote_command > This feature has been removed in Firefox 36. Following patch uses --new-tab or --new-window command line option. This works with Mozilla Firefox 36.0 build 10. diff --git a/lisp/net/browse-url.el b/lisp/net/browse-url.el index 42fb954..6ad14a2 100644 --- a/lisp/net/browse-url.el +++ b/lisp/net/browse-url.el @@ -1137,15 +1137,12 @@ URL in a new window." (append browse-url-firefox-arguments (if use-remote - (list "-remote" - (concat - "openURL(" - url - (if (browse-url-maybe-new-window new-window) - (if browse-url-firefox-new-window-is-tab - ",new-tab" - ",new-window")) - ")")) + (list + (if (browse-url-maybe-new-window new-window) + (if browse-url-firefox-new-window-is-tab + "--new-tab" + "--new-window")) + url) (list url)))))) ;; If we use -remote, the process exits with status code 2 if ;; Firefox is not already running. The sentinel runs firefox -- Ryo ONODERA // ryo_on@yk.rim.or.jp PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB FD1B F404 27FA C7D1 15F3