Fixed a bad iFrame crash, resolving some of the layout test badness
* page/Frame.cpp:
(WebCore::Frame::endIfNotLoading):
- Added a RefPtr to protect the frame itself to prevent its destruction during this method
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16366
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2006-09-14 Brady Eidson <beidson@apple.com>
+
+ Reviewed by Maciej
+
+ Fixed a bad iFrame crash, resolving some of the layout test badness
+
+ * page/Frame.cpp:
+ (WebCore::Frame::endIfNotLoading):
+ - Added a RefPtr to protect the frame itself to prevent its destruction during this method
+
2006-09-14 Justin Garcia <justin.garcia@apple.com>
Reviewed by harrison
void Frame::endIfNotLoading()
{
+ // The frame's last ref may be remove and it be deleted by checkCompleted(),
+ // so we'll add a protective refcount
+ RefPtr<Frame> protector(this);
+
if (d->m_bLoadingMainResource)
return;