WICG / document-picture-in-picture

https://wicg.github.io/document-picture-in-picture/
Other
56 stars 9 forks source link

Not working in sidePanel webextension #88

Open JVariance opened 1 year ago

JVariance commented 1 year ago

I'm working on a webextension and tried documentPictureInPicture.requestWindow() from within a sidePanel. Unfortunately it doesn't work from there (onenter and window attributes are both null).

beaufortfrancois commented 1 year ago

@steimelchrome Is this expected that the API doesn't work from extension pages?

steimelchrome commented 1 year ago

Yes we don't currently allow the API to work from extension pages in Chrome. I don't know that it's technically infeasible to eventually support but since IIUC those are not attached to a WebContents then most of the code just doesn't work as is

hanguokai commented 1 year ago

For extension pages, my test results are: