JBrowser Source Docs
You are reading the documentation for JBrowser 1.4.1. The newest release is 1.5.4. Go to the latest documentation

jbrowser.engine.tab_controller

Generated from the source code of JBrowser 1.4.1.

jbrowser/engine/tab_controller.py · 612 lines

TabController: owns one card's QWebEnginePage and translates engine events into Tab-model updates (via the coalescing pipeline), info bars and lifecycle operations.

Constants#

Name Value
LS QWebEnginePage.LifecycleState
ZOOM_STEPS [0.25, 0.33, 0.5, 0.67, 0.75, 0.8, 0.9, 1.0, 1.1, 1.25, 1.5, 1.75, 2.0, 2.5, 3.0, 4.0, …

TabController#

class TabController(QObject)source
TabController(ctx: 'AppContext', tab: Tab, space: Space, profile: QWebEngineProfile, parent: QObject | None=None)

Signals

Signal Arguments
infobar (object)
infobarClosed (str)
findResult (int, int)
linkHovered (str)
fullscreenRequested (object)
closeRequested ()
printRequested ()
desktopMediaRequested (object)
navigated ()

TabController.ensure_loaded#

ensure_loaded() -> Nonesource

TabController.load#

load(url: QUrl | str) -> Nonesource

TabController.back#

back() -> Nonesource

TabController.forward#

forward() -> Nonesource

TabController.reload#

reload(bypass_cache: bool=False) -> Nonesource

TabController.stop#

stop() -> Nonesource

TabController.find#

find(text: str, backward: bool=False, case_sensitive: bool=False) -> Nonesource

TabController.stop_find#

stop_find() -> Nonesource

TabController.toggle_mute#

toggle_mute() -> Nonesource

TabController.set_zoom#

set_zoom(factor: float) -> Nonesource

TabController.zoom_step#

zoom_step(direction: int) -> Nonesource

TabController.create_window#

create_window(window_type: QWebEnginePage.WebWindowType) -> QWebEnginePage | Nonesource

TabController.show_threat#

show_threat(url: QUrl) -> Nonesource

Replace a navigation to a known phishing / malware host with an interstitial.

TabController.external_protocol#

external_protocol(url: QUrl) -> Nonesource

TabController.credentials#

credentials() -> listsource

TabController.refresh_login_count#

refresh_login_count() -> Nonesource

TabController.on_login_form#

on_login_form(count: int) -> Nonesource

TabController.fill#

fill(cred) -> Nonesource

TabController.on_credentials#

on_credentials(username: str, password: str) -> Nonesource

TabController.probe#

probe(callback: Callable[[dict | None, bool], None]) -> Nonesource

Run the smart-protection guard probe. callback(data | None, was_frozen).

None means the page did not answer in time and must be treated as protected.

TabController.throttle#

throttle(freeze: bool) -> Nonesource

Out of sight: stop rendering (and optionally freeze JS timers/tasks).

TabController.unthrottle#

unthrottle(render_visible: bool) -> Nonesource

TabController.refreeze#

refreeze() -> Nonesource

TabController.discard#

discard() -> boolsource

Hibernate: free the renderer. Only succeeds when Qt agrees the page is expendable.

TabController.wake#

wake() -> Nonesource

TabController.history_bytes#

history_bytes() -> bytes | Nonesource

TabController.clear_site_storage#

clear_site_storage() -> Nonesource

TabController.dispose#

dispose() -> Nonesource