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

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Nov 7 09:59:16 PST 2014


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

--- Comment #18 from Alexey Proskuryakov <ap at webkit.org> ---
There are two known places where we retain the WebView during dealloc:

1. When posting a notification:

    [[NSNotificationCenter defaultCenter] postNotificationName:WebViewWillCloseNotification object:self];

2. When doing arbitrary work in a JavaScript unload event handler.

It seems challenging to avoid that without changing WebKit API. One approach I can think of is to implicitly call -close when the view is removed from view hierarchy instead of when it's being deallocated. That seems risky - what if the application is just going to re-insert the view elsewhere?

In MiniBrowser case, we only destroy the view when closing the window, so setting view.shouldCloseWithWindow to TRUE would help, but that's not a general solution.

-- 
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/20141107/eaa0251e/attachment-0002.html>


More information about the webkit-unassigned mailing list