mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-07 16:28:38 +09:00
Bug 1467363 - Protect access to mTransparentSurface with a lock.
This commit is contained in:
parent
6d43998298
commit
80e25ee7e5
3 changed files with 14 additions and 0 deletions
|
|
@ -320,6 +320,8 @@ bool nsWindow::OnPaint(HDC aDC, uint32_t aNestingLevel)
|
|||
#if defined(MOZ_XUL)
|
||||
// don't support transparency for non-GDI rendering, for now
|
||||
if (eTransparencyTransparent == mTransparencyMode) {
|
||||
// This mutex needs to be held when EnsureTransparentSurface is called.
|
||||
MutexAutoLock lock(mBasicLayersSurface->GetTransparentSurfaceLock());
|
||||
targetSurface = mBasicLayersSurface->EnsureTransparentSurface();
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue