Python webkit2 can't open links in Gmail or Google inbox

188 Views Asked by At

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 page. If you have a popup blocker, try disabling it to open the window."

I've enabled the "javascript-can-open-windows-automatically" setting for the webview but it still doesn't work.

If I right-click on any of the outgoing links, and select "open link" or "open in new window", the links will open.

I've also created a handler for navigation requests using "decide-policy" signal and "create" signal, in the hopes of retrieving the uri, however in request object the uri is blank.

This seems to be a problem with webview and gmail/inbox in general as discussed here. The previous question hasn't been solved, therefore I'm asking again but in the context of Python.

0

There are 0 best solutions below