fix: re-entrancy issues in webContents.loadURL()
(#48044)
This commit is contained in:
parent
9a788ad231
commit
f4e6a361de
3 changed files with 53 additions and 2 deletions
|
@ -856,6 +856,9 @@ class WebContents final : public ExclusiveAccessContext,
|
|||
const scoped_refptr<base::TaskRunner> print_task_runner_;
|
||||
#endif
|
||||
|
||||
// Track navigation state in order to avoid potential re-entrancy crashes.
|
||||
bool is_safe_to_delete_ = true;
|
||||
|
||||
// Stores the frame that's currently in fullscreen, nullptr if there is none.
|
||||
raw_ptr<content::RenderFrameHost> fullscreen_frame_ = nullptr;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue