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

Issue 2363823004: Fix parsing of minimum values (Closed)

Created:
4 years, 3 months ago by rwlbuis
Modified:
4 years, 2 months ago
Reviewers:
tkent
CC:
blink-reviews, blink-reviews-html_chromium.org, chromium-reviews, dglazkov+blink, kinuko+watch, loading-reviews+parser_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix parsing of minimum values When parsing values that are minimum finite values (for example std::numeric_limits::min<int>), we end up ignoring the sign when calling charactersToIntStrict. This method will then use the std::numeric_limits::max values for parsing, and since abs(max) is smaller than abs(min) it will bail out and parseHTMLIntegerInternal will return false. To fix this simply add the minus sign in the string to be parsed by charactersToIntStrict. BUG=653557 Committed: https://crrev.com/54a7c25c0044c02449ee9366c9323ca1d2461b29 Cr-Commit-Position: refs/heads/master@{#423595}

Patch Set 1 #

Patch Set 2 : Add tests #

Total comments: 2

Patch Set 3 : Add a comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+241 lines, -241 lines) Patch
M third_party/WebKit/LayoutTests/imported/wpt/html/dom/reflection-embedded-expected.txt View 1 24 chunks +24 lines, -24 lines 0 comments Download
M third_party/WebKit/LayoutTests/imported/wpt/html/dom/reflection-forms-expected.txt View 1 30 chunks +30 lines, -30 lines 0 comments Download
M third_party/WebKit/LayoutTests/imported/wpt/html/dom/reflection-grouping-expected.txt View 1 28 chunks +28 lines, -28 lines 0 comments Download
M third_party/WebKit/LayoutTests/imported/wpt/html/dom/reflection-metadata-expected.txt View 1 12 chunks +12 lines, -12 lines 0 comments Download
M third_party/WebKit/LayoutTests/imported/wpt/html/dom/reflection-misc-expected.txt View 1 20 chunks +20 lines, -20 lines 0 comments Download
M third_party/WebKit/LayoutTests/imported/wpt/html/dom/reflection-obsolete-expected.txt View 1 12 chunks +12 lines, -12 lines 0 comments Download
M third_party/WebKit/LayoutTests/imported/wpt/html/dom/reflection-sections-expected.txt View 1 30 chunks +30 lines, -30 lines 0 comments Download
M third_party/WebKit/LayoutTests/imported/wpt/html/dom/reflection-tabular-expected.txt View 1 20 chunks +20 lines, -20 lines 0 comments Download
M third_party/WebKit/LayoutTests/imported/wpt/html/dom/reflection-text-expected.txt View 1 58 chunks +58 lines, -58 lines 0 comments Download
M third_party/WebKit/Source/core/html/parser/HTMLParserIdioms.cpp View 1 2 4 chunks +7 lines, -7 lines 0 comments Download

Messages

Total messages: 17 (7 generated)
rwlbuis
PTAL.
4 years, 2 months ago (2016-10-06 12:54:17 UTC) #4
tkent
You'll fix tabIndex-related failures in reflection-*.html tests, and this is a preparation, right? > BUG=490511 ...
4 years, 2 months ago (2016-10-06 14:36:41 UTC) #5
tkent
https://codereview.chromium.org/2363823004/diff/20001/third_party/WebKit/Source/core/html/parser/HTMLParserIdioms.cpp File third_party/WebKit/Source/core/html/parser/HTMLParserIdioms.cpp (left): https://codereview.chromium.org/2363823004/diff/20001/third_party/WebKit/Source/core/html/parser/HTMLParserIdioms.cpp#oldcode163 third_party/WebKit/Source/core/html/parser/HTMLParserIdioms.cpp:163: // Step 3 Adding a comment why the implementation ...
4 years, 2 months ago (2016-10-06 14:37:42 UTC) #6
rwlbuis
On 2016/10/06 14:36:41, tkent wrote: > You'll fix tabIndex-related failures in reflection-*.html tests, and this ...
4 years, 2 months ago (2016-10-06 14:39:23 UTC) #7
rwlbuis
https://codereview.chromium.org/2363823004/diff/20001/third_party/WebKit/Source/core/html/parser/HTMLParserIdioms.cpp File third_party/WebKit/Source/core/html/parser/HTMLParserIdioms.cpp (left): https://codereview.chromium.org/2363823004/diff/20001/third_party/WebKit/Source/core/html/parser/HTMLParserIdioms.cpp#oldcode163 third_party/WebKit/Source/core/html/parser/HTMLParserIdioms.cpp:163: // Step 3 On 2016/10/06 14:37:42, tkent wrote: > ...
4 years, 2 months ago (2016-10-06 15:10:44 UTC) #9
rwlbuis
> > Pleas file a new bug for a specific wrong behavior. > > Will ...
4 years, 2 months ago (2016-10-06 15:11:12 UTC) #10
tkent
lgtm
4 years, 2 months ago (2016-10-06 15:40:29 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2363823004/40001
4 years, 2 months ago (2016-10-06 17:00:02 UTC) #13
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 2 months ago (2016-10-06 18:30:40 UTC) #15
commit-bot: I haz the power
4 years, 2 months ago (2016-10-06 18:34:23 UTC) #17
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/54a7c25c0044c02449ee9366c9323ca1d2461b29
Cr-Commit-Position: refs/heads/master@{#423595}

Powered by Google App Engine
This is Rietveld 408576698