• Eugene But's avatar
    Add NavigationContextImpl::IsLoadingHtml. · d07a4a17
    Eugene But authored
    This boolean will be true for loadHTMLString: navigations.
    
    -[CRWWebController setDocumentURL:] will have a DCHECK when new document
    URL does not match last committed URL in WKBasedNavigationManager. This
    DCHECK will help to diagnose possible URL spoofing bugs in Slim
    Navigation feature.
    
    For loadHTMLString: the URLs will not match, which is not a problem
    because loadHTMLString: are only used in tests and error pages.
    
    Bug: 876077
    Cq-Include-Trybots: luci.chromium.try:ios-simulator-full-configs;master.tryserver.chromium.mac:ios-simulator-cronet
    Change-Id: Iae163faf7f5cf90d5bb0e48a191786be2e1d8ee6
    Reviewed-on: https://chromium-review.googlesource.com/1182313Reviewed-by: default avatarMike Dougherty <michaeldo@chromium.org>
    Commit-Queue: Mike Dougherty <michaeldo@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#584740}
    d07a4a17
navigation_context_impl.mm 5.27 KB