• Aaron Colwell's avatar
    Fix crashes caused by view-source: URLs for renderer debug URLs. · 33109c59
    Aaron Colwell authored
    This change prevents a CHECK fail caused by renderer debug URLs making
    their way deep into the navigation code and triggering a process lock
    mismatch. There are several DCHECKs that indicate these types of URLs
    should not make it into NavigationRequest code or lower layers, but
    these are not enforced in release builds. This change adds a renderer
    debug URL check to the set of other checks that run after the
    view-source: URL rewriting logic has run. This prevents the navigation
    from proceeding and prevents the URLs from getting down into the lower
    levels of the navigation code.
    
    Bug: 1070543
    Change-Id: I6f2b54730164ae299c74bd80b77e9dbc15a87ad0
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2157604Reviewed-by: default avatarAaron Colwell <acolwell@chromium.org>
    Reviewed-by: default avatarAlex Moshchuk <alexmos@chromium.org>
    Auto-Submit: Aaron Colwell <acolwell@chromium.org>
    Commit-Queue: Aaron Colwell <acolwell@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#761136}
    33109c59
navigation_controller_impl.cc 152 KB