A couple script errors on shots details page #1481
Comments
Note sendEvent and stubbed ga are fine, just messages about analytics being sent. I'm guessing the React issue is a timezone issue. |
@ianb : I think the part I found mildly concerning was the |
The undefined is also normal, as there are up to three things that can be specified with a ping, but not all of them have to be specified. |
github.com showing up as the filename is concerning. Maybe we should end every url with <shotid>.html instead, and put the domain towards the beginning of the url? |
Eh, github.com is just a guess at the name of the page given its id. It's just funny-looking, it doesn't matter. But why is there a data URL script? I don't see that error on the page. That all seems very suspicious. Do you have an add-on installed that might be injecting something? |
I think the name does matter, because someone that doesn't know what is going on might assume that we were trying to do something nefarious by posing as github. The data url might be injected by google analytics. |
After a little base64 decoding (surprisingly hard given just a chunk in a screenshot), but apparently it's uBlock: https://www.reddit.com/r/techsupport/comments/3zi5jq/what_does_this_javascript_code_do_and_why_was/ It's acceptable that GA is disabled and this script is not loaded in this case. We only need to make sure the lack of a |
Thoughts on the timezone: I guess we need to render in UTC, including on the client, then "update" to be local time. I'd rather do that directly in the time component, but I'm not sure quite how. Something with setState? Probably just a bool, then I guess |
I opened #1500 for the timezone issue, which I think is the only thing left here. |
https://pageshot.dev.mozaws.net/__version__
Steps to reproduce:
Actual results:
2 errors:
Note, even though the screenshot says "github.com:1", it's actually from
https://pageshot.dev.mozaws.net/S2hEXUGyma6zrIim/github.com
.(client) title="Sep 7 2016, 3pm" data-reactid="1
(server) title="Sep 7 2016, 10pm" data-reactid="
Also from the screenshot is an odd console info/log of
sendEvent( web visit visit undefined )
andstubbed ga( send event web visit visit undefined )
. I say "odd" because (a) I'm uneducated and ignorant, and (b) "visit" is twice twice, and (c) has "undefined", which I usually find suspicious.— Separate bugs available upon request.
The text was updated successfully, but these errors were encountered: