Connection downgrade from https to http in Firefox

Note to self, when calling a page over https, all the connections created by javascript must also be over https. Otherwise, Firefox will not try to connect without, unfortunately, even complaining.

I got hit by this when trying Kibana 3 at work yesterday and it took me quite some time to realize what was happening.