Skip to content

Save / Update Password prompts do not work #32

@zattu1

Description

@zattu1

I want to use Save / Update Password prompts, but it doesn't take effect even if I put the following process.
Is there anything else I need to do?

HRESULT BrowserWindow::CreateBrowserControlsWebView()
{
    return m_uiEnv->CreateCoreWebView2Controller(m_hWnd, Callback<ICoreWebView2CreateCoreWebView2ControllerCompletedHandler>(
        [this](HRESULT result, ICoreWebView2Controller* host) -> HRESULT
    {
        if (!SUCCEEDED(result))
        {
            OutputDebugString(L"Controls WebView creation failed\n");
            return result;
        }
        // WebView created
        m_controlsController = host;
        CheckFailure(m_controlsController->get_CoreWebView2(&m_controlsWebView), L"");

        wil::com_ptr<ICoreWebView2Settings> settings;
        RETURN_IF_FAILED(m_controlsWebView->get_Settings(&settings));
        RETURN_IF_FAILED(settings->put_AreDevToolsEnabled(FALSE));

        wil::com_ptr<ICoreWebView2Settings4> settings4;
        RETURN_IF_FAILED(m_controlsWebView->get_Settings(&settings));
        settings4 = settings.try_query<ICoreWebView2Settings4>();
        settings4->put_IsPasswordAutosaveEnabled(TRUE);

       ....
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions