Handle NULL frame in HTMLFrameOwnerElement::UpdateRequiredPolicy()
Previously it is assumed when a frame owner element needs to update required policy, |GetDocument().GetFrame()| should not return NULL. It turns out this assumption is not always true. This CL let HTMLFrameOwnerElement::UpdateRequiredPolicy handle NULL frame explicitly, instead of assuming its not NULL. Bug: 1068100 Change-Id: I15e6ac7cffeff36761da945b67eca3f862719942 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2149527 Commit-Queue: Charlie Hu <chenleihu@google.com> Reviewed-by:Ian Clelland <iclelland@chromium.org> Reviewed-by:
Philip Jägenstedt <foolip@chromium.org> Cr-Commit-Position: refs/heads/master@{#760077}
Showing
Please register or sign in to comment