Changeset 29472 in webkit


Ignore:
Timestamp:
Jan 14, 2008 10:28:43 AM (16 years ago)
Author:
kmccullough@apple.com
Message:

JavaScriptCore:

Reviewed by Oliver.

-<rdar://problem/5622667> REGRESSION (Leopard-ToT): Endless loading loop
trying to view techreport.com comments

  • We need to set values in the map, because if they are already in the map they will not be reset when we use add().
  • kjs/array_instance.cpp: (KJS::ArrayInstance::put):

LayoutTests:

Reviewed by Oliver.

  • <rdar://problem/5622667> REGRESSION (Leopard-ToT): Endless loading loop trying to view techreport.com comments
  • Any resetting of a value in an array of sufficient size, would cause the second value to be lost.
  • fast/js/array-reset-large-index-expected.txt: Added.
  • fast/js/array-reset-large-index.html: Added.
  • fast/js/resources/array-reset-large-index.js: Added.
Location:
trunk
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r29470 r29472  
     12008-01-14  Kevin McCullough  <kmccullough@apple.com>
     2
     3        Reviewed by Oliver.
     4
     5        -<rdar://problem/5622667> REGRESSION (Leopard-ToT): Endless loading loop
     6        trying to view techreport.com comments
     7        - We need to set values in the map, because if they are already in the
     8        map they will not be reset when we use add().
     9
     10        * kjs/array_instance.cpp:
     11        (KJS::ArrayInstance::put):
     12
    1132008-01-14  Darin Adler  <darin@apple.com>
    214
  • trunk/JavaScriptCore/kjs/array_instance.cpp

    r28917 r29472  
    250250            storage->m_sparseValueMap = map;
    251251        }
    252         map->add(i, value);
     252        map->set(i, value);
    253253        return;
    254254    }
     
    256256    unsigned newNumValuesInVector = storage->m_numValuesInVector + 1;
    257257    if (!isDenseEnoughForVector(i + 1, newNumValuesInVector)) {
    258         map->add(i, value);
     258        map->set(i, value);
    259259        return;
    260260    }
  • trunk/LayoutTests/ChangeLog

    r29467 r29472  
     12008-01-11  Kevin McCullough  <kmccullough@apple.com>
     2
     3        Reviewed by Oliver.
     4
     5        - <rdar://problem/5622667> REGRESSION (Leopard-ToT): Endless loading
     6        loop trying to view techreport.com comments
     7        - Any resetting of a value in an array of sufficient size, would cause
     8        the second value to be lost.
     9
     10        * fast/js/array-reset-large-index-expected.txt: Added.
     11        * fast/js/array-reset-large-index.html: Added.
     12        * fast/js/resources/array-reset-large-index.js: Added.
     13
    1142008-01-14  Adam Roben  <aroben@apple.com>
    215
     
    89658978        - test for http://bugs.webkit.org/show_bug.cgi?id=15181
    89668979          text-transform: uppercase not working in input (submit, reset, button) elements
    8967           <rdar://problem/5474647>
     8980          rdar://problem/5474647>
    89688981
    89698982        * fast/forms/button-text-transform.html: Added.
Note: See TracChangeset for help on using the changeset viewer.