-
Notifications
You must be signed in to change notification settings - Fork 99
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
Double Ctrl-O required to go back on some sites #172
Comments
I can reproduce this. On a first try I thought this is related to JavaScript. Because if JavaScript is disabled the click of the 'here' link leads to the imgur url and this redirects to a noscript variant of the page. The |
This issue seems to be related to HSTS (HTTP Strict Tranport Security) feature of vimb. If The imgur page contains references to facebook which send the HSTS header and is put into the list of known hsts-hosts. But the URL for facebook within the page is set the http protocoll. Now vimb stops the http request to facebook and do a new frame load for the https variant of the previous stopped URL. This is a little hack to avoid a bug in webkitgtk (see also #146). The problem is that there is no way to disable the back forward history for the ignored requests as I know. If the back forward list is disabled and enabled after the request the whole list is cleared. I'll see if there is another alternative to |
Thanks Daniel! I can live with hsts disabled for now while you ponder the problem.. as there are enough sites whose url I don't remember which present this history navigation problem. |
@fanglingsu I have followed your idea to reload the frame only if it is the main request, with some adaptations. A test against I have do some tests: it corrects #172, and seems to be ok for others cases (HSTS in simple case or after redirects). Please do some tests too: HSTS is a security feature that we shouldn't break :-) |
@semarie The two issue are solved. I've done some tests with included sources like images, and the url are properly rewritten to https (tested with wireshark). But I've seen cases where I requested a source via http that was rewritten to https but the certificate was considered invalid according to Any attempt to reproduce the invalid certificate failed. Seems to be a heisen-bug, it exists as long as you are are not viewing to it. |
In case I set the |
Hmm... maybe it's just my config but turning |
Why do you think it doesn not work? Are there still written entries into the |
Yes vimb still seems to be updating that file. |
The hsts file is also change if hsts is disabled in case the hsts was enabled before when vimb is closed. If vimb is closed the in memory hsts entries are rewritten to the hsts file. But if hsts is disabled the file should not change during browsing. |
Ok sorry, I cleared the hsts file and restarted vimb and it no longer updates the file, but I Ctrl-O still does not get me to the previous page... not sure what's going on, but I guess in my case at least hsts is not the cause. |
@shioyama Can you please provide some more information about the CTRL-O issue? Does it appear on all pages? Does it also appear if JavaScript is disabled? |
@fanglingsu Hmm not sure now, just tested on one of my two laptops with Thanks again (as always) for responding so quickly! My only major issue with vimb remains #235, otherwise it's running really smoothly. |
@fanglingsu sorry my comment above was wrong, the problem above persists and does seem to be related to javascript. Here's an example, going from hackernews to e.g.: http://www.nytimes.com/2015/11/01/business/dealbook/arbitration-everywhere-stacking-the-deck-of-justice.html With javascript on I can't go back with a single ctrl-O as expected. |
I don't think hsts is the reason for the issue. To be sure you could compile vimb without HSTS-Support and test it again. But I assume the issue will still be there even if I can't reproduce it with your URLs at the time. But you can use the webinspector (by 'gF') and look which pages are loaded when you open the nytimes page. It may be that you're redirected right after the page is loaded so that you have in fact visited two pages. If you press CTRL-O in such cases you will normally open the page that redirected you. |
Some sites seem to resist going back.. but I found that if I do the Ctrl-O twice in sequence, relatively quickly, vimb does go back. E.g.
http://imgur.com/a/d9Zvp
from
http://www.reddit.com/r/unixporn/comments/2vhn1m/what_are_your_favorite_beautiful_applications/
(the comment link "here" by redditErick to the imgur web page)
Pressing a single Ctrl-O does not go back. A quick double Ctrl-O does go back.
The text was updated successfully, but these errors were encountered: