Issue #2472 - Part 6: Fire cancel event and close modal <dialog> on [ESC]

This implementation is different than Mozilla, not indirectly queueing cancel
tasks to be arbitrarily ordered, but rather synchronously close in reverse
top layer order.
This commit is contained in:
Moonchild 2024-05-06 12:33:09 +02:00 committed by roytam1
commit 87a7cf7332
6 changed files with 49 additions and 0 deletions

View file

@ -918,6 +918,9 @@ public:
// flag.
bool SetFullscreenElement(Element* aElement);
// Cancel the dialog element if the document is blocked by the dialog
void TryCancelDialog();
// Returns the top element from the full-screen stack.
Element* GetTopLayerTop() override;
// Return the fullscreen element in the top layer