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

Issue 2616893004: Fix crash with viewport units when using auto resize mode. (Closed)

Created:
3 years, 11 months ago by bokan
Modified:
3 years, 11 months ago
Reviewers:
rune
CC:
chromium-reviews, blink-reviews, kinuko+watch
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix crash with viewport units when using auto resize mode. This crash is caused because of a divide-by-zero when calculating viewport units. The zero width visual viewport occurs because the WebView is responsible for resizing the VisualViewport but the autoresize code resizes the FrameView. This does eventually lead to resizing the WebView when a layout occurs and calls though to WebView::layoutUpdated, however, until that happens the layout will use the 0 value. This isn't ever a problem since the calculation that's dividing by 0 is used to adjust the browser controls to the minimum page scale but autoresize isn't ever used on Android, which is the only platform that uses browser controls and a non-1 minimum page scale. BUG=667712 Review-Url: https://codereview.chromium.org/2616893004 Cr-Commit-Position: refs/heads/master@{#442048} Committed: https://chromium.googlesource.com/chromium/src/+/db2df0adddb5ab717ecbdc1c57e1e7aa958908da

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -3 lines) Patch
M third_party/WebKit/Source/core/frame/FrameView.cpp View 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/web/tests/VisualViewportTest.cpp View 1 chunk +20 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (5 generated)
bokan
Hey Rune, I took a deeper look into this and I think your original fix ...
3 years, 11 months ago (2017-01-06 15:57:05 UTC) #3
rune
lgtm
3 years, 11 months ago (2017-01-06 18:36:01 UTC) #4
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/2616893004/1
3 years, 11 months ago (2017-01-06 18:36:58 UTC) #6
commit-bot: I haz the power
3 years, 11 months ago (2017-01-06 21:06:11 UTC) #9
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/db2df0adddb5ab717ecbdc1c57e1...

Powered by Google App Engine
This is Rietveld 408576698