Bug 1355161 - script-generated patch to replace .{currentThread,mainThread}.dispatch(..., Ci.nsIThread.DISPATCH_NORMAL) with .dispatchToMainThread(...), r=froydnj.
This commit is contained in:
@@ -201,7 +201,7 @@ nsFilePicker.prototype = {
|
||||
open(aFilePickerShownCallback) {
|
||||
var tm = Components.classes["@mozilla.org/thread-manager;1"]
|
||||
.getService(Components.interfaces.nsIThreadManager);
|
||||
tm.mainThread.dispatch(() => {
|
||||
tm.dispatchToMainThread(() => {
|
||||
let result = Components.interfaces.nsIFilePicker.returnCancel;
|
||||
try {
|
||||
result = this.show();
|
||||
@@ -248,7 +248,7 @@ nsFilePicker.prototype = {
|
||||
aFilePickerShownCallback.done(result);
|
||||
}
|
||||
});
|
||||
}, Components.interfaces.nsIThread.DISPATCH_NORMAL);
|
||||
});
|
||||
},
|
||||
|
||||
show() {
|
||||
|
||||
Reference in New Issue
Block a user