Bug 1355161 - script-generated patch to replace .{currentThread,mainThread}.dispatch(..., Ci.nsIThread.DISPATCH_NORMAL) with .dispatchToMainThread(...), r=froydnj.
This commit is contained in:
@@ -697,7 +697,7 @@ function do_execute_soon(callback, aName) {
|
||||
var tm = Components.classes["@mozilla.org/thread-manager;1"]
|
||||
.getService(Components.interfaces.nsIThreadManager);
|
||||
|
||||
tm.mainThread.dispatch({
|
||||
tm.dispatchToMainThread({
|
||||
run: function() {
|
||||
try {
|
||||
callback();
|
||||
@@ -722,7 +722,7 @@ function do_execute_soon(callback, aName) {
|
||||
do_test_finished(funcName);
|
||||
}
|
||||
}
|
||||
}, Components.interfaces.nsIThread.DISPATCH_NORMAL);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user