Redirect should not circumvent same-origin restrictions

Check whether we have access to the audio data when the format is set.
At this point we have enough information to determine this. The old approach
based on when the src was changed was incorrect because at the point, we
only know the new src; none of the response headers have been read yet.

This new approach also removes the incorrect message reported in 619114.

Bug: 826552, 619114
Change-Id: I95119b3a1e399c05d0fbd2da71f87967978efff6
Commit-Queue: Raymond Toy <>
Reviewed-by: Yutaka Hirano <>
Reviewed-by: Hongchan Choi <>
Cr-Commit-Position: refs/heads/master@{#564313}
7 files changed