Skip to content
This repository has been archived by the owner on Oct 17, 2020. It is now read-only.

Commit

Permalink
Fixes bug in recent Firefox version that caused setup to fail. Fixes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
luckyrat committed May 26, 2015
1 parent dc3d7ad commit 4456989
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 7 additions & 1 deletion Firefox addon/KeeFox/chrome/content/KFUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,13 @@ keefox_win.KFdownloadFile = function(source, URL, destinationFile, mainWindow, b
persist.persistFlags = persist.persistFlags | persist.PERSIST_FLAGS_CLEANUP_ON_FAILURE
| persist.PERSIST_FLAGS_REPLACE_EXISTING_FILES | persist.PERSIST_FLAGS_BYPASS_CACHE;

persist.saveURI(obj_URI, null, null, null, "", file, null);
// FF36 breaks backwards compatibility
let versionComparator = Cc["@mozilla.org/xpcom/version-comparator;1"].
getService(Ci.nsIVersionComparator);
if (versionComparator.compare(Application.version, "36.0a1") < 0)
persist.saveURI(obj_URI, null, null, null, "", file, null);
else
persist.saveURI(obj_URI, null, null, null, null, "", file, null);

return persist;
};
Expand Down
4 changes: 1 addition & 3 deletions Firefox addon/KeeFox/install.rdf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<Description about="urn:mozilla:install-manifest">
<em:id>[email protected]</em:id>
<em:version>1.4.7</em:version>
<em:version>1.4.8</em:version>
<em:type>2</em:type>
<em:unpack>true</em:unpack>

Expand Down Expand Up @@ -34,8 +34,6 @@

<em:targetPlatform>WINNT</em:targetPlatform>
<em:targetPlatform>Linux</em:targetPlatform>
<em:targetPlatform>Darwin</em:targetPlatform>
<em:targetPlatform>FreeBSD</em:targetPlatform>

<!-- Front End MetaData -->
<em:name>KeeFox</em:name>
Expand Down

0 comments on commit 4456989

Please sign in to comment.