Fix a crash in WebUIMessageHandler::AllowJavascript
If WebUI's JS is sending the message when we navigate cross-site, then we use the new process ID from WebContents in WebUIImpl::CanCallJavascript and a CHECK crash will happen. This CL changes to use the old process ID from RFH in WebUIImpl::CanCallJavascript. Bug: 1110276 Change-Id: Ie827060b637dbd3aa4c7ad771c0cb4862763ced2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2326050Reviewed-by:Nasko Oskov <nasko@chromium.org> Commit-Queue: Miyoung Shin <myid.shin@igalia.com> Cr-Commit-Position: refs/heads/master@{#793816}
Showing
Please register or sign in to comment