Created attachment 802767 [details] sample-html.tar.gz User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:26.0) Gecko/20100101 Firefox/26.0 (Beta/Release) Build ID: 20130826185301 Steps to reproduce: 1. New a audio tag element 2. Create a mediaElementSourceNode 3. Connect it to audioContext.destination 4. Assign audio element a local relative path, like sound/sample.ogg 5. play Actual results: Audio can be played correctly Expected results: No audio is played
Created attachment 802780 [details] sample-html.tar.gz
Component: Untriaged → Web Audio
Product: Firefox → Core
Version: 26 Branch → Trunk
This is expected I think, because we respect CORS rules.
Please reopen if you disagree.
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → INVALID
(In reply to :Ehsan Akhgari (needinfo? me!) from comment #4) > Please reopen if you disagree. Couldn't that fail in a packaged app then? See the email discussion about on this for more detail.
(In reply to Jason Smith [:jsmith] from comment #5) > (In reply to :Ehsan Akhgari (needinfo? me!) from comment #4) > > Please reopen if you disagree. > > Couldn't that fail in a packaged app then? See the email discussion about on > this for more detail. I couldn't understand from those emails whether the issue in the failing tests is related to CORS or not. We need more detailed bugs on file, but I thought CORS does work in packages apps?
Flags: needinfo?(ehsan) → needinfo?(jonas)
Since createMediaElementSourceNode() can work in package app, I will file a new bug for rest of the fail test.
You can do CORS requests from a packaged app yes. The only problem is if the server only wants to share a CORS response with a particular packaged app since we don't have a good way to identify a packaged apps. I.e. packaged apps doesn't have good origins. But for servers that are fine with sharing a file with anyone, CORS from packaged apps should work fine.
You need to log in before you can comment on or make changes to this bug.