[Webkit-unassigned] [Bug 50331] ASSERT failing restoring scroll position from HistoryItem after reload
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Jan 25 03:57:49 PST 2011
https://bugs.webkit.org/show_bug.cgi?id=50331
--- Comment #17 from Mario Sanchez Prada <msanchez at igalia.com> 2011-01-25 03:57:48 PST ---
(In reply to comment #16)
> (From update of attachment 77812 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=77812&action=review
>
> > WebCore/loader/HistoryController.cpp:-104
> > -
>
> this seems like the wrong direction to go. you have identified a case
> where we can get a null m_currentItem. perhaps we should instead try
> to fix that case to not have a null m_currentItem?
>
> i think it needlessly complicates HistoryController to have to support
> a null m_currentItem as we sort of do today.
That was my first approach (to avoid getting a null m_currentItem when calling that function), but in comment #10 Darin (well, "the other Darin") pointed out that it would be better to make the change right inside restoreScrollPositionAndViewState(), so I did.
Not sure what to do now, perhaps I'm missing something and there's a third way to fix this, but I can't clearly see it at this moment.
Any hint?
Thanks for the feedback, btw.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list