Chromium Code Reviews
DescriptionClean up Document::isSecureContext
Document has two methods for getting whether the context is secure.
These duplicate functionality, but one also allocates an error string
for insecure contexts.
Many callers do not need the error string, so this patch updates them
to use the other isSecureContext method. The patch also consolidates
duplicate logic.
The error string allocation was seen in profiles in
RenderFrameImpl::willSendRequest
BUG=348655
Committed: https://crrev.com/378f5a723e7ee9c00a5af9470880a324c12f556b
Cr-Commit-Position: refs/heads/master@{#437998}
Patch Set 1 #Messages
Total messages: 15 (9 generated)
|