Last modified: 2014-02-10 02:02:26 UTC
1) Visit https://translatewiki.net/wiki/Project:About (HTTPS) 2) Purge it 3) Check http://translatewiki.net/wiki/Project:About source Observed: some hotlinks of Commons files are over HTTPS. (It used to be the opposite, but it seems I can't reproduce by purging on HTTP...) Expected: $wgUseInstantCommons includes protocol-relative resources and doesn't add insecure content to secure pages. On closer inspection this is even weirder, because some resources are protocol-relative and some are not: <img alt="Torchlight kopete.png" src="https://upload.wikimedia.org/wikipedia/commons/5/57/Torchlight_kopete.png" width="135" height="135" /> but <img alt="P economy blue.png" src="/w/images/thumb/1/1a/P_economy_blue.png/135px-P_economy_blue.png" width="135" height="124" srcset="https://upload.wikimedia.org/wikipedia/commons/1/1a/P_economy_blue.png 1.5x, https://upload.wikimedia.org/wikipedia/commons/1/1a/P_economy_blue.png 2x" /> (I've no idea what "srcset" is).
(In reply to comment #0) > (I've no idea what "srcset" is). It's this: Gerrit change #24115
(In reply to comment #1) > (In reply to comment #0) > > (I've no idea what "srcset" is). > > It's this: Gerrit change #24115 So is it a coincidence that, when that fails and no srcset is added, MediaWiki also fails to use the correct (protocol-relative) src?
*** Bug 47653 has been marked as a duplicate of this bug. ***
At first glance, maybe the difference is if it was a thumbnailed file vs if original file.
I cannot reproduce the observations after step 3 any more.
(In reply to comment #5) > I cannot reproduce the observations after step 3 any more. I can still reproduce that some are protocol-relative and some are not.
(In reply to comment #0) > <img alt="P economy blue.png" > src="/w/images/thumb/1/1a/P_economy_blue.png/135px-P_economy_blue.png" > width="135" height="124" > srcset="https://upload.wikimedia.org/wikipedia/commons/1/1a/P_economy_blue. > png > 1.5x, https://upload.wikimedia.org/wikipedia/commons/1/1a/P_economy_blue.png > 2x" /> I don't know why we're discussing what protocols are being used - why is the src of this a local resource but the srcset pointing to commons?