question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Upgrading to WebKit2 (GTK) and WKWebView (Cocoa)

See original GitHub issue

Specification

  • Platform: Fedora
  • Version: 27

Description

I was wondering if you are going to move to WebKit2 and deprecate WebKit1. I’ve been trying to develop a Python/Gtk application and keep seeing warnings about WebKit security. Such as; https://blogs.gnome.org/mcatanzaro/2016/02/01/on-webkit-security-updates/

In my application I’m using a try/except to test the version like this; ` import gi try: gi.require_version(‘Gtk’, ‘3.0’) from gi.repository import Gtk, Gdk # , Gio except: sys.exit(“This script requires Gtk 3.0 or newer!”)

try: gi.require_version(‘WebKit2’, ‘4.0’) from gi.repository import WebKit2 except: sys.exit(“This script requires WebKit2 4.0 or newer!”) ` As a side note, I’m having a difficult time learning how to use WebKit. Searching for answers is what led me to pywebview. Also, I tried to find a way to label this as label:“help wanted”, but I can’t see how to apply a label, sorry.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:43 (23 by maintainers)

github_iconTop GitHub Comments

2reactions
r0x0rcommented, Jul 26, 2018

I don’t really do any development in the summer, so I will probably be able to give it a go sometime in the fall. On that note, be the change you want to see in the world.

1reaction
r0x0rcommented, Nov 1, 2018

Made some progress with tests. The culprit seems to be multiprocessing nature of the test runner. Namely, this barebone example renders an empty window and never loads a url on macOS.

from multiprocessing import Process

def _create_window():
    import webview
    webview.create_window('Simple browser', 'http://pywebview.flowrl.com')


if __name__ == '__main__':
    # Create a standard webview window
    p = Process(target=_create_window)
    p.start()
    p.join()
Read more comments on GitHub >

github_iconTop Results From Across the Web

WKWebView | Apple Developer Documentation
A web view supports a full web-browsing experience, and presents HTML, CSS, and JavaScript content alongside your app's native views. Use it when...
Read more >
[Mac] Add API for open panel handling to WKWebView
I will update the WKUIDelegate to have a new optional methods similar to the ones that exist ... Source/WebKit2/UIProcess/Cocoa/UIDelegate.mm:268 > + [((id ...
Read more >
Source/WebKit2/ChangeLog - WebKit - Git at Google
UIProcess/API/Cocoa/WKWebView.mm: ... (-[WKWebView reloadFromOrigin]): ... Update for WebPageProxy functions returning the Navigations directly, rather than.
Read more >
[PATCH v2] Add xwidget webkit support for macOS Cocoa
+dnl Enable xwidgets if macOS Cocoa and WebKit framework are available. ... + fi - WEBKIT_REQUIRED=2.12 - WEBKIT_MODULES="webkit2gtk-4.0 ...
Read more >
Changelog - pywebview - flowrl
Fix [Cocoa] Fix cancelling of closing the window in the closing event ... and installed automatically; Improvement [GTK] Update to WebKit2 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found