Add CHECKs to debug why WebLocalFrameImpl has a detached core frame.
There are Android crashes where sending an orientation change event seems to encounter mutually exclusive facts: - WebLocalFrameImpl::GetFrame() should only return a non-null pointer if the LocalFrame is attached. - Furthermore, GetFrame() and GetFrame()->DomWindow() both return non-null pointers (though GetFrame()->DomWindow() returning non- null does *not* imply the frame is attached). - ScreenOrientationController is looked up as a a LocalDOMWindow supplement, using a non-null DomWindow(). - ScreenOrientationController is an ExecutionContextLifecycleObserver, and uses the DomWindow() helper to look up frames to iterate through. - DomWindow() should only return null once the associated LocalDOMWindow is detached - Yet DomWindow() returns null, contradicting WebLocalFrameImpl... Bug: 1154141 Change-Id: Id4e695a542c47dbd9263db6dcfc3718653bec242 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2566884 Commit-Queue: Daniel Cheng <dcheng@chromium.org> Reviewed-by:Fergal Daly <fergal@chromium.org> Cr-Commit-Position: refs/heads/master@{#832578}
Showing
Please register or sign in to comment