RESOLVED FIXED Bug 32868
IWebView::mainFrame crashes if called after IWebView::close
https://bugs.webkit.org/show_bug.cgi?id=32868
Summary IWebView::mainFrame crashes if called after IWebView::close
Adam Roben (:aroben)
Reported 2009-12-22 07:07:40 PST
To reproduce: 1. Create a WebView 2. Call IWebView::close 3. Call IWebView::mainFrame You'll crash.
Attachments
Patch (2.81 KB, patch)
2016-07-21 04:25 PDT, Per Arne Vollan
bfulgham: review+
Adam Roben (:aroben)
Comment 1 2009-12-22 07:07:52 PST
The problem is that IWebView::close deletes m_page, which ends up releasing the last reference to m_mainFrame, but we don't null-out m_mainFrame.
Adam Roben (:aroben)
Comment 2 2009-12-22 07:08:00 PST
Per Arne Vollan
Comment 3 2016-07-21 04:25:45 PDT
Brent Fulgham
Comment 4 2016-07-21 10:26:37 PDT
Comment on attachment 284205 [details] Patch Excellent! r=me.
Per Arne Vollan
Comment 5 2016-07-21 11:33:03 PDT
(In reply to comment #4) > Comment on attachment 284205 [details] > Patch > > Excellent! r=me. Thanks for reviewing :)
Per Arne Vollan
Comment 6 2016-07-22 05:43:21 PDT
Note You need to log in before you can comment on or make changes to this bug.