Bug 58075

Summary: WebBackForwardList::createCFDictionaryRepresentation's current item index doesn't account for items removed by filter callback
Product: WebKit Reporter: Mark Rowe (bdash) <mrowe>
Component: WebKit2Assignee: Mark Rowe (bdash) <mrowe>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit.review.bot
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: PC   
OS: OS X 10.5   
Attachments:
Description Flags
Patch mitz: review+

Description Mark Rowe (bdash) 2011-04-07 13:41:55 PDT
If the filter callback removes an item then the current item index will be off by one!  This can cause the session state to restore to the wrong item or to fail to restore all together if the current item was the last item in the back/forward list.

<rdar://problem/9251566>
Comment 1 Mark Rowe (bdash) 2011-04-07 13:42:17 PDT
Created attachment 88687 [details]
Patch
Comment 2 WebKit Review Bot 2011-04-07 13:44:20 PDT
Attachment 88687 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebKit2/ChangeLog', u'Source/WebKit..." exit_code: 1

Source/WebKit2/ChangeLog:1:  ChangeLog entry has no bug number  [changelog/bugnumber] [5]
Total errors found: 1 in 2 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Mark Rowe (bdash) 2011-04-07 13:59:56 PDT
Landed in r83206.