ladybird/Ladybird/AppKit/Application
Timothy Flynn 70830b711e Ladybird: Protect some application commands against non-Tab key windows
Currently, the only NSWindow type in the AppKit chrome is the Tab. Once
we have other window types (e.g. Inspector), commands which assume they
are used on a Tab will either crash or behave weirdly.

This changes the createNewTab: command to accept the tab from which the
new tab is created, rather than assuming that tab is the key window. So
if some JS on a page calls window.open() while a non-Tab window is key,
the new tab will be opened within the same tab group.

This also changes closeCurrentTab: to work on any key window. Regardless
of whether the key window is a Tab or some other window, pressing cmd+W
should just close that window.
2023-08-29 08:11:11 -04:00
..
Application.h Ladybird: Implement an AppKit chrome for macOS :^) 2023-08-22 21:36:19 -04:00
Application.mm Ladybird: Implement an AppKit chrome for macOS :^) 2023-08-22 21:36:19 -04:00
ApplicationDelegate.h Ladybird: Protect some application commands against non-Tab key windows 2023-08-29 08:11:11 -04:00
ApplicationDelegate.mm Ladybird: Protect some application commands against non-Tab key windows 2023-08-29 08:11:11 -04:00
EventLoopImplementation.h Ladybird: Implement an AppKit chrome for macOS :^) 2023-08-22 21:36:19 -04:00
EventLoopImplementation.mm Ladybird: Ensure we release CoreFoundation references 2023-08-23 19:16:53 -04:00