Bug
1861869 - Don't re-create the UA widget when entering PiP. r=mconley,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