发布于 2011-07-06 21:05:57
我不确定不实现委托调用是否等同于忽略它;WebKit可能试图在幕后处理错误并造成问题。
在我的WebKit/Flash应用程序中,我的WebFrameLoadDelegate中有以下内容:
- (void) webView:(WebView*)sender
didFailProvisionalLoadWithError:(NSError*)error
forFrame:(WebFrame*)frame
{
// If the user clicks a link while something is loading this error will
// be reported. It can be safely ignored (NSURLErrorCancelled -999)
if ([error code] == NSURLErrorCancelled) return;
// Real error handling here...
}一切都很好。如果我把它取出来,我开始收到奇怪的故障,甚至在显示Flash内容时崩溃。
https://stackoverflow.com/questions/3571048
复制相似问题