Bug 853356 - gUM video prompt for sandbox testcase. r=amarchesini

This commit is contained in:
Alfredo Yang 2014-02-09 15:34:44 -05:00
parent bbd218f9fe
commit 4e361eab71

View File

@ -48,15 +48,19 @@ function addChromeEventListener(type, listener) {
function checkPromptEvent(prompt_evt) {
let detail = prompt_evt.detail;
if (detail.permission == "audio-capture") {
sendAsyncMessage("permission.granted", "audio-capture");
test_counts--;
} else if (detail.permission == "desktop-notification") {
sendAsyncMessage("permission.granted", "desktop-notification");
test_counts--;
} else if (detail.permission == "geolocation") {
sendAsyncMessage("permission.granted", "geolocation");
test_counts--;
if (detail.permissions) {
if ("audio-capture" in detail.permissions) {
sendAsyncMessage("permission.granted", "audio-capture");
test_counts--;
}
if ("desktop-notification" in detail.permissions) {
sendAsyncMessage("permission.granted", "desktop-notification");
test_counts--;
}
if ("geolocation" in detail.permissions) {
sendAsyncMessage("permission.granted", "geolocation");
test_counts--;
}
}
if (!test_counts) {