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
47 lines (32 loc) · 1.49 KB

File metadata and controls

47 lines (32 loc) · 1.49 KB
Copy raw file
Download raw file
Outline
Edit and raw actions

API categories | API index

JavascriptContextHandler (interface)

Implement this interface to handle javascript exceptions globally.

For an example of how to implement handler see cefpython.CreateBrowser(). For a list of all handler interfaces see API > Client handlers. Table of contents:

Callbacks

OnContextCreated

Parameter Type
browser Browser
frame Frame
Return void

Called shortly after (process message delay) the V8 context for a frame has been created.

If the page does not contain <script> tags then this method won't get called.

OnContextReleased

Parameter Type
browser Browser
frame Frame
Return void

Called shortly after (process message delay) the V8 context for a frame was released.

Due to multi-process architecture in CEF 3, this function won't get called for the main frame in main browser. To send a message from the renderer process a parent browser is used. If this is the main frame then this would mean that the browser is being destroyed, thus we can't send a process message using this browser. There is no guarantee that this will get called for frames in the main browser, if the browser is destroyed shortly after the frames were released.

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