зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
b63c589e27
Коммит
3f339deda4
|
@ -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",
|
||||
|
|
Загрузка…
Ссылка в новой задаче