Null-check LocalFrame::Client() before accessing in LocalWindowProxy
When the frame has already been detached, Client() will be nullptr. Since we can call LocalWindowProxy methods even when detached, e.g. through ToV8ContextEvenIfDetached(), we should null-check the client. This is a band-aid fix, because we actually should not initialize context on a detached frame and change ToV8ContextEvenIfDetached to never force context. However, the proper solution has many risks and needs additional investigation. Bug: 805882 Change-Id: Idcd6bbc0e6eec9b2de53acfb646b30bd9636d797 Reviewed-on: https://chromium-review.googlesource.com/949603 Commit-Queue: Dmitry Gozman <dgozman@chromium.org> Reviewed-by:Kentaro Hara <haraken@chromium.org> Reviewed-by:
Daniel Cheng <dcheng@chromium.org> Reviewed-by:
Yuki Shiino <yukishiino@chromium.org> Cr-Commit-Position: refs/heads/master@{#543266}
Showing
Please register or sign in to comment