Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(64)

Issue 11090042: Revert 130719 - Merge 130717 - HTMLSelectElement::typeAheadFind depends on implementation dependent… (Closed)

Created:
8 years, 2 months ago by inferno
Modified:
8 years, 2 months ago
Reviewers:
yosin_UTC9
CC:
chromium-reviews
Base URL:
http://svn.webkit.org/repository/webkit/branches/chromium/1229/
Visibility:
Public.

Description

Revert 130719 - Merge 130717 - HTMLSelectElement::typeAheadFind depends on implementation dependent behavior https://bugs.webkit.org/show_bug.cgi?id=98710 Reviewed by Kent Tamura. Source/WebCore: This patch gets rid of C/C++ implementation dependent behavior from HTMLSelectElement::typeAheadFind() which does modulo operation with a negative operand. HTMLSelectElement::typeAheadFind() contains expression with modulo operator and dividend can be -1 when the "select" element without "option" element but "optgroup" element. Test: fast/forms/select/select-typeahead-crash.html * html/HTMLSelectElement.cpp: (WebCore::HTMLSelectElement::typeAheadFind): Changed to do modulo operation with both operands are non-negative. LayoutTests: This patch adds a test for checking HTMLSelectElement::typeAheadFind doesn't crash. * fast/forms/select/select-typeahead-crash-expected.txt: Added. * fast/forms/select/select-typeahead-crash.html: Added. TBR=yosin@chromium.org Review URL: https://codereview.chromium.org/11091018 TBR=yosin@chromium.org Committed: https://trac.webkit.org/changeset/130858

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -41 lines) Patch
D LayoutTests/fast/forms/select/select-typeahead-crash.html View 1 chunk +0 lines, -25 lines 0 comments Download
D LayoutTests/fast/forms/select/select-typeahead-crash-expected.txt View 1 chunk +0 lines, -12 lines 0 comments Download
M Source/WebCore/html/HTMLSelectElement.cpp View 1 chunk +2 lines, -4 lines 0 comments Download

Messages

Total messages: 1 (0 generated)
inferno
8 years, 2 months ago (2012-10-10 06:44:10 UTC) #1

          

Powered by Google App Engine
This is Rietveld 408576698