|
3 | 3 |
|
4 | 4 | # Browser (object) |
5 | 5 |
|
6 | | -Remember to free all browser references for the browser to shut down cleanly. |
| 6 | +Remember to free all browser references when closing app |
| 7 | +for the browser to shut down cleanly. |
7 | 8 | Otherwise data such as cookies or other storage might not be flushed to disk |
8 | | -when closing app, and other issues might occur as well. If you store |
9 | | -a reference to Frame somewhere in your code then to free it just assign |
10 | | -a None value to the variable. |
| 9 | +when closing app, and other issues might occur as well. To free a reference |
| 10 | +just assign a None value to a browser variable. |
11 | 11 |
|
12 | 12 | To compare browser objects always use [GetIdentifier()](#getidentifier) |
13 | | -method. Do not compare two Browser objects variables directly. There |
14 | | -are some edge cases when after the OnBeforeClose event browser objects |
15 | | -are no more globally referenced thus a new instance is created that |
16 | | -wraps upstream CefBrowser object. Browser objects that were globally |
17 | | -unreferenced do not have properties of the original Browser object, |
18 | | -for example they do not have client callbacks, javascript bindings |
19 | | -or user data set. |
| 13 | +method. Do not compare two Browser objects variables directly. |
20 | 14 |
|
21 | 15 |
|
22 | 16 | Table of contents: |
@@ -107,6 +101,12 @@ Methods available in upstream CEF which were not yet exposed in CEF Python |
107 | 101 | * ImeFinishComposingText |
108 | 102 | * ImeCancelComposition |
109 | 103 |
|
| 104 | +There are some edge cases when after the OnBeforeClose event browser objects |
| 105 | +are no more globally referenced thus a new instance is created that |
| 106 | +wraps upstream CefBrowser object. Browser objects that were globally |
| 107 | +unreferenced do not have properties of the original Browser object, |
| 108 | +for example they do not have client callbacks, javascript bindings |
| 109 | +or user data set. |
110 | 110 |
|
111 | 111 | ## Methods |
112 | 112 |
|
|
0 commit comments