Repository navigation
Pop the preview browser out into its own window (multi-monitor) #31971
brunodubcosta
started this conversation in
Ideas
Replies: 2 comments
|
+1 from Ubuntu. The separate preview window and PiP keep the panel's viewport, so the page is just scaled up; I can't click or type in it. Maximize panel works as a stopgap, but then I lose the chat. A real pop-out window with a working webview would solve this. |
0 replies
|
+1 from macOS. I'd like to keep the preview browser in its own window while the chat stays in the main one. The current separate preview window is view-only, so I can't click or type in it, and it gets blurry when enlarged. Looking forward to #31984 landing. |
0 replies
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.
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
Open in separate window (in the browser panel's ⋯ menu, and on the mini player's pop-out button) opens a real 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. In the pop-out, the toolbar's float button becomes Bring back to chat, and closing the 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 (#31984)
BrowserWindowthat loads the web app at a#/browser-window/<tabId>route, which renders only that tab's preview panel. Its webview uses the same partition and hardening as the main window's.PreviewManager.registerWebviewalso accepts guests hosted by pop-outs. 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, shows the Bring back placeholder and hides the mini player.#/browser-window/route) and still rejects subframes, webview guests and foreign windows.Related
All reactions