Support scoped native popup windows for social login flows
Facebook Messenger on your desktop, without the Facebook clutter
Brought to you by:
kristoffer-r
Originally created by: kristofferR
Carrier classifies Google, Apple, and Microsoft authentication URLs as internal, but it has no native new-window handler. Wry denies programmatic window.open requests when no handler is installed, so popup-based login can lose opener/callback semantics or fall back to an in-place navigation.
This is separate from File > New Window. Authentication popups are related child windows with a shared session and a short lifetime.
Support social-login popups without turning arbitrary remote window.open calls into native windows.
Originally posted by: kristofferR
Done in [#344] (on
main, first released in v2.1.0). Messenger windows now have anon_new_windowhandler (open_popupinsrc-tauri/src/window.rs).popup_route(src-tauri/src/url_rules.rs) opens blank pages, Facebook hosts and the Google, Apple and Microsoft sign-in hosts aspopup-*windows that share the opener's session. Other web pages open in the browser, and everything else is denied. Popups get unique labels, open centred on the opener's screen, stay out of window persistence, and only these popups can close themselves throughwindow.close().Not done: a live Google, Apple or Microsoft sign-in, since Facebook's login page doesn't currently offer one. Messenger call windows use the same path and work on macOS.
Related
Tickets:
#344Ticket changed by: kristofferR