document-picture-in-picture icon indicating copy to clipboard operation
document-picture-in-picture copied to clipboard

[BUG] When launched from PWA, PiP window dimension and position changes every time

Open GoodluckH opened this issue 8 months ago • 7 comments

It all worked well before some of the recent Chrome updates. Now it behaves soooo weird on PWA mode.

  1. 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)
  2. 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

  1. Go to https://developer.chrome.com/docs/web-platform/document-picture-in-picture
  2. Install that page as PWA
  3. Open it as a PWA
  4. Click on "demo" (screenshot)
  5. Try to launch the PiP then close, then launch again. Repeat this multiple times
Image

https://github.com/user-attachments/assets/f96f54ba-9f08-41d0-9516-67f412289668

GoodluckH avatar Mar 19 '25 18:03 GoodluckH

Btw my Chrome is Version 134.0.6998.89 (Official Build) (arm64)

GoodluckH avatar Mar 19 '25 18:03 GoodluckH

Thanks for raising this. Do you happen to know a recent Chrome version that was working?

steimelchrome avatar Mar 19 '25 21:03 steimelchrome

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?

steimelchrome avatar Mar 19 '25 21:03 steimelchrome

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.

GoodluckH avatar Mar 20 '25 02:03 GoodluckH

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/

adamchaboryk avatar Apr 07 '25 19:04 adamchaboryk

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.

IgnaceMaes avatar May 03 '25 15:05 IgnaceMaes

Can confirm, it's also working as expected on Mac OS with Chrome 136.0.7103.49 (Official Build) (arm64)

adamchaboryk avatar May 07 '25 20:05 adamchaboryk