News for hackers. Stuff that matters.
Re:Firefox 52 released by Joeboy on Tuesday March 07, 2017 @10:50AM (#13811270)
The problem I have right now is that when I view the source of a page I'm working on, I get the source of the login page instead. I don't think that is justifiable behaviour.
Re:Firefox 52 released by Etzos on Tuesday March 07, 2017 @11:19AM (#13811588)
Considering the potential size of pages and that this would mean the browser would have to keep around all of the unmodified source for all of those, I think it's a decently justified position.

I will say that it would be nice if there was a way for them to recognize when the devtools are open and use that as a signal to keep around the source of the current page. But otherwise it would certainly cause significant memory bloat for each tab open.

Re:Firefox 52 released by JetSpiegel on Tuesday March 07, 2017 @11:18AM (#13811579)
You can open the dev tools, copy the request as cURL and run that in another terminal?
Re:Firefox 52 released by Joeboy on Tuesday March 07, 2017 @11:26AM (#13811653)
Yes that works, although it generates an option that my curl doesn't like (--1.0) so I have to edit that out (or find the option to change it in FF). Better than the strategy I suggested, but still a lot clunkier than Ctrl-U. Grumble.
Re:Firefox 52 released by yazaddaruvala on Tuesday March 07, 2017 @10:57AM (#13811344)
#spaproblems
Re:Firefox 52 released by Joeboy on Tuesday March 07, 2017 @11:14AM (#13811540)
It's not a spa, these are #websitewithloginproblems.
Re:Firefox 52 released by yazaddaruvala on Tuesday March 07, 2017 @11:45AM (#13811869)
That is surprising, that would imply that view-source isn't using the same cookies as the regular browsing experience.

Which seems like a bug.

Re:Firefox 52 released by Forlien on Tuesday March 07, 2017 @12:35PM (#13812553)
This seems strange. If you view page source on this comments page while logged in to Hacker News, does the source show you as not logged in? When I do that, my source contains the link to my profile (user?id=Forlien) at the top so I know it's giving me the logged-in version.
Re:Firefox 52 released by Joeboy on Tuesday March 07, 2017 @01:00PM (#13812830)
Actually no, it shows me as logged in (I can see the logout link).

Whereas with the site I'm working on locally, I get the login page. curl with appropriate options copied from firefox gets me the full page.

I don't know why I get different results with the two sites.