content/network's URLLoader needs to implement OnAuthRequired. Luckily that interface is already asynchronous. It'll have to IPC to the browser and go through the same code path that ResourceLoader::OnAuthRequired currently does. As an example, see r513989 which did this for OnSSLCertificateError.
This should fix the following content_browsertests:
WorkerFetchTest.SharedWorkerHttpAuth/0
WorkerFetchTest.SharedWorkerHttpAuth/1
WorkerFetchTest.WorkerHttpAuth/1
WorkerFetchTest.WorkerHttpAuth/0
and browser_tests:
LoginPromptBrowserTest.AllowCrossdomainPromptForSubframes
LoginPromptBrowserTest.BlockCrossdomainPromptForSubresources
LoginPromptBrowserTest.CancelLoginInterstitialOnRedirect
LoginPromptBrowserTest.CancelRedundantAuths
LoginPromptBrowserTest.IncorrectConfirmation
LoginPromptBrowserTest.LoginPromptForXHRWithoutCredentials
LoginPromptBrowserTest.LoginPromptForXHRWithoutCredentialsCancelled
LoginPromptBrowserTest.MultipleRealmCancellation
LoginPromptBrowserTest.MultipleRealmConfirmation
LoginPromptBrowserTest.NoLoginPromptForFavicon
LoginPromptBrowserTest.ShouldNotProceedExistingInterstitial
LoginPromptBrowserTest.ShouldReplaceExistingInterstitialWhenNavigated
LoginPromptBrowserTest.ShowCorrectUrlForCrossOriginMainFrameRedirects
LoginPromptBrowserTest.ShowCorrectUrlForCrossOriginMainFrameRequests
LoginPromptBrowserTest.SupplyRedundantAuths
LoginPromptBrowserTest.SupplyRedundantAuthsMultiProfile
LoginPromptBrowserTest.TestBasicAuth
LoginPromptBrowserTest.TestCancelAuth_Manual
LoginPromptBrowserTest.TestCancelAuth_OnBack
LoginPromptBrowserTest.TestCancelAuth_OnForward
LoginPromptBrowserTest.TestCancelAuth_OnNavigation
LoginPromptBrowserTest.TestDigestAuth
LoginPromptBrowserTest.TestTwoAuths
PasswordManagerBrowserTestBase.BasicAuthSeparateRealms
PasswordManagerBrowserTestBase.CorrectEntryForHttpAuth
PasswordManagerBrowserTestBase.NoLastLoadGoodLastLoad
PrerenderBrowserTest.PrerenderHttpAuthentication
ProxyBrowserTest.BasicAuthWSConnect
RepostFormWarningTest.TestLoginAfterRepost
WebSocketBrowserTest.ReuseMainPageBasicAuthCredentialsForWebSocket
Comment 1 by juncai@chromium.org
, Dec 5 2017Status: Assigned (was: Available)