summaryrefslogtreecommitdiffstats
path: root/widget/windows/nsWindowGfx.cpp
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-09-11 11:55:16 +0200
committerwolfbeast <mcwerewolf@gmail.com>2018-09-11 11:55:16 +0200
commit6ded94d38cf94a5da8d6a73dfbfca2acb0d719cc (patch)
treef78a8681518066053e5c301fcf0696ea161e5bf0 /widget/windows/nsWindowGfx.cpp
parent1de1ce5770f45c0b8601a8148d622b272b4ccdbb (diff)
downloadUXP-6ded94d38cf94a5da8d6a73dfbfca2acb0d719cc.tar
UXP-6ded94d38cf94a5da8d6a73dfbfca2acb0d719cc.tar.gz
UXP-6ded94d38cf94a5da8d6a73dfbfca2acb0d719cc.tar.lz
UXP-6ded94d38cf94a5da8d6a73dfbfca2acb0d719cc.tar.xz
UXP-6ded94d38cf94a5da8d6a73dfbfca2acb0d719cc.zip
Bug 1467363 - Protect access to mTransparentSurface with a lock.
Diffstat (limited to 'widget/windows/nsWindowGfx.cpp')
-rw-r--r--widget/windows/nsWindowGfx.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/widget/windows/nsWindowGfx.cpp b/widget/windows/nsWindowGfx.cpp
index a88631f89..9b303a0f2 100644
--- a/widget/windows/nsWindowGfx.cpp
+++ b/widget/windows/nsWindowGfx.cpp
@@ -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