345388 Crashes frequently on 10.3, often related to manipulating popup windows. Crashes [@ CoreGraphics.203.30.0 + 0x13ceb0] [@ nsImageMac::DrawToImage] [@ CGImageGetData] [@ CGImageEPSRepRelease] due to memory corruption. Don't fade out pop-ups to hide them on 10.3. r=josh

This commit is contained in:
mark%moxienet.com 2006-08-29 15:28:33 +00:00
parent 8a0f6c5ee5
commit d4fbdca261

View File

@ -1130,7 +1130,16 @@ NS_IMETHODIMP nsMacWindow::Show(PRBool aState)
#endif
}
}
if (mWindowType == eWindowType_popup && transitionFunc) {
// Bug 345388: hiding windows using the async
// TransitionWindowWithOptions causes memory corruption on 10.3, even
// though the API is supported there. Only fade these windows out on
// 10.4 or later, which are able to handle it without corruption or
// crashing.
if (mWindowType == eWindowType_popup && transitionFunc
#if MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_4
&& nsToolkit::OSXVersion() >= MAC_OS_X_VERSION_10_4_HEX
#endif
) {
mDeathGripDuringTransition = this;
TransitionWindowOptions transitionOptions = { version : 0,
duration : 0.2,