Repository navigation
Pop the preview browser out into its own window (multi-monitor) #31971
brunodubcosta
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Problem
On desktop, "Open separate preview window" opens a view-only picture-in-picture window. It shows screenshots of the tab at about 12 fps, and you can't click or type in it. If you work across several monitors, there's no way to put a browser you can actually use on another screen while the chat stays on the main one.
Proposal
Add Pop out to window for a browser tab. It opens a second app window that renders only that tab's toolbar and a working webview. The panel in the main window shows a placeholder with Bring back. Closing the pop-out window also brings the tab back.
Known tradeoffs
<webview>'s guest can't be moved to another window. Logins are kept, but scroll position and form input are not. A move without a reload would need switching toWebContentsView, which is a much bigger change.Implementation sketch
I have a working prototype on desktop:
BrowserWindowthat loads a smalldata:page containing one<webview>. It uses the same partition and the same hardening as the main window's webviews, which now come from one shared helper.PreviewManager.registerWebviewalso accepts guests hosted by these windows. The pop-out's guest is registered under the same tabId and replaces the main window's guest.DesktopPreviewTabStategets adetachedflag. While it's set, the main window unmounts its webview and shows a placeholder with Bring back. When it's cleared, the main window remounts the webview at the current URL.preview.tabWindow.open(tabId, partition)andclose(tabId). The entry point is Pop out to window in the browser panel's ⋯ menu.Related
Should the picture-in-picture window stay as a "watch only" mode, or should this replace it?
All reactions