RESOLVED FIXED 92774
Crash in FrameLoader::checkLoadComplete with non-browser client app
https://bugs.webkit.org/show_bug.cgi?id=92774
Summary Crash in FrameLoader::checkLoadComplete with non-browser client app
Antti Koivisto
Reported 2012-07-31 11:09:16 PDT
Seen with a non-browser client app 0 WebCore 0x327aaf3c WebCore::FrameLoader::checkLoadComplete() (FrameLoader.cpp:2399) 1 WebCore 0x32a6cd30 WebCore::CSSFontSelector::beginLoadTimerFired(WebCore::Timer<WebCore::CSSFontSelector>*) (CSSFontSelector.cpp:619) 2 WebCore 0x327e69a6 WebCore::ThreadTimers::sharedTimerFiredInternal() (ThreadTimers.cpp:129)
Attachments
speculative fix (1.66 KB, patch)
2012-07-31 11:27 PDT, Antti Koivisto
ap: review+
Antti Koivisto
Comment 1 2012-07-31 11:13:34 PDT
Antti Koivisto
Comment 2 2012-07-31 11:27:54 PDT
Created attachment 155591 [details] speculative fix
Alexey Proskuryakov
Comment 3 2012-07-31 11:39:49 PDT
Comment on attachment 155591 [details] speculative fix View in context: https://bugs.webkit.org/attachment.cgi?id=155591&action=review > Source/WebCore/css/CSSFontSelector.cpp:581 > + // It is possible load calls could cause CSSFontSelector to get deleted synchronously. "CSSFontSelector can be deleted via beginLoadIfNeeded() or loadDone() unless protected." (or better something more specific about how that could happen). Both "possible" and "could" make this difficult to read. > Source/WebCore/css/CSSFontSelector.cpp:582 > + // If detached clearDocument() will get called ensuring m_document is null. I think that you're explaining why m_document won't be a dangling pointer, but that seems excessive. We don't make such comment every time we use a member variable pointing to some other object, and don't make it for every variable that has a clearXXX() method. Is there something unusual here that needs to be explained?
Antti Koivisto
Comment 4 2012-07-31 11:52:24 PDT
Abhishek Arya
Comment 5 2012-08-01 15:32:11 PDT
*** Bug 91701 has been marked as a duplicate of this bug. ***
Abhishek Arya
Comment 6 2012-08-01 15:33:51 PDT
Confirming at the testcase we had at ClusterFuzz got fixed by your AWESOMENESS :)
Alexey Proskuryakov
Comment 7 2012-08-01 15:37:41 PDT
Great! Can we have the test case landed then?
Note You need to log in before you can comment on or make changes to this bug.