fix: re-entrancy issues in webContents.loadURL() (#48004)

fix: re-entrancy issues in webContents.loadURL()
This commit is contained in:
Shelley Vohr 2025-08-11 17:20:35 +02:00 committed by GitHub
commit afb0ee418c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 54 additions and 2 deletions

View file

@ -858,6 +858,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;