Questions tagged [webkit2]
28 questions
32
votes
5 answers
How to show the inspector within your WKWebView based desktop app?
I'm looking for a way to show the inspector for a WKWebView inside my Mac app.
With WebKit1 and WebView it was easy to show the inspector inside your Mac app, by just setting WebKitDeveloperExtras to true in your UserDefaults. That would give you an…

Koen Bok
- 3,234
- 3
- 29
- 42
6
votes
0 answers
Python webkit2 can't open links in Gmail or Google inbox
I'm creating a Gtk+ app with Python that contains a WebKit2 webview. Anytime an outgoing link in GMail or Google Inbox is clicked a popup is spawned by javascript saying:
"Grrr! A popup blocker may be preventing the application from opening the…

Robert.Brnnn
- 106
- 4
4
votes
1 answer
JavaScriptCore in WebKit2Gtk with C?
I am having trouble getting the JavaScriptCore to work with WebKit2Gtk. In my C application I am using WebKit2Gtk as a frontend for my application which I want to be able to access C functions.
There are a couple of examples with WebKitGtk (not the…

Jan
- 163
- 14
3
votes
1 answer
Is it possible to make a webkit webview transparent within the application like other gtk widgets?
I am writing a simple application with Python3, Gtk3 and Webkit2. One of the elements is a webview, but I want the webview to be transparent to the background set for the parent container - in this case a Gtk.Paned in a Gtk.Box where the GtK.Box can…

Jadzia626
- 126
- 7
2
votes
2 answers
WebKit2 and DomDocument/JavaScriptCore (Python3)
I am converting a Python3 application to use WebKit2 instead of WebKit (which is no longer available in Debian Buster).
In the application the user can (de)select check boxes which I read from the Python3 application. In the original code I could…

Arjen Balfoort
- 165
- 12
2
votes
1 answer
Getting HTML source using WebKit2
I use a little Python3 program, which I would like to switch from Webkit to WebKit2. In short, I open a Website in a Gtk-Window and would like to store the html code in a variable.
For WebKit its easy:
import sys
import…

TillTopf
- 21
- 3
1
vote
0 answers
Can Ajax be used in GTK WebKitWebView?
I am trying to embed an HTML view in my Gtk3 program. In that HTML view, I want to use Ajax. Does this work? How could this be achieved.
I made a few experiments in C with the following code:
#include
#include
static…

habrewning
- 735
- 3
- 12
1
vote
1 answer
Save page of WebKitWebView into file
I have this almost solved. I've found this function:
void
webkit_web_view_save_to_file (WebKitWebView *web_view,
GFile *file,
WebKitSaveMode save_mode,
…

DisableGraphics
- 91
- 6
1
vote
0 answers
Accessing video devices in Webkit2Gtk
I am trying to access my webcam from a Webkit2Gtk window, but I am unable to. I'm using the WebKit2 python module.
from gi.repository import Gtk
from gi.repository import WebKit2
class BrowserView:
def __init__(self):
window =…

gecko
- 26
- 3
1
vote
1 answer
How to expose native code to javascript in webkit2gtk
I want to expose a native object or function to javascript so that i can have a callback function in C when the particular function is called in browser.
From this example, it seems it is possible in WebKitGTK1 using the signal…

Krishna kumar
- 25
- 3
1
vote
1 answer
how to set X-Frame-Options for local file
I create a web browser in python3 with pygobject (gtk3 and webkit2) and I want create a home page include google. I create a html file with a iframe but I see the error :
Refused to display 'https://www.google.com/' in a frame because it set…

Rayzeq
- 25
- 2
- 6
1
vote
0 answers
WebKit2Gtk WebView touchscreen scrolling
I've got kiosk web view on Raspberry PI with touch screen.
I can't figure out how get touch screen scroll working.
E.g. when i open chrome and navigate to website xyz, I can scroll using drag (pan?) gesture.
When I navigate to website xyz in my…

Martin
- 41
- 1
- 8
1
vote
1 answer
Webkit/webkit2 Browser
Blink (Chromium) was foked from webkit. and they are separated two or three years ago.
Seems there are many browsers using chromium engine. By the way is there any other browser powered by webkit/webkit2 except safari?
Thank you in advance.

jongchul
- 77
- 8
0
votes
0 answers
Cant Scroll or Click inside a Webkit2 GTK Window
I am developing a program that opens google.com website inside a borderless GTK Window on linux.
Loaded inside is webkit that displays a website. Everything works nice, but I cannot scroll or click anything
(scrolling with arrow keys and using TAB…
0
votes
1 answer
Seeminly impossible to change HTTP headers in webkit2gtk
To start things off, there are no functions to change these http headers, which already seems ridiculous. I'm attempting to craft an unfingerprintable browser, and the first step was to modify the user agent. This was easily exposed via a webkit…

Seren541
- 59
- 3