Bug 1719088 - Use document.exitFullscreen instead of traversing the tree. r=aklotz

We already have a method to do this in platform, let's use it.

Differential Revision: https://phabricator.services.mozilla.com/D120409
This commit is contained in:
Agi Sferro 2021-07-23 16:54:15 +00:00
Родитель 49d51fcf01
Коммит 9ddb8fe28a
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -120,7 +120,7 @@ class GeckoViewContent extends GeckoViewModule {
switch (aEvent) {
case "GeckoViewContent:ExitFullScreen":
this.sendToAllChildren("GeckoView:DOMFullscreenExited");
this.browser.ownerDocument.exitFullscreen();
break;
case "GeckoView:ClearMatches": {
this._clearMatches();