mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 853356 - gUM video prompt for sandbox testcase. r=amarchesini
This commit is contained in:
parent
bbd218f9fe
commit
4e361eab71
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user