Interesting. Loading this in 8.0a10, I see this over and over again. It continuously tries loading this resource and when it fails (with the below javascript error, it tries reloading it again.
[08-21 01:54:45] Torbutton INFO: controlPort >> 650 STREAM 20 SUCCEEDED 6 expyuzz4wqqyqhjn.onion:80JavaScript error: chrome://global/content/browser-child.js, line 447: TypeError: req is null[08-21 01:54:45] Torbutton INFO: tor SOCKS: http://expyuzz4wqqyqhjn.onion/images/icon-TorBrowser.jpg via expyuzz4wqqyqhjn.onion:cd72a84c3bb37bdd021b0d3d82ab051a
For the non-onion connection, the image successfully loads but, again, it continuously refreshes and redownloads the image over and over again:
[08-21 01:58:07] Torbutton INFO: tor SOCKS: https://www.torproject.org/images/icon-TorBrowser.jpg via torproject.org:d50525c6d67ac7cad3d8d820aac12d95[08-21 01:58:07] Torbutton INFO: tor SOCKS: https://www.torproject.org/images/icon-TorBrowser.jpg via torproject.org:d50525c6d67ac7cad3d8d820aac12d95[08-21 01:58:07] Torbutton INFO: tor SOCKS: https://www.torproject.org/images/icon-TorBrowser.jpg via torproject.org:d50525c6d67ac7cad3d8d820aac12d95[08-21 01:58:08] Torbutton INFO: tor SOCKS: https://www.torproject.org/images/icon-TorBrowser.jpg via torproject.org:d50525c6d67ac7cad3d8d820aac12d95[08-21 01:58:08] Torbutton INFO: tor SOCKS: https://www.torproject.org/images/icon-TorBrowser.jpg via torproject.org:d50525c6d67ac7cad3d8d820aac12d95[08-21 01:58:08] Torbutton INFO: tor SOCKS: https://www.torproject.org/images/icon-TorBrowser.jpg via torproject.org:d50525c6d67ac7cad3d8d820aac12d95
I bisected and tracked this down to e05cdec593b6d088427584ce3107c1ab0a85b6d0, our patch for
"Bug #23247 (moved): Communicating security expectations for .onion"
I think this looks good to me. Richard, could you have a second look? I think that's worth inclduing in 8.0 and essentially just code-moving in the .onion case.