Page 1 of 1

[DONE] RFE: Show meaningful error on https-forcing loop

Posted: Mon May 18, 2009 10:09 pm
by mattmccutchen
If an https Web page redirects to the same page via http (e.g., https://www.sciencedirect.com/) but NoScript is forcing https, an infinite loop results. It would be great if this showed a meaningful error message, either the standard redirect-loop message (see bug 83471 and network.http.redirection-limit) or something specific to NoScript.

Re: RFE: Show meaningful error on https-forcing loop

Posted: Mon May 18, 2009 10:19 pm
by Giorgio Maone
Thanks for the suggestion, it would be handy indeed.

Re: RFE: Show meaningful error on https-forcing loop

Posted: Wed May 20, 2009 2:37 pm
by Giorgio Maone

Re: [DONE] RFE: Show meaningful error on https-forcing loop

Posted: Wed May 20, 2009 3:36 pm
by therube
Just to point out, that if the site is removed from Force HTTPS, the Try Again button (at least that's what SeaMonkey shows) remains ineffectual. You must reopen the link in a new tab/window.

Also given that we know the cause of the redirection error, could the notice include the fact that the site is set as Force HTTPS, or some other prompt to remind oneself. Otherwise, you could happen upon the error & not realize (having forgotten) that you had placed the site in Force HTTPS.

Also interesting, if you view-source of the redirection error "message", you do get the actual source of sciencedirect.com.

Re: [DONE] RFE: Show meaningful error on https-forcing loop

Posted: Wed May 20, 2009 3:42 pm
by Giorgio Maone
therube wrote: Also given that we know the cause of the redirection error, could the notice include the fact that the site is set as Force HTTP
This information is logged in the Error Console.
Reusing the standard Gecko redirect loop error allowed for one-shot cross-browser implementation and no need for additional localization effort.
Not to mention that the page giving you the error is the https one, but for this (rare) event to happen you must follow/enter a http URL, therefore the situation is easily discoverable.

Re: [DONE] RFE: Show meaningful error on https-forcing loop

Posted: Wed May 20, 2009 3:46 pm
by therube
Also interesting, if you view-source of the redirection error "message", you do get the actual source of sciencedirect.com.
May have to rethink that. May depend on whether the page had been cached or not?

Hmm. Not sure how I got it to happen? Whatever I did, I got http:/www.sciencedirect.com/ (non-https:) source to display - at least once.

Re: [DONE] RFE: Show meaningful error on https-forcing loop

Posted: Wed May 20, 2009 3:48 pm
by Giorgio Maone
therube wrote:
Also interesting, if you view-source of the redirection error "message", you do get the actual source of sciencedirect.com.
May have to rethink that. May depend on whether the page had been cached or not?
Yes it does. view-source tries to get the page from the cache, unless it's a POST request (in that case it gets replayed).