Bug 1355161 - script-generated patch to replace .{currentThread,mainThread}.dispatch(..., Ci.nsIThread.DISPATCH_NORMAL) with .dispatchToMainThread(...), r=froydnj.
This commit is contained in:
@@ -393,9 +393,9 @@ class TabTracker extends TabTrackerBase {
|
||||
// `tabs.onRemoved.addListener`, then the tab would be closed before the
|
||||
// event listener is registered. To make sure that the event listener is
|
||||
// notified, we dispatch `tabs.onRemoved` asynchronously.
|
||||
Services.tm.mainThread.dispatch(() => {
|
||||
Services.tm.dispatchToMainThread(() => {
|
||||
this.emit("tab-removed", {nativeTab, tabId, windowId, isWindowClosing});
|
||||
}, Ci.nsIThread.DISPATCH_NORMAL);
|
||||
});
|
||||
}
|
||||
|
||||
getBrowserData(browser) {
|
||||
|
||||
Reference in New Issue
Block a user