Explicitly clear LocalDOMWindow::document_ when reusing the window
This ensures that, during navigation commit, it doesn't matter whether we are reusing a Document or not. Code that needs to catch and handle that case can null-check LocalDOMWindow::document(). This requires adding a separate LocalDOMWindow::Initialize() step, because LocalDOMWindow::InstallNewDocument() can no longer detect whether this a window reuse case or not. Bug: 1106273 Change-Id: I23021d505d6a2dc2f54f435359ce5490e4ed561e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2302939 Auto-Submit: Nate Chapin <japhet@chromium.org> Reviewed-by:Kentaro Hara <haraken@chromium.org> Commit-Queue: Nate Chapin <japhet@chromium.org> Cr-Commit-Position: refs/heads/master@{#789525}
Showing
Please register or sign in to comment