https://bugzilla.wikimedia.org/show_bug.cgi?id=22704

           Summary: Cross origin issue for cortado+mwEmbed player
           Product: mwEmbed
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: Normal
         Component: Video player
        AssignedTo: d...@ucsc.edu
        ReportedBy: hart...@videolan.org


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.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to