• meacer@chromium.org's avatar
    Fix cross origin check when deciding to show the HTTP auth interstitial. · bf907e20
    meacer@chromium.org authored
    HTTP auth prompts show a blank interstitial which causes the omnibox to show
     the correct URL and page contents to clear in order to prevent phishing. The
    logic for this interstitial currently checks only for the visible URL. This misses
    the case where the user navigates directly the URL: The URL of the resource
    with HTTP Auth will be the same as the visible entry so no interstitial will be
    shown. This patch adds a check to see if the last committed entry is also
    different then the URL of the resource with HTTP Auth.
    
    BUG=396961
    TEST=LoginPromptBrowserTest.*
    
    Review URL: https://codereview.chromium.org/410373003
    
    Cr-Commit-Position: refs/heads/master@{#290090}
    git-svn-id: svn://svn.chromium.org/chrome/trunk/src@290090 0039d316-1c4b-4281-b951-d872f2087c98
    bf907e20
websocket_browsertest.cc 10.5 KB