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

Issue 2350163002: Prevent LayoutTest setting -1 page scale factor. (Closed)

Created:
4 years, 3 months ago by sunxd
Modified:
4 years, 3 months ago
Reviewers:
bokan, ajuma
CC:
chromium-reviews, blink-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Prevent LayoutTest setting -1 page scale factor. Blink did not clamp page scale factor when it is -1 probably because it is the initial value. This can result in a clusterfuzz crash as cc tries to clamp the value it got from blink, and later found that the value (1) does not match the one (-1) it already stores, cc then tries to update the value and only to find that the layer tree has not be synced. This CL prevents clusterfuzz from setting a -1 page scale factor. BUG=640500 Committed: https://crrev.com/2b5d011b487c215564e66393bd7dd1e71021ea95 Cr-Commit-Position: refs/heads/master@{#419839}

Patch Set 1 #

Total comments: 5

Patch Set 2 : Rewrite the test. #

Total comments: 3

Patch Set 3 : Prevent test from setting -1 page scale factor. #

Total comments: 2

Patch Set 4 : Apply the comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -0 lines) Patch
M third_party/WebKit/Source/core/testing/Internals.cpp View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (12 generated)
sunxd
Hi Ali, I'm not sure if I put the test in the right directory, and ...
4 years, 3 months ago (2016-09-19 15:53:58 UTC) #3
ajuma
https://codereview.chromium.org/2350163002/diff/1/third_party/WebKit/LayoutTests/fast/dom/viewport/viewport-invalid-page-scale-factor.html File third_party/WebKit/LayoutTests/fast/dom/viewport/viewport-invalid-page-scale-factor.html (right): https://codereview.chromium.org/2350163002/diff/1/third_party/WebKit/LayoutTests/fast/dom/viewport/viewport-invalid-page-scale-factor.html#newcode8 third_party/WebKit/LayoutTests/fast/dom/viewport/viewport-invalid-page-scale-factor.html:8: ::-webkit-scrollbar { Is this part needed? https://codereview.chromium.org/2350163002/diff/1/third_party/WebKit/LayoutTests/fast/dom/viewport/viewport-invalid-page-scale-factor.html#newcode16 third_party/WebKit/LayoutTests/fast/dom/viewport/viewport-invalid-page-scale-factor.html:16: return ...
4 years, 3 months ago (2016-09-19 17:37:40 UTC) #4
sunxd
PTAL https://codereview.chromium.org/2350163002/diff/1/third_party/WebKit/LayoutTests/fast/dom/viewport/viewport-invalid-page-scale-factor.html File third_party/WebKit/LayoutTests/fast/dom/viewport/viewport-invalid-page-scale-factor.html (right): https://codereview.chromium.org/2350163002/diff/1/third_party/WebKit/LayoutTests/fast/dom/viewport/viewport-invalid-page-scale-factor.html#newcode8 third_party/WebKit/LayoutTests/fast/dom/viewport/viewport-invalid-page-scale-factor.html:8: ::-webkit-scrollbar { On 2016/09/19 17:37:39, ajuma wrote: > ...
4 years, 3 months ago (2016-09-19 18:54:33 UTC) #6
ajuma
https://codereview.chromium.org/2350163002/diff/20001/third_party/WebKit/LayoutTests/TestExpectations File third_party/WebKit/LayoutTests/TestExpectations (right): https://codereview.chromium.org/2350163002/diff/20001/third_party/WebKit/LayoutTests/TestExpectations#newcode131 third_party/WebKit/LayoutTests/TestExpectations:131: crbug.com/640500 fast/dom/viewport/viewport-invalid-page-scale-factor.html [ NeedsRebaseline ] Would it be possible ...
4 years, 3 months ago (2016-09-19 18:58:58 UTC) #7
bokan
https://codereview.chromium.org/2350163002/diff/20001/third_party/WebKit/Source/core/frame/PageScaleConstraints.cpp File third_party/WebKit/Source/core/frame/PageScaleConstraints.cpp (left): https://codereview.chromium.org/2350163002/diff/20001/third_party/WebKit/Source/core/frame/PageScaleConstraints.cpp#oldcode61 third_party/WebKit/Source/core/frame/PageScaleConstraints.cpp:61: if (pageScaleFactor == -1) I don't think this is ...
4 years, 3 months ago (2016-09-19 19:01:21 UTC) #8
sunxd
On 2016/09/19 19:01:21, bokan wrote: > https://codereview.chromium.org/2350163002/diff/20001/third_party/WebKit/Source/core/frame/PageScaleConstraints.cpp > File third_party/WebKit/Source/core/frame/PageScaleConstraints.cpp (left): > > https://codereview.chromium.org/2350163002/diff/20001/third_party/WebKit/Source/core/frame/PageScaleConstraints.cpp#oldcode61 > ...
4 years, 3 months ago (2016-09-19 20:02:33 UTC) #9
bokan
On 2016/09/19 20:02:33, sunxd wrote: > On 2016/09/19 19:01:21, bokan wrote: > > > https://codereview.chromium.org/2350163002/diff/20001/third_party/WebKit/Source/core/frame/PageScaleConstraints.cpp ...
4 years, 3 months ago (2016-09-19 20:31:26 UTC) #10
sunxd
PTAL
4 years, 3 months ago (2016-09-20 17:19:08 UTC) #12
bokan
No need to test Internals methods, just remove the test. https://codereview.chromium.org/2350163002/diff/40001/third_party/WebKit/Source/core/testing/Internals.cpp File third_party/WebKit/Source/core/testing/Internals.cpp (right): https://codereview.chromium.org/2350163002/diff/40001/third_party/WebKit/Source/core/testing/Internals.cpp#newcode1883 ...
4 years, 3 months ago (2016-09-20 17:32:09 UTC) #13
sunxd
PTAL https://codereview.chromium.org/2350163002/diff/40001/third_party/WebKit/Source/core/testing/Internals.cpp File third_party/WebKit/Source/core/testing/Internals.cpp (right): https://codereview.chromium.org/2350163002/diff/40001/third_party/WebKit/Source/core/testing/Internals.cpp#newcode1883 third_party/WebKit/Source/core/testing/Internals.cpp:1883: if (scaleFactor == -1) On 2016/09/20 17:32:09, bokan ...
4 years, 3 months ago (2016-09-20 17:47:10 UTC) #16
bokan
lgtm
4 years, 3 months ago (2016-09-20 17:47:43 UTC) #17
bokan
FYI for the future, if there's a clusterfuzz crash that's only exploitable via unexposed internal ...
4 years, 3 months ago (2016-09-20 17:50:28 UTC) #18
sunxd
On 2016/09/20 17:50:28, bokan wrote: > FYI for the future, if there's a clusterfuzz crash ...
4 years, 3 months ago (2016-09-20 19:18:15 UTC) #21
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/2350163002/60001
4 years, 3 months ago (2016-09-20 19:18:47 UTC) #24
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 3 months ago (2016-09-20 19:25:03 UTC) #26
commit-bot: I haz the power
4 years, 3 months ago (2016-09-20 19:27:31 UTC) #28
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/2b5d011b487c215564e66393bd7dd1e71021ea95
Cr-Commit-Position: refs/heads/master@{#419839}

Powered by Google App Engine
This is Rietveld 408576698