Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
18 lines (9 loc) · 1014 Bytes

File metadata and controls

18 lines (9 loc) · 1014 Bytes
Copy raw file
Download raw file
Outline
Edit and raw actions

API categories | API index

DownloadHandler

See also Browser.StartDownload().

Preface

In CEF 3 downloads are handled automatically if ApplicationSettings.downloads_enabled is set to True (default). A default SaveAs file dialog provided by OS is displayed. If the download is aborted by user LoadHandler.OnLoadError will get called with errorCode ERR_ABORTED.

There is no download progress available. If you need such feature you will have to create a custom implementation of downloads. It would need to be investigated which callbacks from client handlers would allow for such implementation. Take a look at RequestHandler.OnBeforeBrowse, OnBeforeResourceLoad, and/or ResourceHandler.

On Linux there is a bug and ERR_ABORTED is reported even for successful downloads. See the comments in the wxpython.py example.

A download handler with callbacks like OnBeforeDownload and OnDownloadUpdated may be exposed to CEF Python in the future.

Morty Proxy This is a proxified and sanitized view of the page, visit original site.