Bug 1616729 - Show top window's document origin to users when requesting media device permissions. r=geckoview-reviewers,johannh,agi

This is similar to what we do on desktop.

Differential Revision: https://phabricator.services.mozilla.com/D92239
This commit is contained in:
Andreas Pehrson 2020-10-07 21:42:22 +00:00
Родитель b63c589e27
Коммит 3f339deda4
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -137,7 +137,7 @@ class GeckoViewPermission {
}
const dispatcher = GeckoViewUtils.getDispatcherForWindow(win);
const uri = win.document.documentURIObject;
const uri = win.top.document.documentURIObject;
return dispatcher
.sendRequestForResult({
type: "GeckoView:MediaPermission",