forked from mozilla/gecko-dev
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1861869 - Don't re-create the UA widget when entering PiP. r=mcon…
…ley,pip-reviewers,reusable-components-reviewers This is the actual fix. The issue is that, after the regressing bug, the video element will only dispatch resized* events when: * The frame is recreated. * The video actually resizes. And when going into PiP neither is happening, so we create a new impl, but never update the "reflowed" dimensions. Long term we should probably rewrite this to use ResizeObserver rather than special code, but this should be a good perf improvement, and fix the correctness issue, so seems worth doing. Depends on D203496 Differential Revision: https://phabricator.services.mozilla.com/D203497
- Loading branch information
Showing
1 changed file
with
15 additions
and
20 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