[chromium] Null-check m_layerRenderer in CCLayerTreeHostImpl::finishAllRendering()
Created attachment 130448 [details] Patch
This should fix the crash in https://bugs.webkit.org/show_bug.cgi?id=80445. I'm still not quite sure how to construct a good test for it.
Comment on attachment 130448 [details] Patch That works. You might do a CCLayerTreeHostTest that does a draw inside CCLayerTreeHostTestHooks::layout()... /me forgets, has the renderer been initialized by then?
Comment on attachment 130448 [details] Patch I see a clear path where this could happen. If initializing the layer renderer fails, WebViewImpl will call finishAllRendering in response to didRebindGraphicsContext(false). What about a test with a fake proxy that fails to initialize a layer renderer and calls finishAllRendering in response? Are you seeing another case where it could happen?
Yeah, that should do the trick. Will try it...
Created attachment 130456 [details] Patch
I was able to write a more direct unit test - without the CCLayerTreeHostImpl changes, the new unit tests just crashes.
Comment on attachment 130456 [details] Patch Thanks for the test. :)
Committed r109985: <http://trac.webkit.org/changeset/109985>