mac: InspectableWebContents should be destroyed before release NSWindow.

Fixes atom/atom#1841.
This commit is contained in:
Cheng Zhao 2014-04-11 12:32:42 +08:00
parent e576d4c014
commit d6079782d1
3 changed files with 13 additions and 7 deletions

View file

@ -251,6 +251,8 @@ class NativeWindow : public brightray::DefaultWebContentsDelegate,
// Window icon.
gfx::Image icon_;
scoped_ptr<brightray::InspectableWebContents> inspectable_web_contents_;
private:
// Schedule a notification unresponsive event.
void ScheduleUnresponsiveEvent(int ms);
@ -304,7 +306,6 @@ class NativeWindow : public brightray::DefaultWebContentsDelegate,
scoped_ptr<DevToolsWebContentsObserver> devtools_web_contents_observer_;
scoped_ptr<AtomJavaScriptDialogManager> dialog_manager_;
scoped_ptr<brightray::InspectableWebContents> inspectable_web_contents_;
// Maps url to file path, used by the file requests sent from devtools.
typedef std::map<std::string, base::FilePath> PathsMap;