Make WebDocument's use of Document::GetExecutionContext() safe
There are 4 places Document::GetExecutionContext() is currently invoked in WebDocument: * GetSecurityOrigin() is the only one of the 4 that null-checks it. * OutgoingReferrer() is unused and can be removed. * GetReferrerPolicy() has a single use that can easily be adjusted so that it can be removed. * IsSecureContext() needs a null-check. Bug: 1121726 Change-Id: I0f65a56909e4bc1a5ee6aee30e0e59c8c698b434 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2375704 Commit-Queue: Kentaro Hara <haraken@chromium.org> Auto-Submit: Nate Chapin <japhet@chromium.org> Reviewed-by:Kentaro Hara <haraken@chromium.org> Cr-Commit-Position: refs/heads/master@{#801618}
Showing
Please register or sign in to comment