Bug 1355161 - script-generated patch to replace .{currentThread,mainThread}.dispatch(..., Ci.nsIThread.DISPATCH_NORMAL) with .dispatchToMainThread(...), r=froydnj.
This commit is contained in:
@@ -46,9 +46,9 @@ exports.executeSoon = function (fn) {
|
||||
} else {
|
||||
executor = fn;
|
||||
}
|
||||
Services.tm.mainThread.dispatch({
|
||||
Services.tm.dispatchToMainThread({
|
||||
run: exports.makeInfallible(executor)
|
||||
}, Ci.nsIThread.DISPATCH_NORMAL);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user