Bug 1355161 - script-generated patch to replace .{currentThread,mainThread}.dispatch(..., Ci.nsIThread.DISPATCH_NORMAL) with .dispatchToMainThread(...), r=froydnj.
This commit is contained in:
@@ -574,7 +574,7 @@ ContentPrefService.prototype = {
|
||||
|
||||
_scheduleCallback(func) {
|
||||
let tm = Cc["@mozilla.org/thread-manager;1"].getService(Ci.nsIThreadManager);
|
||||
tm.mainThread.dispatch(func, Ci.nsIThread.DISPATCH_NORMAL);
|
||||
tm.dispatchToMainThread(func);
|
||||
},
|
||||
|
||||
_selectPref: function ContentPrefService__selectPref(aGroup, aSetting, aCallback) {
|
||||
|
||||
Reference in New Issue
Block a user