fix: ensure web_contents() is alive before grabbing view (#30571)
This commit is contained in:
parent
db8644ee7a
commit
b62bbfda4e
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue