Open Hi-Angel opened 1 month ago
Fixed the title (while writing this issue I found a better way to reproduce).
FWIW, "steps to reproduce" isn't the only way to get this. I don't have a habit of having multiple google pages among opened tabs, but I still routinely get the error. It usually happens when I repeat search within the same tab. For some reason though, with --temp-base-dir
it does not happen, but it still can be reproduced with the steps I wrote in the post.
Reproduced, fails with Uncaught TypeError: Cannot read properties of undefined (reading 'webelem')
.
Seems to work fine with Qt 6.6, so this might be another QtWebEngine 6.7 regression...
I don't know if it's the same issue but i get this a lot in the arch linux packages page, even with the temp-dir:
https://archlinux.org/packages/
Although it's not 100%, if i do a search with the page search engine (it's one of my search engines in the config) and open the page of one of the packages then it happens a lot more, but still not 100%:
https://archlinux.org/packages/?q={}
While doing it with the terminal open i got this but only once:
ERROR: JS: [userscript:_qute_js:452] Uncaught TypeError: Cannot read properties of undefined (reading 'click')
All the other times i get this:
ERROR: Unknown error while getting elements
What i typically do is do a quick d(to close) and then u(to undo the tab) and then the hints work since reloading doesn't work.
I chased this around a little bit, nothing conclusive but suspect it's something on the Qt side. Some notes in case they're helpful:
webelem.js
gets executed on each navigation, this file creates the javascript function which is invoked for hints and which isn't being foundQWebEnginePage.scripts().insert
expects to be given a script once and will manage re-executing it on subsequent navigations (or the subframes flag causes it to work this way), and that's what happens when things are working, but something in the repro steps prevents that from happeningCan also verify that the qute_js
script remains in the script list after navigation in the repro steps, it just doesn't seem to get executed
I'm also affected by this in a lot of sites. Using Qtwebengine 6.7.1
Version info:
And it's also tested with latest
main
branch.Does the bug happen if you start with
--temp-basedir
?:Yes
Description
See steps to reproduce.
I think it's a regression because I haven't see it before. Idk what component regressed though.
I think this is different from #7662, for one because that issue seems to have been related to a WebEngine bug that was fixed.
How to reproduce
Launch
qutebrowser --temp-basedir google.com google.com
Qutebrowser with two tabs should get opened
Type into the search box
test
and press EnterPress f to make hints appear over the results page.
Expected
Hints should appear
Actual
Qutebrowser prints
Unknown error while getting elements