[meego-commits] 5636: Changes to Trunk/fennec
Anas Nashif
nashif at linux.intel.com
Tue Jul 13 19:57:56 UTC 2010
Hi,
I have made the following changes to fennec in project Trunk. Please review and accept ASAP.
Thank You,
Anas Nashif
[This message was auto-generated]
---
Request #5636:
submit: Trunk:Testing/fennec(r24) -> Trunk/fennec
Message:
* Fri Jul 9 14:32:34 CST 2010 Roger WANG <roger.wang at intel.com> 1.1b_0709
- implement opening file in download manager (BMC#3733)
State: new 2010-07-13T07:52:50 nashif
Comment: None
changes files:
--------------
--- fennec.changes
+++ fennec.changes
@@ -0,0 +1,3 @@
+* Fri Jul 9 14:32:34 CST 2010 Roger WANG <roger.wang at intel.com> 1.1b_0709
+- implement opening file in download manager (BMC#3733)
+
new:
----
download_dlg_open.patch
spec files:
-----------
--- fennec.spec
+++ fennec.spec
@@ -1,6 +1,6 @@
Name: fennec
-Version: 1.1b1_0609
-Release: 1%{?dist}
+Version: 1.1b1_0709
+Release: 1
Summary: Fennec Mobile Web Browser
Group: Applications/Internet
@@ -35,6 +35,7 @@
Patch1: meego-central.patch
Patch2: meego-mobile.patch
+Patch3: download_dlg_open.patch
Requires: %{name} >= %{version}
@@ -47,6 +48,7 @@
cp %{SOURCE1} .mozconfig
%patch1 -p1
%patch2 -p1 -d mobile
+%patch3 -p1 -d mobile
%build
echo "mk_add_options MOZ_MAKE_FLAGS=%{?_smp_mflags}" >> .mozconfig
other changes:
--------------
++++++ download_dlg_open.patch (new)
--- download_dlg_open.patch
+++ download_dlg_open.patch
+diff --git a/chrome/content/downloads.js b/chrome/content/downloads.js
+--- a/chrome/content/downloads.js
++++ b/chrome/content/downloads.js
+@@ -361,12 +361,25 @@
+ },
+
+ openDownload: function dv_openDownload(aItem) {
+- let f = this._getLocalFile(aItem.getAttribute("file"));
+- try {
+- f.launch();
+- } catch (ex) { }
+
+- // TODO: add back the code for "dontAsk"?
++ let f = aItem.getAttribute("file");
++
++ var exe = Components.classes["@mozilla.org/file/local;1"]
++ .createInstance(Components.interfaces.nsILocalFile);
++ exe.initWithPath("/usr/bin/xdg-open");
++
++ // create an nsIProcess
++ var process = Components.classes["@mozilla.org/process/util;1"]
++ .createInstance(Components.interfaces.nsIProcess);
++ process.init(exe);
++
++ // Run the process.
++ // If first param is true, calling thread will be blocked until
++ // called process terminates.
++
++ var args = [f];
++ process.run(false, args, args.length);
++
+ },
+
+ removeDownload: function dv_removeDownload(aItem) {
More information about the MeeGo-commits
mailing list