зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset 4b2edb2c26d4 (bug 1880582) for causing mochitest failures on test_fullscreen-api-race.html CLOSED TREE
This commit is contained in:
Родитель
ada4e189a4
Коммит
6ad5adeba2
|
@ -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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче