mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
Implement delegate method for WebView load failures
This can happen if the WebView itself terminates the load, for example if window.close() is called from JavaScript.
This commit is contained in:
@@ -70,6 +70,18 @@ extern NSString* const kCommandRunnerURLScheme; // from HTMLOutput.h
|
||||
[super webView:sender didFinishLoadForFrame:frame];
|
||||
}
|
||||
|
||||
- (void)webView:(WebView*)sender didFailProvisionalLoadWithError:(NSError*)error forFrame:(WebFrame*)frame
|
||||
{
|
||||
self.runningCommand = NO;
|
||||
self.autoScrollHelper = nil;
|
||||
}
|
||||
|
||||
- (void)webView:(WebView*)sender didFailLoadWithError:(NSError*)error forFrame:(WebFrame*)frame
|
||||
{
|
||||
self.runningCommand = NO;
|
||||
self.autoScrollHelper = nil;
|
||||
}
|
||||
|
||||
// =========================================
|
||||
// = WebPolicyDelegate : Intercept txmt:// =
|
||||
// =========================================
|
||||
|
||||
Reference in New Issue
Block a user