jetpack icon indicating copy to clipboard operation
jetpack copied to clipboard

An embed from videopress.com gives a mixed content warning on Firefox

Open enkrates opened this issue 12 years ago • 12 comments

I run my wordpress with SSL and I got a mixed content warning while looking at the Jetpack admin page. The Firefox developer tools said -

"Blocked loading mixed active content http://s0.videopress.com/player.swf?v=1.02"

So, I searched for that URL in my Jetpack source and found it in just one place, line 336 in module-info.php in the function sharedaddy_more_info_connected(). Normally, I could just change the url and leave out the 'http' to make it compatible with an SSL page, but in this case using the videopress url with https triggers another warning, also, as it seems to use a CDN SSL certificate which really brings us back to the original problem of broken under SSL.

So, normally I would just submit a pull request with a better url, but in this case I don't know what a more secure url would be for videopress.com. As a result, I can only submit an issue and ask the folks who know more than I do to use an SSL compatible url.

enkrates avatar Jan 23 '14 22:01 enkrates

Yeah, the s0 s1 and s2 are all non https static sub domains. I think stats has a caveat for the SSL prefix, will check when I get home.

georgestephanis avatar Jan 23 '14 23:01 georgestephanis

That's great, thank you.

enkrates avatar Jan 24 '14 19:01 enkrates

It looks like the SSL subdomain for VideoPress is actually on a different domain --

https://v0.wordpress.com/player.swf?v=1.02

It does look like the video is sized a bit funny in it though when it's over https -- but for the moment anyways, progress.

I'll dig in a bit further.

georgestephanis avatar Jan 24 '14 23:01 georgestephanis

A couple files being pulled in via the SWF file are HTTP assets -- notably it pulls the following:

http://wptv.files.wordpress.com/2010/07/wptv.png
http://flash.quantserve.com/quantv2.swf?media=video&pageURL=https%3A%2F%2Fv0.wordpress.com%2Fplayer.swf%3Fv%3D1.02%26ssl%3Dtrue&publisherId=p-18-mFEk4J448M&qcv=5.1.2&videoId=OO4thna8&url=https%3A%2F%2Fv0.wordpress.com%2Fplayer.swf%3Fv%3D1.02%26ssl%3Dtrue&flashPlayer=MAC%2012%2C0%2C0%2C41&title=VideoPress%20demo&
http://flash.quantserve.com/pixel.swf?r=8236&media=video&event=embedded&pageURL=https%3A%2F%2Fv0.wordpress.com%2Fplayer.swf%3Fv%3D1.02%26ssl%3Dtrue&publisherId=p-18-mFEk4J448M&qcv=5.1.2&videoId=OO4thna8&url=https%3A%2F%2Fv0.wordpress.com%2Fplayer.swf%3Fv%3D1.02%26ssl%3Dtrue&flashPlayer=MAC%2012%2C0%2C0%2C41&title=VideoPress%20demo&

as well as https://videos.files.wordpress.com/crossdomain.xml -- which returns a code 410 GONE

The two quantcast includes should be dropped shortly (I'm surprised they're still there, honestly), which just leaves the crossdomain.xml asset issue and the preview image loading from the wrong asset.

georgestephanis avatar Jan 24 '14 23:01 georgestephanis

@georgestephanis I'm still seeing "NetworkError: 410 Gone - https://videos.files.wordpress.com/crossdomain.xml" for SSL VideoPress, e.g.: https://v0.wordpress.com/player.swf?v=1.03&guid=OO4thna8

Also, you mention funny sizing issues over SSL. I'm not sure if the following is what you're referring to or not, but I'm seeing a problem where the thumbnail image in the flash player is not being scaled to fill the flash player container when using SSL (whereas the image is handled properly over http). You can see the difference comparing the two following urls, and I'll include an image below as well: https://v0.wordpress.com/player.swf?v=1.03&guid=OO4thna8 http://v0.wordpress.com/player.swf?v=1.03&guid=OO4thna8

VideoPress SSL Thumbnail Bug

Would you prefer that I create a new, separate Issue for the thumbnail bug, or do you want to leave it as part of this Issue? Either way, it'd be awesome to get this fixed sooner than later, as it doesn't look very professional.

EnigmaSolved avatar Nov 04 '14 20:11 EnigmaSolved

@georgestephanis The "NetworkError: 410 Gone - https://videos.files.wordpress.com/crossdomain.xml" error via SSL seems to be fixed (ie, that NetworkError is no longer present).

Also, the thumbnail image is now properly scaled to fill the player when using SSL.

I'm also not seeing any mixed content warnings in Jetpack.

So I'm thinking maybe this issue can be closed now (unless I'm missing something)?

EnigmaSolved avatar Feb 20 '15 17:02 EnigmaSolved

I have inherited a site that has a bunch of videos embedded using the VideoPress plugin in this format:

[youtube id="gaxOMN3OOR8" width="620" height="360"]

I recently installed an SSL on the site, and since that time, the videos no linger show on the pages. It looks like the plugin is not forcing/allowing an https link for these shortcodes.

I have had to revoke the SSL as an immeidate solution to this, but wanted to let you know about this issue as I can't find any setting that will allow the plugin to force a redirect to https?

In case you get this before the SSL comes off you can see the empty space here: https://travelwithagingparents.com/why-mom-likes-to-travel-with-me-video/

and the same page on the staging site which has no ssl: http://9ca.b57.myftpupload.com/why-mom-likes-to-travel-with-me-video/

tlctara avatar Mar 11 '16 23:03 tlctara

@tlctara I'm seeing a SSL cipher suite issue when I try to pull up the link in question --

2016-03-11 19_29_50-https___travelwithagingparents com_why-mom-likes-to-travel-with-me-video_ failed

That being said, the issue you're having seems to be with the YouTube shortcode bundled in Jetpack -- nothing to do with VideoPress.

Our YouTube shortcode is mostly based off using the URL to the video -- https://en.support.wordpress.com/videos/youtube/ -- if you are using shortcodes that use that id attribute as you posted above, my guess is that they're being processed through a separate plugin -- not Jetpack -- that may be hijacking the [youtube] shortcode and taking priority over Jetpack's implementation.

georgestephanis avatar Mar 12 '16 00:03 georgestephanis

Thanks. Client told me she had used the plugin to insert the YouTube IDs ... I had checked it and don't see any other related plugin, saw this support thread and assumed it was related. Sorry to bother you!

tlctara avatar Mar 12 '16 01:03 tlctara

Closing this as wontfix since the legacy flash player is slowly being deprecated, and won't be worked on much in the future.

Related: #2500

jeherve avatar May 17 '16 23:05 jeherve

Well, last I checked (https://github.com/Automattic/jetpack/issues/124#issuecomment-75286236) the issue was resolved anyway. :)

EnigmaSolved avatar May 17 '16 23:05 EnigmaSolved

Even better :) 👍

jeherve avatar May 17 '16 23:05 jeherve