mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-20 08:51:04 +00:00

When controller gets deactivated, we would have had reset the display metadata already, so we can remove the promise for `metadatachange`. The reason of causing failure is because `metadatachange` sometime would race with `deactivated`. If `metadatachange` gets dispatched after `deactivated`, we would miss that event. The actual fix for event race will be handled in bug 1688507, this patch is simply fixing the failure. Differential Revision: https://phabricator.services.mozilla.com/D102871