mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
dfa1b6443c
--HG-- extra : rebase_source : a2fc4fc7080afe15d2359ea454153f3faf8d4d4b
25 lines
823 B
JavaScript
25 lines
823 B
JavaScript
/* Any copyright is dedicated to the Public Domain.
|
|
http://creativecommons.org/publicdomain/zero/1.0/ */
|
|
|
|
// Shared functions for files testing Bug 593815
|
|
|
|
Components.utils.import("resource://gre/modules/XPCOMUtils.jsm");
|
|
|
|
const Cc = Components.classes;
|
|
const Ci = Components.interfaces;
|
|
|
|
function HelperAppDlg() { }
|
|
HelperAppDlg.prototype = {
|
|
QueryInterface: XPCOMUtils.generateQI([Ci.nsIHelperAppLauncherDialog]),
|
|
classID: Components.ID("49456eda-4dc4-4d1a-b8e8-0b94749bf99e"),
|
|
show: function (launcher, ctx, reason) {
|
|
launcher.MIMEInfo.preferredAction = Ci.nsIMIMEInfo.saveToDisk;
|
|
launcher.launchWithApplication(null, false);
|
|
},
|
|
|
|
promptForSaveToFile: function (launcher, ctx, defaultFile, suggestedExtension, forcePrompt) { }
|
|
}
|
|
|
|
|
|
const NSGetFactory = XPCOMUtils.generateNSGetFactory([HelperAppDlg]);
|