forked from Floorp-Projects/Floorp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1665225 - Remove unnecessary to-main-thread dispatch r=alwu
The SMTC-thumbnail-update task is dispatched to main-thread from the on-complete callback of the async image storing operation. However, the callback is actually on the main-thread itself so the thumbnail-update-task can be executed in that callback directly instead of being dispatched. The task should be finished slightly faster if the task dispatch is replaced by executing the task. Differential Revision: https://phabricator.services.mozilla.com/D90331
- Loading branch information
1 parent
1cfac8c
commit 7142b48
Showing
2 changed files
with
26 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters