Changeset 192850 in webkit


Ignore:
Timestamp:
Nov 30, 2015, 6:15:47 PM (10 years ago)
Author:
beidson@apple.com
Message:

Modern IDB: ObjectStore cursors should not be able to iterate out of their range.
https://bugs.webkit.org/show_bug.cgi?id=151683

Reviewed by Darin Adler.

Source/WebCore:

No new tests (Covered by at least one failing test that now passes).

  • Modules/indexeddb/server/MemoryObjectStoreCursor.cpp:

(WebCore::IDBServer::MemoryObjectStoreCursor::incrementForwardIterator):
(WebCore::IDBServer::MemoryObjectStoreCursor::incrementReverseIterator):

LayoutTests:

  • platform/mac-wk1/TestExpectations:
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r192847 r192850  
     12015-11-30  Brady Eidson  <beidson@apple.com>
     2
     3        Modern IDB: ObjectStore cursors should not be able to iterate out of their range.
     4        https://bugs.webkit.org/show_bug.cgi?id=151683
     5
     6        Reviewed by Darin Adler.
     7
     8        * platform/mac-wk1/TestExpectations:
     9
    1102015-11-30  Brady Eidson  <beidson@apple.com>
    211
  • trunk/LayoutTests/platform/mac-wk1/TestExpectations

    r192847 r192850  
    8787storage/indexeddb/mozilla/cursor-mutation.html [ Pass ]
    8888storage/indexeddb/mozilla/cursor-update-updates-indexes.html [ Pass ]
     89storage/indexeddb/mozilla/cursors.html [ Pass ]
    8990storage/indexeddb/mozilla/delete-result.html [ Pass ]
    9091storage/indexeddb/mozilla/event-source.html [ Pass ]
  • trunk/Source/WebCore/ChangeLog

    r192849 r192850  
     12015-11-30  Brady Eidson  <beidson@apple.com>
     2
     3        Modern IDB: ObjectStore cursors should not be able to iterate out of their range.
     4        https://bugs.webkit.org/show_bug.cgi?id=151683
     5
     6        Reviewed by Darin Adler.
     7
     8        No new tests (Covered by at least one failing test that now passes).
     9
     10        * Modules/indexeddb/server/MemoryObjectStoreCursor.cpp:
     11        (WebCore::IDBServer::MemoryObjectStoreCursor::incrementForwardIterator):
     12        (WebCore::IDBServer::MemoryObjectStoreCursor::incrementReverseIterator):
     13
    1142015-11-30  Anders Carlsson  <andersca@apple.com>
    215
  • trunk/Source/WebCore/Modules/indexeddb/server/MemoryObjectStoreCursor.cpp

    r192783 r192850  
    238238            return;
    239239
    240         if (!m_info.range().containsKey(**m_forwardIterator))
    241             return;
     240        if (!m_info.range().containsKey(**m_forwardIterator)) {
     241            m_forwardIterator = set.end();
     242            return;
     243        }
    242244    }
    243245}
     
    295297            return;
    296298
    297         if (!m_info.range().containsKey(**m_reverseIterator))
    298             return;
     299        if (!m_info.range().containsKey(**m_reverseIterator)) {
     300            m_reverseIterator = set.rend();
     301            return;
     302        }
    299303    }
    300304}
Note: See TracChangeset for help on using the changeset viewer.