Backed out changeset 4b2edb2c26d4 (bug 1880582) for causing mochitest failures on test_fullscreen-api-race.html CLOSED TREE

This commit is contained in:
Norisz Fay 2024-08-27 09:02:12 +03:00
Родитель ada4e189a4
Коммит 6ad5adeba2
1 изменённых файлов: 2 добавлений и 7 удалений

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

@ -597,6 +597,7 @@ void nsCocoaWindow::Destroy() {
if (mParent) {
mParent->RemoveChild(this);
}
nsBaseWidget::OnDestroy();
if (mInFullScreenMode && !mInNativeFullScreenMode) {
// Keep these calls balanced for emulated fullscreen.
@ -609,14 +610,8 @@ void nsCocoaWindow::Destroy() {
// to be garbage-collected.
if (mWindow && mWindowMadeHere) {
CancelAllTransitions();
// TODO: Restore this (possibly with a delay) after confirming the effect
// of its removal.
// DestroyNativeWindow();
DestroyNativeWindow();
}
// Call OnDestroy last, since it may delete the widget itself.
nsBaseWidget::OnDestroy();
}
void* nsCocoaWindow::GetNativeData(uint32_t aDataType) {