IconLoader uses a CachedRawResource, this class sets a timer and calls back into the IconLoader when the timer fires. However, the IconLoader can be destroyed (on web view destruction) without removing itself from the CachedRawResource, so the timer firing calls into a deleted object causing a crash. Adding a check into the destructor fixes this problem on our platform (webkit2, gtk based).
Created attachment 182337 [details] Call removeClient in the destructor.
Comment on attachment 182337 [details] Call removeClient in the destructor. Attachment 182337 [details] did not pass qt-ews (qt): Output: http://queues.webkit.org/results/15795669
Comment on attachment 182337 [details] Call removeClient in the destructor. Attachment 182337 [details] did not pass qt-wk2-ews (qt): Output: http://queues.webkit.org/results/15815184
Comment on attachment 182337 [details] Call removeClient in the destructor. Attachment 182337 [details] did not pass efl-ews (efl): Output: http://queues.webkit.org/results/15809335
Comment on attachment 182337 [details] Call removeClient in the destructor. Attachment 182337 [details] did not pass gtk-ews (gtk): Output: http://queues.webkit.org/results/15810338
Comment on attachment 182337 [details] Call removeClient in the destructor. Attachment 182337 [details] did not pass mac-ews (mac): Output: http://queues.webkit.org/results/15806380
Comment on attachment 182337 [details] Call removeClient in the destructor. Attachment 182337 [details] did not pass cr-android-ews (chromium-android): Output: http://queues.webkit.org/results/15806381
Comment on attachment 182337 [details] Call removeClient in the destructor. Attachment 182337 [details] did not pass win-ews (win): Output: http://queues.webkit.org/results/15803439
Created attachment 182342 [details] removed the spurious { from the patch.
Can you make a regression test for this?
(In reply to comment #10) > Can you make a regression test for this? I've only seen this on our device, and it's timing related - you have to destroy the webview (which destroys the IconLoader) after the CachedRawResource has been created and the IconLoader added to it, but before the timer (set for 0ms) fires...
This got fixed in bug 120541. *** This bug has been marked as a duplicate of bug 120541 ***