IOS Firefox CORS Support For Video And WebGL




3 years ago
3 years ago


(Reporter: electroteque, Unassigned)


Firefox Tracking Flags

(Not tracked)




3 years ago
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.116 Safari/537.36
Firefox for Android

Steps to reproduce:

Hi there it seems Firefox IOS has the same CORS flaws as Webkit/Safari does rendering WebVR/WebGL useless. 

It has been great pain to try and get Safari and IOS working with WebGL/WebVR with CDN hosted videos which is the standard way to deliver video. 

The Webkit ticket for just this is here

It would be really good if Firefox on IOS at least provides CORS support so WebGL actually works on IOS with cross domain video without needing proxy work arounds that will never scale. 

It will take too long for Webkit to fix this and finally get released in IOS because lack of intervention from Apple. 

An example of the problem is here using raw WebGL functions not three.js

I've yet to even check if Firefox can allow inline video playback. That is a deal break for WebGL to work on Iphone also. Non inline video will completely hide the WebGL canvas rendering WebVR useless. 

Actual results:

CORS security errors no doubt. I can't see anything because Firefox IOS lacks remote debugging ! 

Expected results:

An example of an integrated toggling solution for proxy video playback is here. It will detect there is no CORS support and display a button to toggle to the proxied video

It should hopefully not need to do that.

Comment 1

3 years ago
I forgot to mention as far as WebVR support goes on mobile. Android Firefox nightly is the ONLY browser with full support right now as they just only fixed orientation api bugs there and waiting for a full release.  Android Chrome Dev has WebGL rendering bugs and broken. IOS and Safari is fully broken for VR.


3 years ago
Component: Untriaged → General
Product: Firefox → Firefox for iOS
Version: 43 Branch → unspecified

Comment 2

3 years ago
Confirming Apple's disabling mechanisms force video into a native player for Firefox also, just tested it. Intentional sabotage from the looks of it on their part.   

If there is a way to get both CORS working as for some reason CORs is fully functional on any Firefox browser apart from IOS and to force inline video playback that will make Firefox useful for VR on IOS. Right now IOS is useless. 

VR is exploding right now and I believe it will expose Apple's flaws. 

If the Firefox issues are related to and reliant on Webkit CORS support for WebGL then there might be problems sadly.

Comment 3

3 years ago
I've now confirmed unfortunately Firefox on IOS uses webkit. So it also caught into the Webkit CORS problem rendering WebVR on IOS useless. 

I'm not sure if this is anything you can do unless patch the webkit yourself. 

There is tickets related to this.
Thanks for all the investigation Daniel! Unfortunately we are unable to ship a patched version of WebKit inside Firefox for iOS so we'll need to wait for Apple to address these bugs as part of their OS releases :( Best thing we could do is submit patches to WebKit for the next OS release.

Comment 5

3 years ago
I have been keeping an eye on those tickets to hurry them up. So if possible leave this ticket open and I will notify once it's been committed perhaps. 

You need to log in before you can comment on or make changes to this bug.