
Ensure that `performOcclusionStateUpdates` and `setWebContentsVisibility` check if content::GetContentClient() is nullptr before proceeding. Add necessary safeguards to prevent the crash when content::GetContentClient() is nullptr. Bug: 385901565 Change-Id: I336982157f115517343db38223e4aabdcb6afa89 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6110550 Reviewed-by: Leonard Grey <lgrey@chromium.org> Reviewed-by: Leon Han <shulianghan@microsoft.com> Commit-Queue: Lichen Liu <lichenliu@microsoft.com> Cr-Commit-Position: refs/heads/main@{#1403344}