Python webkit2 无法打开 Gmail 或 Google 收件箱中的链接

Rob*_*nnn 6 python webview python-3.x webkit2

我正在使用包含 WebKit2 网络视图的 Python 创建一个 Gtk+ 应用程序。每当点击 GMail 或 Google Inbox 中的传出链接时,javascript 都会弹出一个弹出窗口,说:

"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."
Run Code Online (Sandbox Code Playgroud)

我已经为 webview 启用了“javascript-can-open-windows-automatically”设置,但它仍然不起作用。

如果我右键单击任何传出链接,然后选择“打开链接”或“在新窗口中打开”,链接将打开。

我还使用“decide-policy”信号和“create”信号为导航请求创建了一个处理程序,希望能检索到 uri,但是在请求对象中,uri 为空。

正如此处所讨论的,这似乎是 webview 和 gmail/inbox 的一般问题。上一个问题尚未解决,因此我再次询问,但在 Python 的上下文中。