mac: Should restart renderer when reloading

Fixes #692.
This commit is contained in:
Cheng Zhao 2014-10-19 16:27:50 +08:00
parent 53b83eba8c
commit ab652b738c

View file

@ -135,7 +135,9 @@ static const CGFloat kAtomWindowCornerRadius = 4.0;
} }
- (IBAction)reload:(id)sender { - (IBAction)reload:(id)sender {
shell_->GetWebContents()->GetController().ReloadIgnoringCache(false); content::WebContents* web_contents = shell_->GetWebContents();
content::NavigationController::LoadURLParams params(web_contents->GetURL());
web_contents->GetController().LoadURLWithParams(params);
} }
- (IBAction)showDevTools:(id)sender { - (IBAction)showDevTools:(id)sender {