News for hackers. Stuff that matters.
Re:Show HN: GeoScreenshot – Test your website from many loca... by kpsychwave on Friday September 09, 2016 @05:20PM (#12466134)
Just added London, Singapore and Amsterdam to the free offering. Please post any questions/feature requests here.
Re:Show HN: GeoScreenshot – Test your website from many loca... by blakesterz on Sunday September 11, 2016 @12:38PM (#12474162)
I'm guessing it's either my Privacy Badger or uBlock Origin, but the site's broken for me on Chrome 52 Ubuntu.
Re:Show HN: GeoScreenshot – Test your website from many loca... by corobo on Sunday September 11, 2016 @03:25PM (#12475133)
"The site's broken" on Hacker News, really? Put some effort into reporting the problem!
Re:Show HN: GeoScreenshot – Test your website from many loca... by gavinpc on Sunday September 11, 2016 @10:52PM (#12476886)
If "Privacy Badger" blocks cookies, then it's probably the old "The operation is insecure." That's what I see. A message says "Please select up to three locations," but there is no list of locations.

People, please use a try/catch when feature testing for localStorage. If cookies are blocked for the domain, trying to access storage will throw a security exception. This exception will almost definitely hose whatever behavior you were trying to add. I see this on probably 60% of Show HN projects, but sometimes even on large sites.

Your core competency is testing web sites, right? I'd suggest making one of those 200 locations block cookies. You'll find 10x as many defects.

(edit And I'm assuming that localStorage is almost never really necessary for these sites, but that some bit of the framework tests for it without the developer even realizing it. So yes, I consider that a defect.)

Re:Show HN: GeoScreenshot – Test your website from many loca... by gavinpc on Sunday September 11, 2016 @11:09PM (#12476945)
...for example, the first Show HN on the front page right now. Doesn't work at all when cookies are blocked—it just renders some stars and some chrome.

But okay, I'll run it in another browser. Wow, it's a really cool WebGL visualization of global temperatures. And what is it using localStorage for? It sets one key called `runOnce` to `true`. I think that could be considered optional. Easy to fix, if they knew about it.

Re:Show HN: GeoScreenshot – Test your website from many loca... by callumprentice on Sunday September 11, 2016 @11:52PM (#12477075)
I'm looking to see if I can fix this now but I don't want to make risky changes while a few people are watching. Will look into it though - Cheers.!
Re:Show HN: GeoScreenshot – Test your website from many loca... by stevekemp on Monday September 12, 2016 @12:31AM (#12477199)
If you're too scared to make changes to your application, that's a great reason to start making sure you have test-cases, and a test-suite.

My toy side-project has a full regression test which is executed before any (automated) deploy/upgrade, for precisely this reason.

Re:Show HN: GeoScreenshot – Test your website from many loca... by kpsychwave on Monday September 12, 2016 @01:48AM (#12477458)
I think this is for a different app, could you please move the comment there?
Re:Show HN: GeoScreenshot – Test your website from many loca... by kpsychwave on Monday September 12, 2016 @01:47AM (#12477454)
My app uses cookie-based sessions (as does HackerNews), so the authenticated section will not work if you have cookies disabled.

I tested in Chrome Win 10, with cookies disabled and privacy badger on and the capture page works fine. I want to debug the issue further to see whats preventing the locations from being displayed.

Have you tried clicking on the gear icon? That shows a list of locations.