[mediacapture-record] Can .start() throw a SecurityError?

jan-ivar has just created a new issue for 
https://github.com/w3c/mediacapture-record:

== Can .start() throw a SecurityError? ==
The following text is quite troubling it if doesn't (emphasis mine):
> "If at any point the stream's isolation properties change so that 
MediaRecorder is no longer allowed access to it, the UA must stop 
recording, discard any data that it has gathered and throw a 
SecurityError DOMException followed by the stop event. If the UA is 
unable to start recording or at any point is unable to continue 
recording ***(i.e., for reasons other than a security violation)***, 
it must throw an UnknownError DOMException, followed by a 
dataavailable event containing the Blob it has gathered, follwed by 
the stop event."

(Nevermind that it's impossible to "throw a SecurityError" for runtime
 errors, I think it means fire the `error` event.)

If `.start()` doesn't throw `SecurityError` then this is a hole big 
enough to drive an already isolated stream through (since a stream 
doesn't really "change" if it starts out, and stays, isolated).

Please view or discuss this issue at 
https://github.com/w3c/mediacapture-record/issues/55 using your GitHub
 account

Received on Saturday, 16 April 2016 12:00:10 UTC