[proposal] Same-document same-context windows, declaratively via HTML <window> element

Two similar use cases

  1. List HTML <video> element (Web Media Player application within browser source code) as an Application (window) when getDisplayMedia() is executed https://bugzilla.mozilla.org/show_bug.cgi?id=1574662, https://bugs.chromium.org/p/chromium/issues/detail?id=994953;
  2. Picture-In-Picture window is listed as an Application at getDisplayMedia() though the specification recommends to set maximum pixel dimensions to screen.width/2, where the width and height can be extended to remove limit on the width and height of PictureInPictureWindow https://github.com/w3c/picture-in-picture/issues/163

The concept of Picture-In-Picture window could potentially be utilized for this proposal.

Re the linked SO questions and example code at [proposal] Same-document same-context windows, declaratively via HTML <window> element see