зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
49d51fcf01
Коммит
9ddb8fe28a
|
@ -120,7 +120,7 @@ class GeckoViewContent extends GeckoViewModule {
|
||||||
|
|
||||||
switch (aEvent) {
|
switch (aEvent) {
|
||||||
case "GeckoViewContent:ExitFullScreen":
|
case "GeckoViewContent:ExitFullScreen":
|
||||||
this.sendToAllChildren("GeckoView:DOMFullscreenExited");
|
this.browser.ownerDocument.exitFullscreen();
|
||||||
break;
|
break;
|
||||||
case "GeckoView:ClearMatches": {
|
case "GeckoView:ClearMatches": {
|
||||||
this._clearMatches();
|
this._clearMatches();
|
||||||
|
|
Загрузка…
Ссылка в новой задаче