Incorrect site view in QML WebView
Solved
Qt WebKit
-
Some sites not fully loaded in QML WebView on Android. As example banggood.com. As far as I understand this related to this bug https://bugreports.qt.io/browse/QTBUG-76436. It marked fixed, but look like is it not.
I try to fix this by
webView.runJavaScript("import WebSettings ;\nWebSettings settings;\nsettings.setDomStorageEnabled(true);");
but receive error:
Uncaught SyntaxError: Cannot use import statement outside a module
I tried several Qt version and devices.
Please help me to resolve this.
Also please confirm what sites like banggood.com dont work in Qt Example minibrowser on Android. And produce errors:I chromium: [INFO:CONSOLE(1)] "Uncaught TypeError: Cannot read properties of null (reading 'length')", source: https://psr.staticbg.com/rum/monitor.min.js?v=0508 (1) I chromium: [INFO:CONSOLE(1)] "Uncaught TypeError: Cannot read properties of null (reading 'getItem')", source: https://ms.staticbg.com/default/web/dist/js/app.7b8d6ad7.js (1)