mac: Close devtools when web contents is destroyed.
After the BRYInspectableWebContentsView is added as subview to other NSWindow owned by users, the view_ would not be dealloc when the web contents got destroyed, which made the devtools window a ghost.
This commit is contained in:
parent
eab44d5045
commit
4ed7934567
1 changed files with 1 additions and 0 deletions
|
@ -17,6 +17,7 @@ InspectableWebContentsViewMac::InspectableWebContentsViewMac(InspectableWebConte
|
|||
}
|
||||
|
||||
InspectableWebContentsViewMac::~InspectableWebContentsViewMac() {
|
||||
CloseDevTools();
|
||||
}
|
||||
|
||||
gfx::NativeView InspectableWebContentsViewMac::GetNativeView() const {
|
||||
|
|
Loading…
Reference in a new issue