mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1186890 - Ensure parent always know when the child exit fullscreen. r=Dolske
This commit is contained in:
parent
97abad403c
commit
36df95aa86
@ -646,6 +646,12 @@ let DOMFullscreenHandler = {
|
||||
case "MozDOMFullscreen:Entered":
|
||||
case "MozDOMFullscreen:Exited": {
|
||||
addEventListener("MozAfterPaint", this);
|
||||
if (!content || !content.document.mozFullScreen) {
|
||||
// If we receive any fullscreen change event, and find we are
|
||||
// actually not in fullscreen, also ask the parent to exit to
|
||||
// ensure that the parent always exits fullscreen when we do.
|
||||
sendAsyncMessage("DOMFullscreen:Exit");
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "MozAfterPaint": {
|
||||
|
@ -38,7 +38,7 @@ STYLE_STRUCTS = [("INHERITED",) + x for x in [
|
||||
("Background", "nullptr", NORMAL_DEP + LENGTH_DEP + COLOR_DEP),
|
||||
("Position", "nullptr", NORMAL_DEP + LENGTH_DEP),
|
||||
("TextReset", "nullptr", NORMAL_DEP + LENGTH_DEP + COLOR_DEP),
|
||||
("Display", "nullptr", NORMAL_DEP + LENGTH_DEP),
|
||||
("Display", "nullptr", NORMAL_DEP),
|
||||
("Content", "nullptr", NORMAL_DEP + LENGTH_DEP),
|
||||
("UIReset", "nullptr", NORMAL_DEP),
|
||||
("Table", "nullptr", NORMAL_DEP),
|
||||
|
Loading…
Reference in New Issue
Block a user