Closed Bug 863054 Opened 11 years ago Closed 11 years ago

Soundcloud API mixed content

Categories

(Webmaker Graveyard :: Popcorn Maker, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: bobby, Assigned: thecount)

References

(Blocks 1 open bug, )

Details

(Keywords: verifyme, Whiteboard: [mcb-ie][mcb-thirdparty-notified])

Try using http://soundcloud.com/hizzlecrift/daft-punk-get-lucky-with-intro as a media source in Nightly.

No errors, but no soundcloud object on the page either (reported by Scott, so it might be shaky evidence, really).

Maybe mixed-content problems?
Yup, def mixed content problems.

http://blog.mozilla.org/tanvi/2013/04/10/mixed-content-blocking-enabled-in-firefox-23/

The little mixed content shield does show up, and clicking it and letting it happen fixes the problem.
I did some more digging, and isolated it to the SC.get( "/resolve" ) call in the soundcloud wrapper. I setup a test page at https://jbuck.ca:4433/soundcloud.html which recreates the same error on Firefox Nightly. I pinged Paul Osman on twitter about this issue, and pointed at my test page. This can really only be fixed by SoundCloud since it's internal to https://connect.soundcloud.com/sdk.js .
Status: NEW → ASSIGNED
Any progress update?
Nah, just re-tested with my example and it's hitting the mixed content blocker. I pinged Paul Osman again, and I guess we'll just have to wait and see!
When I go to Soundcloud, Firefox Nightly is trying to play the sound out of the wrong device instead of using the default device configured in Windows. No other website plays audio out of the wrong device (Pandora, Spotify, YouTube all work with zero issues). IE 11 Preview, Chrome 29 Dev both work just fine w/ Soundcloud, so it doesn't appear to be a Windows issue. I don't see a mixed content warning icon when I visit. Same thing happens in Safe Mode.
That sounds like a different issue from our bug here, where the the SoundCloud API doesn't work on an https site. Could you file a new bug with your issue?
Summary: Soundcloud not working in Firefox Nightly → Soundcloud API mixed content
Is this still happening?
Which mozilla affiliated sites does this affect?  Is SoundCloud used on webmaker?
Blocked content:

Blocked loading mixed active content "http://api.soundcloud.com/resolve?url=https%3A%2F%2Fsoundcloud.com%2Fmacklemore%2Fmacklemore-x-ryan-lewis-cant&client_id=YOUR_CLIENT_ID&format=json&_status_code_map[302]=200" @ https://connect.soundcloud.com/sdk.js:1

It is not blocked in chrome or chrome canary (chrome doesn't block XHR yet, so perhaps this is an xhr request).  Haven't tested IE.
Blocks: 844556
Whiteboard: [mcb-ie?]
(In reply to Tanvi Vyas [:tanvi] from comment #10)
> It is not blocked in chrome or chrome canary (chrome doesn't block XHR yet,
> so perhaps this is an xhr request).  Haven't tested IE.

I verified that the sound is blocked in IE10 too.
Whiteboard: [mcb-ie?] → [mcb-ie]
Yeah, Webmaker uses SoundCloud. That test page I setup just demonstrates the failing API call in a less noisy fashion.
Do we have a SoundCloud contact?
Whiteboard: [mcb-ie] → [mcb-ie][mcb-no-contact]
(In reply to Tanvi Vyas [:tanvi] from comment #13)
> Do we have a SoundCloud contact?

I pinged their Support Team and their CEO on Twitter with a link back to this bug.
I emailed Paul Osman who works at Soundcloud and should know who to get on this.
Whiteboard: [mcb-ie][mcb-no-contact] → [mcb-ie][mcb-thirdparty-notified]
This looks like a 3rd party issue. Can I untrack this from "mozorg-mixedcontent"
(In reply to Jon Buckley [:jbuck] from comment #12)
> Yeah, Webmaker uses SoundCloud. That test page I setup just demonstrates the
> failing API call in a less noisy fashion.

Per comment 12, this is an issue for webmaker, and hence is blocking both the Mozilla Affiliated and non-mozilla Mixed Content tracking bugs.
Brian/lsblakk, did you ever hear back from Soundcloud?
(In reply to Adam Muntner :adamm from comment #18)
> Brian/lsblakk, did you ever hear back from Soundcloud?

Negative. Nothing heard as a result of my Twitter messages, so I just sent them an email via http://help.soundcloud.com/customer/portal/emails/new with a link to this bug. I'll let you know if I hear back from them unless they show up here first.
(In reply to Adam Muntner :adamm from comment #18)
> Brian/lsblakk, did you ever hear back from Soundcloud?

This should be fixed now. Please retry the test case: https://jbuck.ca:4433/soundcloud.html

The JavaScript SDK now uses window.location.protocol, which should fix the mixed-content warnings.
Thank you Paul!  Let's get this verified and updated to RESOLVED if all's well now.
Keywords: verifyme
The test case is working, and I can use Soundcloud with Popcorn Maker in Nightly: https://jonatmozilla.makes.org/popcorn/19lj
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.