Skip to content

CefRequestHandler.getAuthCredentials() never fires for a locally-intercepted 401 response #26

Description

@Thrameos

Summary

CefRequestHandler.getAuthCredentials() (native/request_handler.cpp's
RequestHandler::GetAuthCredentials) has no test coverage and doesn't appear
reachable from this suite's resource-interception test harness:
CefAuthCallbackTest sets up a CefResourceHandler that returns a real
401 response with a WWW-Authenticate header, but getAuthCredentials() never
fires.

Likely the same limitation class as upstream issue chromiumembedded#384 (Accept-Language) --
auth-challenge handling may require a real net::URLLoader round trip through
Chromium's network stack that a purely local resource-interception handler
can't produce.

Reproduction

java/tests/junittests/CefAuthCallbackTest.java, currently @Disabled.
Confirmed by running it un-@Disabled: the test hangs waiting for the
callback that never comes.

Impact

native/CefAuthCallback_N.cpp and the RequestHandler::GetAuthCredentials/
URLRequestClient::GetAuthCredentials upcall paths remain 0% covered.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions