Skip to content

Commit

Permalink
Disable scripting before removing WebView
Browse files Browse the repository at this point in the history
This seems to fix crashes with certain videos (issue ViennaRSS#1112)
  • Loading branch information
barijaona committed Apr 13, 2018
1 parent 2763783 commit 106b68e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/BrowserPane.m
Expand Up @@ -694,6 +694,8 @@ -(IBAction)handleReload:(id)sender
-(void)handleStopLoading:(id)sender
{
[self willChangeValueForKey:@"isLoading"];
[self.webPane.preferences setPlugInsEnabled:NO];
[self.webPane.preferences setJavaScriptEnabled:NO];
[self.webPane setFrameLoadDelegate:nil];
[self.webPane setUIDelegate:nil];
[self.webPane stopLoading:self];
Expand Down

0 comments on commit 106b68e

Please sign in to comment.