This repository was archived by the owner on Aug 2, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -107,10 +107,6 @@ Description from upstream CEF:
107
107
> browser is destroyed before the popup browser creation completes (indicated
108
108
> by a call to OnAfterCreated for the popup browser).
109
109
110
- Note that if you return True and create the popup window yourself, then
111
- the popup window and parent window will not be able to script each other.
112
- There will be no "window.opener" property available in the popup window.
113
-
114
110
` WindowOpenDisposition ` constants in the cefpython module:
115
111
* WOD_UNKNOWN,
116
112
* WOD_CURRENT_TAB,
@@ -122,3 +118,11 @@ There will be no "window.opener" property available in the popup window.
122
118
* WOD_SAVE_TO_DISK,
123
119
* WOD_OFF_THE_RECORD,
124
120
* WOD_IGNORE_ACTION
121
+
122
+ Note that if you return True and create the popup window yourself, then
123
+ the popup window and parent window will not be able to script each other.
124
+ There will be no "window.opener" property available in the popup window.
125
+ To avoid this issue create a hidden window when your application starts.
126
+ Parent the new popup browser to the hidden window in OnBeforePopup. After
127
+ the browser exists (OnAfterCreated) create the desired target window
128
+ and re-parent the browser to that target window.
You can’t perform that action at this time.
0 commit comments