mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
fix: ensure web_contents() is alive before grabbing view (#30572)
This commit is contained in:
@@ -17,7 +17,7 @@ void BrowserWindow::UpdateDraggableRegions(
|
||||
if (window_->has_frame())
|
||||
return;
|
||||
|
||||
if (&draggable_regions_ != ®ions) {
|
||||
if (&draggable_regions_ != ®ions && web_contents()) {
|
||||
auto* view =
|
||||
static_cast<content::WebContentsImpl*>(web_contents())->GetView();
|
||||
if (view) {
|
||||
|
||||
Reference in New Issue
Block a user