Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[OT-PW] Fix a crash in a layout test
Currently the layout test parse-input-arguments-018.https.html is crashing with virtual/threaded which runs off-thread paint worklet. The problem is that CSSPaintImageGeneratorImpl::HasDocumentDefinition does not check whether the definition is valid or not. In particular, PaintWorkletProxyClient::RegisterCSSPaintDefinition can register two different CSSPaintDefinition which would throw an exception. But the |document_definition_map_| will still have an entry for this CSSPaintDefinition and the value of the entry is nullptr. In this case, the CSSPaintImageGeneratorImpl::HasDocumentDefinition should return false. Bug: 957459 Change-Id: Ic192676e537ce6b09bf56f244db61dac68598bff Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1662592 Commit-Queue: Xida Chen <xidachen@chromium.org> Reviewed-by: Yi Gu <yigu@chromium.org> Cr-Commit-Position: refs/heads/master@{#670217}
- Loading branch information