Changeset 227990 in webkit


Ignore:
Timestamp:
Feb 1, 2018 4:40:31 PM (6 years ago)
Author:
ddkilzer@apple.com
Message:

REGRESSION (r222824): UI process crashes in WebKit::WebBackForwardList::backItem const
<https://webkit.org/b/182409>
<rdar://problem/35495094>

Reviewed by Alex Christensen.

  • UIProcess/WebBackForwardList.cpp:

(WebKit::WebBackForwardList::goToItem): Fix typo so the for loop
actually checks each value in m_entries.

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r227989 r227990  
     12018-02-01  David Kilzer  <ddkilzer@apple.com>
     2
     3        REGRESSION (r222824): UI process crashes in WebKit::WebBackForwardList::backItem const
     4        <https://webkit.org/b/182409>
     5        <rdar://problem/35495094>
     6
     7        Reviewed by Alex Christensen.
     8
     9        * UIProcess/WebBackForwardList.cpp:
     10        (WebKit::WebBackForwardList::goToItem): Fix typo so the for loop
     11        actually checks each value in m_entries.
     12
    1132018-02-01  Youenn Fablet  <youenn@apple.com>
    214
  • trunk/Source/WebKit/UIProcess/WebBackForwardList.cpp

    r223861 r227990  
    200200        targetIndex = notFound;
    201201        for (size_t i = 0; i < m_entries.size(); ++i) {
    202             if (m_entries[0].ptr() == &item) {
     202            if (m_entries[i].ptr() == &item) {
    203203                targetIndex = i;
    204204                break;
Note: See TracChangeset for help on using the changeset viewer.