[Webkit-unassigned] [Bug 138443] Crash in NSURLConnectionInternal, messaging released WebView

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Nov 11 08:47:48 PST 2014


https://bugs.webkit.org/show_bug.cgi?id=138443

--- Comment #21 from Anders Carlsson <andersca at apple.com> ---
(In reply to comment #20)
> The real point is that these call out to the app, which could then retain
> the WebView. The app has no way of knowing that the WebView is not already
> retained.
> 
> I suggest we find a way to change the semantics of the WebView in the future
> so that if a client doesn’t explicitly call close the
> WebViewWillCloseNotification is not sent, and the unload event is not sent
> to the webpage either.

We should also figure out why WebViewWillCloseNotification was added, and if anyone is still using it (it's SPI).

> 
> Then this bug could still come up, but only for old clients, and eventually
> we can phase the behavior out entirely.

Agreed. We should also figure out what our story should be for the modern API. Right now we don't have an explicit close method, we just invalidate everything on dealloc. 

(FWIW, I think other classes such as NSWindow have hacks in place to handle being retained from inside dealloc).

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20141111/820327ac/attachment-0002.html>


More information about the webkit-unassigned mailing list