Changes

Jump to: navigation, search

Thunderbird/Add-ons Guide 57

399 bytes added, 16:42, 6 January 2018
added "lazy" replacement for nsIFilePicker.show() and changed comment on beta 58.
* nsILocaleService and friends
* nsIScriptableDateFormat -- replacement: Intl.DateTimeFormat and mozIntl.DateTimeFormat
* nsIFilePicker.show() -- replacement: nsIFilePicker.open() (async), example: [https://hg.mozilla.org/comm-central/rev/d960dcde18c4#l6.12 Changeset where Thunderbird implemented that change]. There's also a "lazy" replacement:<pre>function PickerShow(fp) { let done = false; let rv, result; fp.open(result => { rv = result; done = true; }); let thread = Components.classes["@mozilla.org/thread-manager;1"] .getService().currentThread; while (!done) { thread.processNextEvent(true); } return rv;}</pre>
* nsIDownloadManager
* Promise.jsm -- replacement: PromiseUtils.jsm
* Date.prototype.toLocaleFormat
* {get,set}ComplexValue use of nsISupportsString -- replacement: {get,set}StringPref(), example: [https://hg.mozilla.org/comm-central/rev/3a0c2f6597ef#l1.12 Changeset where Thunderbird implemented that change]
* Mechanism to store add-on preferences in defaults/preferences/xx.js. '''Thunderbird 58 Beta not affected due to (beta 1+2: backout of this core change, beta 3 has fix from TB 59). A fix has landed on Daily 59 as of 2017-12-12, see {{bug|1414398}}.'''
== Changes to JS in mozilla58 ==
316
edits

Navigation menu