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
Store form data in sessions #4813
Comments
About "plain text purists": but it feels weird that we reimplement all the Qt internal just to convert the data to/from text. Isn't it a better way to just let Qt handle it, and provide the converter as an external tool (or a qutebrowser command) for users wanting to view them as text? note 1. Yes, QWebEngineHistory does store the form data. http://0x0.st/zagj.py |
Having sessions in plain text isn't really a feature I'd want to give up - it's quite useful when e.g. one of the pages being restored causes QtWeb{Kit,Engine} to crash, or to track sessions in git repos, etc. I'd say I'm rather pragmatic - if there's a clear benefit from having things in a binary format, and it's a format which is still user-viewable and editable (say, the sqlite history), I think having that binary is definitely a good idea. Here, it's in a Chromium-internal format, and if we need converter code anyways, why not store it as text in the first place? edit: Also, storing it in a binary format would make it impossible to save a session with QtWebEngine and load it with QtWebKit or vice-versa.
Interesting! Should be possible to add that to session files as well, I guess? Repost because I've seen various pastebin services go down over the years: https://paste.the-compiler.org/view/09429b49
Is that space properly urlencoded? Also, why not just use setHtml?
Well spotted! I'll push a fix. |
Because currently the converter code loses data. (In this case because it's preferable to have the data in plain text format, the best way would be to write some code to convert between the types. However the data might be lost when transferred between webengine and webkit)
Yes, I did use %20 instead of space. (By the way, I was talking about qutebrowser, not the example program) |
Probably #2429. |
#5359 is probably going to fix this as well FWIW. |
After a simulated crash (
kill -9
) qute automatically restores my last session. But, if I was editing a form and hadn't submitted it, it doesn't recover the data. It loads the page fresh, with the original data from the server.Firefox and chromium both support this. Opera (at least by default, not sure if there's a way) doesn't.
I realize not everyone would want this, so I'd definitely propose that it be a setting.
I asked in IRC if I missed a way to do this, or if I should open a feature request, and others said:
Fingers crossed that it's added rather than closed. :-) For me, I can't use a browser that doesn't do this. I try not to, but I have unsaved data too often (private wiki) and thanks to AMD, my system crashes about once a week. I hate that feeling of "what did i just lose?"
The text was updated successfully, but these errors were encountered: