JBrowser Source Docs

jbrowser.ui.dialogs.popup

Generated from the source code of JBrowser 2.0.3.

jbrowser/ui/dialogs/popup.py · 139 lines

Script-opened popup windows (window.open with features — OAuth / payment flows).

They share the opener's profile so sign-ins flow back to the originating space, and keep the window.opener relationship intact because the page is created by the engine request.

PopupPage#

class PopupPage(QWebEnginePage)source
PopupPage(profile: QWebEngineProfile, popup: 'PopupWindow')

PopupPage.createWindow#

createWindow(window_type)source

PopupPage.acceptNavigationRequest#

acceptNavigationRequest(url: QUrl, nav_type: QWebEnginePage.NavigationType, is_main: bool) -> boolsource
class PopupWindow(QWidget)source
PopupWindow(ctx: 'AppContext', ui: 'BrowserController', profile: QWebEngineProfile, space: Space)

Qt overrides: paintEvent, closeEvent