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

Issue 982333003: Don't calculate a shown ratio when top controls height is 0. (Closed)

Created:
5 years, 9 months ago by bokan
Modified:
5 years, 9 months ago
CC:
cc-bugs_chromium.org, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Don't calculate a shown ratio when top controls height is 0. This was causing a crash in Blink with some Chrome Android UI pages. These pages would disable top controls by setting the height to 0 but when we scroll the page we calculate the "shown ratio" by dividing by height. This the divided-by-0 value made its way down to Blink. BUG=460007 Committed: https://crrev.com/bfc7eb20e9d2bccc06f16c25d7e95870bbceaa3b Cr-Commit-Position: refs/heads/master@{#319621}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -0 lines) Patch
M cc/input/top_controls_manager.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M cc/input/top_controls_manager_unittest.cc View 3 chunks +20 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (4 generated)
bokan
Alexandre, this is the fix contained in https://codereview.chromium.org/961023002/. That patch got kicked out due to ...
5 years, 9 months ago (2015-03-06 19:04:02 UTC) #2
aelias_OOO_until_Jul13
lgtm
5 years, 9 months ago (2015-03-06 19:27:26 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/982333003/1
5 years, 9 months ago (2015-03-06 20:32:28 UTC) #5
aelias_OOO_until_Jul13
So, instead of the aspect ratio calculation in UpdateViewportContainerSizes, I'm thinking there must be some ...
5 years, 9 months ago (2015-03-06 20:50:20 UTC) #6
bokan
On 2015/03/06 20:50:20, aelias wrote: > So, instead of the aspect ratio calculation in UpdateViewportContainerSizes, ...
5 years, 9 months ago (2015-03-06 20:53:05 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_TIMED_OUT, no build URL) Timed out ...
5 years, 9 months ago (2015-03-06 23:46:56 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/982333003/1
5 years, 9 months ago (2015-03-09 12:38:38 UTC) #11
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years, 9 months ago (2015-03-09 13:41:30 UTC) #12
commit-bot: I haz the power
5 years, 9 months ago (2015-03-09 13:42:20 UTC) #13
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/bfc7eb20e9d2bccc06f16c25d7e95870bbceaa3b
Cr-Commit-Position: refs/heads/master@{#319621}

Powered by Google App Engine
This is Rietveld 408576698