fit-webview-bridge 0.2.2a4__tar.gz → 0.2.2a5__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of fit-webview-bridge might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: fit-webview-bridge
3
- Version: 0.2.2a4
3
+ Version: 0.2.2a5
4
4
  Summary: Qt native WebView bridge with PySide6 bindings
5
5
  Author: FIT Project
6
6
  License: LGPL-3.0-or-later
@@ -33,7 +33,7 @@ class Main(QMainWindow):
33
33
  self.view.titleChanged.connect(self.setWindowTitle)
34
34
  self.view.loadProgress.connect(lambda p: print("progress:", p))
35
35
 
36
- self.view.setUrl(QUrl("http://fit-project.org/"))
36
+ self.view.setUrl(QUrl("https://web.whatsapp.com/"))
37
37
 
38
38
 
39
39
  app = QApplication([])
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "fit-webview-bridge"
3
- version = "0.2.2a4"
3
+ version = "0.2.2a5"
4
4
  description = "Qt native WebView bridge with PySide6 bindings"
5
5
  requires-python = ">=3.11,<3.14"
6
6
  dependencies = ["PySide6==6.9.0", "shiboken6==6.9.0", "shiboken6-generator==6.9.0"]
@@ -82,12 +82,7 @@ static NSURL* toNSURL(QUrl u);
82
82
  decidePolicyForNavigationAction:(WKNavigationAction *)navigationAction
83
83
  decisionHandler:(void (^)(WKNavigationActionPolicy))decisionHandler
84
84
  {
85
- // targetFrame == nil => richiesta per nuova finestra (target="_blank" o window.open)
86
- if (navigationAction.targetFrame == nil || !navigationAction.targetFrame.isMainFrame) {
87
- [webView loadRequest:navigationAction.request]; // carica QUI
88
- decisionHandler(WKNavigationActionPolicyCancel); // cancella la creazione nuova finestra
89
- return;
90
- }
85
+ // Se è un _blank, no-op qui: ci pensa createWebView... (sopra)
91
86
  decisionHandler(WKNavigationActionPolicyAllow);
92
87
  }
93
88