Fix crash when using file chooser in BrowserView
The crash was a segfault caused by a null `WebDialogHelper::window_`.
This commit is contained in:
parent
3abeb6e2bc
commit
eb19562316
6 changed files with 36 additions and 6 deletions
|
@ -36,6 +36,7 @@ class BrowserView : public mate::TrackableObject<BrowserView> {
|
|||
static void BuildPrototype(v8::Isolate* isolate,
|
||||
v8::Local<v8::FunctionTemplate> prototype);
|
||||
|
||||
WebContents* web_contents() const { return api_web_contents_; }
|
||||
NativeBrowserView* view() const { return view_.get(); }
|
||||
|
||||
int32_t ID() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue