DescriptionMake sure named item cache is always valid HTMLCollection::updateIdNameCache()
Make sure named item cache is always valid HTMLCollection::updateIdNameCache().
The method was previously creating and setting the cache map first and then
traverse the DOM tree to populate it. However, finding matches in the DOM tree
can cause HTMLCollection::invalidateCache() to be called under certain
circumstances. Therefore, this patch updates updateIdNameCache() so that the
cache map is set *after* traversing the DOM tree.
BUG=360474
R=jochen@chromium.org, eseidel@chromium.org
TEST=fast/dom/htmlcollection-selectedOptions-namedItem-crash.html
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=171062
Patch Set 1 #Patch Set 2 : Make constructor private #
Total comments: 2
Patch Set 3 : Move constructor to cpp #
Messages
Total messages: 16 (0 generated)
|