diff --git a/brightray/browser/mac/bry_inspectable_web_contents_view.mm b/brightray/browser/mac/bry_inspectable_web_contents_view.mm index edc455c2fd7f..af78def9899f 100644 --- a/brightray/browser/mac/bry_inspectable_web_contents_view.mm +++ b/brightray/browser/mac/bry_inspectable_web_contents_view.mm @@ -232,6 +232,7 @@ void SetActive(content::WebContents* web_contents, bool active) { #pragma mark - NSWindowDelegate - (BOOL)windowShouldClose:(id)sender { + _private->visible = NO; [_private->window orderOut:nil]; return NO; }