New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.netrc ignored temporarily #4367
Comments
I tried testing with I'm on Qt 5.11.1. |
I can reproduce that with crashes.qutebrowser.org which I have in my netrc file, even without having to restart. It happens because netrc is only used once until a new page is loaded (because we can't detect wrong passwords, so that'd be an endless loop otherwise). Instead, we probably should have a list of URLs where netrc was already used or so. |
I've just put one up: https://skulk.org/netrc There is a css file on that page. However, I cannot reproduce this exact issue, as it never asks for any password on that website even if I resume it from a suspended state. The offending web application that I'm using must be doing something funky to trick qutebrowser into asking for a password. Thanks for putting time into this. I'm not entirely understanding what this sentence means in the context of this issue:
How does this cause qutebrowser to ask for my password for a random css file served under that domain? I'm reading through all the relevant code I can find, so if I can understand the issue I'll attempt to fix it. |
Here's what (I think) happens:
The problem that
|
I understand now. However, why does this not happen on my test site https://skulk.org/netrc (general:password) which loads a htpasswd-protected css file? Is it because the distance (temporally) between the two password-protected requests is so small that qutebrowser ends up doing the right thing? |
I don't know. I'd expect QtWebEngine to not even ask for a password twice (because it should know that the same password is still valid), but it does. |
Hey, I think I've actually fixed it by doing what you said! I replaced |
Why would it need to be a dict? Sounds easier to just make it a set of URLs. As for QtWebKit, you'll probably need to adjust that code as well so it keeps working at all, as |
Version info (see
:version
):v1.5.1
Does the bug happen if you start with
--temp-basedir
? (if applicable):This can't really be reproduced with a temporary basedir because it involves closing qutebrowser, re-opening, and resuming the tab from the suspended state.
Description
The .netrc is ignored when a tab wakes up from being suspended. The incredibly irritating modal password prompt shows up for some random .css file loaded by the page. I can dismiss it (press escape) and refresh the page and it won't show up again.
How to reproduce
The text was updated successfully, but these errors were encountered: