Exemple #1
0
def init(qapp, config_stub, cache_tmpdir, data_tmpdir, monkeypatch):
    monkeypatch.setattr(webenginesettings.webenginequtescheme, 'init',
                        lambda: None)
    monkeypatch.setattr(objects, 'backend', usertypes.Backend.QtWebEngine)
    init_args = types.SimpleNamespace(enable_webengine_inspector=False)
    webenginesettings.init(init_args)
    config_stub.changed.disconnect(webenginesettings._update_settings)
def init(args):
    """Initialize all QWeb(Engine)Settings."""
    if objects.backend == usertypes.Backend.QtWebEngine:
        from qutebrowser.browser.webengine import webenginesettings
        webenginesettings.init(args)
    else:
        from qutebrowser.browser.webkit import webkitsettings
        webkitsettings.init(args)
Exemple #3
0
def init():
    """Initialize all QWeb(Engine)Settings."""
    if objreg.get('args').backend == 'webengine':
        from qutebrowser.browser.webengine import webenginesettings
        webenginesettings.init()
    else:
        from qutebrowser.browser.webkit import webkitsettings
        webkitsettings.init()
Exemple #4
0
def init(args):
    """Initialize all QWeb(Engine)Settings."""
    if objects.backend == usertypes.Backend.QtWebEngine:
        from qutebrowser.browser.webengine import webenginesettings
        webenginesettings.init(args)
    else:
        from qutebrowser.browser.webkit import webkitsettings
        webkitsettings.init(args)
Exemple #5
0
def init(args):
    """Initialize all QWeb(Engine)Settings."""
    if args.backend == 'webengine':
        from qutebrowser.browser.webengine import webenginesettings
        webenginesettings.init(args)
    else:
        from qutebrowser.browser.webkit import webkitsettings
        webkitsettings.init(args)
Exemple #6
0
def init():
    """Initialize all QWeb(Engine)Settings."""
    if objreg.get('args').backend == 'webengine':
        from qutebrowser.browser.webengine import webenginesettings
        webenginesettings.init()
    else:
        from qutebrowser.browser.webkit import webkitsettings
        webkitsettings.init()
def init(args):
    """Initialize all QWeb(Engine)Settings."""
    if args.backend == "webengine":
        from qutebrowser.browser.webengine import webenginesettings

        webenginesettings.init(args)
    else:
        from qutebrowser.browser.webkit import webkitsettings

        webkitsettings.init(args)
Exemple #8
0
def init(args: argparse.Namespace) -> None:
    """Initialize all QWeb(Engine)Settings."""
    if objects.backend == usertypes.Backend.QtWebEngine:
        from qutebrowser.browser.webengine import webenginesettings
        webenginesettings.init(args)
    else:
        from qutebrowser.browser.webkit import webkitsettings
        webkitsettings.init(args)

    # Make sure special URLs always get JS support
    for pattern in ['file://*', 'chrome://*/*', 'qute://*/*']:
        config.instance.set_obj('content.javascript.enabled', True,
                                pattern=urlmatch.UrlPattern(pattern))
Exemple #9
0
def init(args):
    """Initialize all QWeb(Engine)Settings."""
    if objects.backend == usertypes.Backend.QtWebEngine:
        from qutebrowser.browser.webengine import webenginesettings
        webenginesettings.init(args)
    else:
        from qutebrowser.browser.webkit import webkitsettings
        webkitsettings.init(args)

    # Make sure special URLs always get JS support
    for pattern in ['file://*', 'chrome://*/*', 'qute://*/*']:
        config.instance.set_obj('content.javascript.enabled', True,
                                pattern=urlmatch.UrlPattern(pattern))
Exemple #10
0
def init(qapp, config_stub, cache_tmpdir, data_tmpdir):
    init_args = types.SimpleNamespace(enable_webengine_inspector=False)
    webenginesettings.init(init_args)
    config_stub.changed.disconnect(webenginesettings._update_settings)
def init(qapp, config_stub, cache_tmpdir, data_tmpdir):
    init_args = types.SimpleNamespace(enable_webengine_inspector=False)
    webenginesettings.init(init_args)
    config_stub.changed.disconnect(webenginesettings._update_settings)