Bug 1355161 - script-generated patch to replace .{currentThread,mainThread}.dispatch(..., Ci.nsIThread.DISPATCH_NORMAL) with .dispatchToMainThread(...), r=froydnj.
This commit is contained in:
@@ -13,8 +13,7 @@ function startup(data, reasonCode) {
|
||||
gStarted = true;
|
||||
|
||||
// delay realstartup to trigger the race condition
|
||||
Cc["@mozilla.org/thread-manager;1"].getService(Ci.nsIThreadManager)
|
||||
.mainThread.dispatch(realstartup, 0);
|
||||
Cc["@mozilla.org/thread-manager;1"].getService(Ci.nsIThreadManager).dispatchToMainThread(realstartup);
|
||||
}
|
||||
|
||||
function realstartup() {
|
||||
|
||||
Reference in New Issue
Block a user