wyozi / wmc

Wyozi Media Center is a media player for Garry's Mod
GNU General Public License v3.0
3 stars 1 forks source link

Soundcloud sometimes causing crashes. #33

Closed omgomgya closed 10 years ago

omgomgya commented 10 years ago

When playing a soundcloud url this error occurs and somtimes causes crashes.: [HTML] Unable to post message to https://w.soundcloud.com. Recipient has origin null.

[HTML] Unsafe JavaScript attempt to access frame with URL data:text/html;charset=utf-8,%3C%21DOCTYPE%20html%3E%0A%3Chtml%3E%3Chead%3E%3C%2Fhead%3E%3Cbody%3E%0A%20%20%3Ciframe%20%0A%20%20%09%09%20%20id%3D%22sciframe%22%0A%09%09%20%20width%3D%22100%25%22%0A%09%09%20%20height%3D%22465%22%0A%09%09%20%20scrolling%3D%22no%22%0A%09%09%20%20frameborder%3D%22no%22%3E%0A%20%20%3C%2Fiframe%3E%0A%0A%20%20%3Cscript%20src%3D%22http%3A%2F%2Fw.soundcloud.com%2Fplayer%2Fapi.js%22%3E%3C%2Fscript%3E%0A%20%20%3Cscript%3E%0A%09var%20widgetUrl%20%3D%20%22https%3A%2F%2Fsoundcloud.com%2Ffirepowerrecs%2F2-datsik-hold-it-down-feat%22%3B%0A%0A%09var%20iframe%20%3D%20document.getElementById%28%22sciframe%22%29%3B%0A%09iframe.src%20%3D%20%22http%3A%2F%2Fw.soundcloud.com%2Fplayer%2F%3Furl%3D%22%20%2B%20widgetUrl%3B%0A%09var%20widget%20%3D%20SC.Widget%28iframe%29%3B%0A%0A%09%2F%2Fwindow.onload%20%3D%20function%28%29%20%7B%0A%09%09var%20widgetOptions%20%3D%20%7B%0A%09%09%20%20%22auto_advance%22%3A%20true%2C%0A%09%09%20%20%22auto_play%22%3A%20true%0A%09%09%7D%3B%0A%09%09widget.load%28widgetUrl%2C%20widgetOptions%29%3B%0A%09%09%0A%09%2F%2F%7D%0A%0A%09widget.bind%28SC.Widget.Events.LOAD_PROGRESS%2C%20function%20onLoadProgress%20%28e%29%20%7B%0A%09%09if%20%28e.loadedProgress%20%26%26%20e.loadedProgress%20%3D%3D%3D%201%29%20%7B%0A%09%09%09widget.seekTo%280%29%3B%0A%09%09%09widget.unbind%28SC.Widget.Events.LOAD_PROGRESS%29%3B%0A%09%09%7D%0A%09%7D%29%3B%0A%0A%09function%20setSoundcloudVolume%28vol%29%20%7B%0A%09%20%20widget.setVolume%28vol%29%3B%0A%09%7D%0A%20%20%3C%2Fscript%3E%3C%2Fbody%3E%3C%2Fhtml%3E%0A from frame with URL https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/140783718&auto_advance=true&auto_play=true. Domains, protocols and ports must match.

wyozi commented 10 years ago

Really hard for me to debug this (the stuff you pasted isn't related). If you find a reliable way to reproduce it, then we can talk.