зеркало из https://github.com/mozilla/gecko-dev.git
Bug 60156 - make sure the filepicker component gets registered correctly. r=disttsc@bart.nl, a=ben@netscape.com.
This commit is contained in:
Родитель
45ec3f1167
Коммит
55ae8fb03f
|
@ -55,11 +55,14 @@ const nsIDOMWindow = Components.interfaces.nsIDOMWindow;
|
|||
const nsILocaleService = Components.interfaces.nsILocaleService;
|
||||
const nsIStringBundleService = Components.interfaces.nsIStringBundleService;
|
||||
|
||||
const bundle = srGetStrBundle("chrome://global/locale/filepicker.properties");
|
||||
var bundle = null;
|
||||
var lastDirectory = null;
|
||||
|
||||
function nsFilePicker()
|
||||
{
|
||||
if (!bundle)
|
||||
bundle = srGetStrBundle("chrome://global/locale/filepicker.properties");
|
||||
|
||||
/* attributes */
|
||||
this.mDefaultString = "";
|
||||
if (lastDirectory) {
|
||||
|
|
|
@ -55,11 +55,14 @@ const nsIDOMWindow = Components.interfaces.nsIDOMWindow;
|
|||
const nsILocaleService = Components.interfaces.nsILocaleService;
|
||||
const nsIStringBundleService = Components.interfaces.nsIStringBundleService;
|
||||
|
||||
const bundle = srGetStrBundle("chrome://global/locale/filepicker.properties");
|
||||
var bundle = null;
|
||||
var lastDirectory = null;
|
||||
|
||||
function nsFilePicker()
|
||||
{
|
||||
if (!bundle)
|
||||
bundle = srGetStrBundle("chrome://global/locale/filepicker.properties");
|
||||
|
||||
/* attributes */
|
||||
this.mDefaultString = "";
|
||||
if (lastDirectory) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче