Fix crash when closing docked devtools by clicking close button.
We need to send ack for the close message, so we should destroy web contents after the beforeunload event has fired.
This commit is contained in:
parent
9d4e977c01
commit
46e765f79b
2 changed files with 6 additions and 1 deletions
|
@ -109,6 +109,7 @@ class InspectableWebContentsImpl :
|
|||
|
||||
virtual void HandleKeyboardEvent(
|
||||
content::WebContents*, const content::NativeWebKeyboardEvent&) OVERRIDE;
|
||||
virtual void CloseContents(content::WebContents* source) OVERRIDE;
|
||||
|
||||
scoped_ptr<content::WebContents> web_contents_;
|
||||
scoped_ptr<content::DevToolsClientHost> frontend_host_;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue