Hi,
I'm working on bug 853356 which requires to pass new permissions 
'audio-capture' and 'video-capture' together to permission prompt dialog via 
getUserMedia.

My current implementation is to replaced the string 'type' [1] with a string 
array 'types'.

 interface nsIContentPermissionRequest : nsISupports {
-   */
-  readonly attribute ACString type;

+  void types([optional] out unsigned long aLength,
+             [array, size_is(aLength), retval] out wstring aTypes);

However, it introduces concerns to pass 2+ permissions in a request [2].

What do you think about it?
Any suggestion is welcome. Thanks.


[1] http://dxr.mozilla.org/mozilla-central/source/dom/interfaces
/base/nsIContentPermissionPrompt.idl
[2] https://bugzilla.mozilla.org/show_bug.cgi?id=853356#c54
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to