[Webkit-unassigned] [Bug 26665] New: webView:didFailLoadWithError:forFrame: called in -[WebView close]
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Jun 23 17:00:46 PDT 2009
https://bugs.webkit.org/show_bug.cgi?id=26665
Summary: webView:didFailLoadWithError:forFrame: called in -
[WebView close]
Product: WebKit
Version: 528+ (Nightly build)
Platform: Macintosh
URL: http://www.apple.com
OS/Version: Mac OS X 10.5
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: WebKit API
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: opendarwin at lapcatsoftware.com
Overview Description:
According to the documentation for -[WebView close], "A closed web view no
longer responds to new requests nor sends delegate messages." However, if I
call -[WebView close] while a page is still loading, it triggers the callback
webView:didFailLoadWithError:forFrame: with NSURLErrorCancelled.
Steps to Reproduce:
1) Unzip, build, and run attached sample Xcode project "WebViewClose.zip"
Actual Results:
As you can see in the console log, webView:didFailLoadWithError:forFrame: is
called after -[WebView close] is called.
Expected Results:
After -[WebView close] is called, there should be no delegate callbacks.
Build Date & Platform:
git commit 401f9b797d616c4f01bfe3f730b723494afc0ec2 Tue Jun 23 23:06:36 2009
+0000, corresponding to svn r45011.
Build 2002-03-15 on Mac OS 9.0
Additional Builds and Platforms:
This problem also occurs with stock WebKit on Mac OS X 10.5.7 with Safari 4.0.1
(5530.18).
Additional Information:
The sample project is based on the MiniBrowser example in
"/Developer/Examples/WebKit" from the Xcode 3.1.3 install. I only made a few
changes -- indicated by the NSLog() statements, to trigger the call to
-[WebView close] during page loading.
Depending on the definition of 'closed', a WebView may not be technically
closed until -close returns. However, having -close trigger a delegate callback
is not really good with respect to the method's documentation. At the very
least, it needs to be documented when exactly you can expect delegate callbacks
to stop.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list