In the onbeforedownload and ondownloadupdated functions, the empty string is returned by calling getmainframe() and getfocusedframe() through the browser

Issue #3335 wontfix
fire unknow created an issue

In the onbeforedownload and ondownloadupdated functions, the empty string is returned by calling getmainframe() and getfocusedframe() through the browser

Comments (8)

  1. fire unknow reporter

    void CBrowserHandler::OnBeforeDownload(CefRefPtr<CefBrowser> browser, CefRefPtr<CefDownloadItem> download_item,
                                           const CefString& suggested_name, CefRefPtr<CefBeforeDownloadCallback> callback)
    {
        CefRefPtr<CefFrame> frameMain = browser->GetMainFrame();
        if (frameMain)
        {
            std::string strMainFrameName = frameMain->GetName().ToString();
        }
    
        CefRefPtr<CefFrame> frameFocused = browser->GetMainFrame();
        if (frameFocused)
        {
            std::string strFocusedFrameName = frameFocused->GetName().ToString();
        }
    }
    

  2. Marshall Greenblatt

    A download link wrapped in iframe

    Do other load callbacks for that iframe (like OnLoadEnd) return a non-empty value for GetName?

  3. Log in to comment