Skip to content

Commit

Permalink
Fix: nw2: crash on move event and opening devtools #7359
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerwang committed Feb 9, 2020
1 parent 96faf6f commit 8981e20
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions chrome/browser/extensions/api/tabs/windows_event_router.cc
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,8 @@ void WindowsEventRouter::Observe(
void WindowsEventRouter::OnWindowMove(WindowController* window_controller) {
if (!HasEventListener(windows::OnMove::kEventName))
return;
if (!window_controller)
return;
if (!profile_->IsSameProfile(window_controller->profile()))
return;
// Ignore any windows without an associated browser (e.g., AppWindows).
Expand Down

0 comments on commit 8981e20

Please sign in to comment.