mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 798980 - Band-aid to crash Camera app instead of the phone. r=cjones
This commit is contained in:
parent
50f353ebd7
commit
81303fe1f7
@ -1022,6 +1022,11 @@ TabParent::AllocPRenderFrame(ScrollingBehavior* aScrolling,
|
||||
MOZ_ASSERT(ManagedPRenderFrameParent().IsEmpty());
|
||||
|
||||
nsRefPtr<nsFrameLoader> frameLoader = GetFrameLoader();
|
||||
if (!frameLoader) {
|
||||
NS_ERROR("Can't allocate graphics resources, aborting subprocess");
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
*aScrolling = UseAsyncPanZoom() ? ASYNC_PAN_ZOOM : DEFAULT_SCROLLING;
|
||||
return new RenderFrameParent(frameLoader,
|
||||
*aScrolling,
|
||||
|
Loading…
Reference in New Issue
Block a user