mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-23 10:15:41 +00:00
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:
parent
8a0f6c5ee5
commit
d4fbdca261
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user