document-picture-in-picture
document-picture-in-picture copied to clipboard
[BUG] When launched from PWA, PiP window dimension and position changes every time
It all worked well before some of the recent Chrome updates. Now it behaves soooo weird on PWA mode.
- Every time I launch the PiP, it positions to the top left corner of my computer, and the height gets increased every time I launch. And If you launch it multiple times, it will eventually become a portrait mode dimension (see video)
- If you move the PiP window to another place, the next time you launch it, it will reset to top left corner with huge width and height
Reproduce
- Go to https://developer.chrome.com/docs/web-platform/document-picture-in-picture
- Install that page as PWA
- Open it as a PWA
- Click on "demo" (screenshot)
- Try to launch the PiP then close, then launch again. Repeat this multiple times
https://github.com/user-attachments/assets/f96f54ba-9f08-41d0-9516-67f412289668
Btw my Chrome is Version 134.0.6998.89 (Official Build) (arm64)
Thanks for raising this. Do you happen to know a recent Chrome version that was working?
On Mac, I was able to repro on Chrome stable (134.0.6998.89), but not on Chrome Canary (136.0.7077.0). It's possible that it was somehow fixed between those versions. Could you check to see if this repros for you on canary?
Not on canary but on a prev version: Version 133.0.6943.127 (Official Build) (arm64), I cannot reproduce the bug. So something in 134 broke things. I hope They can fix it quick since it's impacting our production users.
I can confirm the same bug with my new contrast checking app that uses Document PiP.
Version 135.0.7049.42 (Official Build) (arm64)
Can be reproduced via same steps above.
https://contrast.report/
Was seeing this issue in Chrome 135.0.7049.96. After upgrading to Version 136.0.7103.49 (Official Build) (arm64) it works as expected.
Can confirm, it's also working as expected on Mac OS with Chrome 136.0.7103.49 (Official Build) (arm64)