Page MenuHomePhabricator

Cross origin issue for cortado+mwEmbed player
Closed, InvalidPublic

Description

In the new webplayer, web controls are used for Cortado. On Safari, i get the following error.

Error: java.security.PrivilegedActionException: sun.plugin.liveconnect.OriginNotAllowedException: JavaScript is not from the same origin as the Java code, caller=http://commons.wikimedia.org/wiki/Main_Page, callee=http://upload.wikimedia.org/jars/cortado.jar
at java.security.AccessController.doPrivileged(Native Method)
at sun.plugin.liveconnect.SecureInvocation.CallMethod(SecureInvocation.java:128)
at sun.plugin.liveconnect.SecureInvocation.access$300(SecureInvocation.java:51)
at sun.plugin.liveconnect.SecureInvocation$CallMethodThread.run(SecureInvocation.java:177)
Caused by: sun.plugin.liveconnect.OriginNotAllowedException: JavaScript is not from the same origin as the Java code, caller=http://commons.wikimedia.org/wiki/Main_Page, callee=http://upload.wikimedia.org/jars/cortado.jar
at sun.plugin.liveconnect.SecureInvocation.checkLiveConnectCaller(SecureInvocation.java:393)
at sun.plugin.liveconnect.SecureInvocation.access$000(SecureInvocation.java:51)
at sun.plugin.liveconnect.SecureInvocation$2.run(SecureInvocation.java:133)
... 4 more

This should probably be try/caught and then switch back to Cortado native controls. It might be possible that with CORS (bug 20298) this problem could be dealt with, but I haven't tested this, nor been able to confirm it.


Version: unspecified
Severity: enhancement

Details

Reference
bz22704

Event Timeline

bzimport raised the priority of this task from to Lowest.Nov 21 2014, 10:58 PM
bzimport set Reference to bz22704.

[As per bug 54063 comment 2 tentatively moving to TimedMediaHandler component + setting to lowest priority && unconfirmed, as this was filed against old code. Might be worth to just close if nobody confirms that this is still a problem.]

brion claimed this task.
brion subscribed.

Closing this out as Cortado stuff is pretty solidly broken and is being replaced. See T31814 for general Safari+TMH brokenness issue, to be resolved soon with the ogv.js JavaScript replacement for Cortado java applet.