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

Issue 2702423002: Detect webview size change by motion instead of expected size. (Closed)

Created:
3 years, 10 months ago by yamaguchi
Modified:
3 years, 10 months ago
Reviewers:
fukino
CC:
chromium-reviews, oka+watch_chromium.org, rginda+watch_chromium.org, mtomasz+watch_chromium.org, yamaguchi+watch_chromium.org, fukino+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Detect webview size change by motion instead of expected size. This is a workaround to avoid that the webview size never gets to the expected size, thus it does not issue resizeComplete message at all. One caveat of this method is that when there is an animation jank longer than the polling interval (200ms), it'll be detected as the false end of the animation. In this case, the resizeComplete message won't be issued after actual end of the animation. BUG=693416 TEST=Open share dialog in Files.app, enter "." as email address, click "Send" button. Verify the error message is visible. CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2702423002 Cr-Commit-Position: refs/heads/master@{#451902} Committed: https://chromium.googlesource.com/chromium/src/+/479ccd4b4d85396ed50eed8ce07b1b7dd9199109

Patch Set 1 #

Patch Set 2 : Use local variable for readability. #

Total comments: 8

Patch Set 3 : Reflect review comments. #

Total comments: 9

Patch Set 4 : Fix comment style. #

Patch Set 5 : Remove unused binding. #

Patch Set 6 : Remove unused binding. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -6 lines) Patch
M ui/file_manager/file_manager/foreground/js/ui/share_dialog.js View 1 2 3 4 5 2 chunks +23 lines, -6 lines 0 comments Download

Messages

Total messages: 37 (23 generated)
yamaguchi
ptal
3 years, 10 months ago (2017-02-21 10:02:54 UTC) #9
fukino
https://codereview.chromium.org/2702423002/diff/20001/ui/file_manager/file_manager/foreground/js/ui/share_dialog.js File ui/file_manager/file_manager/foreground/js/ui/share_dialog.js (right): https://codereview.chromium.org/2702423002/diff/20001/ui/file_manager/file_manager/foreground/js/ui/share_dialog.js#newcode32 ui/file_manager/file_manager/foreground/js/ui/share_dialog.js:32: * Timeout for detecting the end of resizing animation. ...
3 years, 10 months ago (2017-02-22 02:38:25 UTC) #13
yamaguchi
https://codereview.chromium.org/2702423002/diff/20001/ui/file_manager/file_manager/foreground/js/ui/share_dialog.js File ui/file_manager/file_manager/foreground/js/ui/share_dialog.js (right): https://codereview.chromium.org/2702423002/diff/20001/ui/file_manager/file_manager/foreground/js/ui/share_dialog.js#newcode32 ui/file_manager/file_manager/foreground/js/ui/share_dialog.js:32: * Timeout for detecting the end of resizing animation. ...
3 years, 10 months ago (2017-02-22 03:27:45 UTC) #16
fukino
https://codereview.chromium.org/2702423002/diff/40001/ui/file_manager/file_manager/foreground/js/ui/share_dialog.js File ui/file_manager/file_manager/foreground/js/ui/share_dialog.js (right): https://codereview.chromium.org/2702423002/diff/40001/ui/file_manager/file_manager/foreground/js/ui/share_dialog.js#newcode162 ui/file_manager/file_manager/foreground/js/ui/share_dialog.js:162: // stabilizes. This is a workaround for crbug.com/693416 . ...
3 years, 10 months ago (2017-02-22 03:34:47 UTC) #17
fukino
https://codereview.chromium.org/2702423002/diff/40001/ui/file_manager/file_manager/foreground/js/ui/share_dialog.js File ui/file_manager/file_manager/foreground/js/ui/share_dialog.js (right): https://codereview.chromium.org/2702423002/diff/40001/ui/file_manager/file_manager/foreground/js/ui/share_dialog.js#newcode164 ui/file_manager/file_manager/foreground/js/ui/share_dialog.js:164: // it from frame drops. four spaces before 'it' ...
3 years, 10 months ago (2017-02-22 03:47:23 UTC) #18
yamaguchi
https://codereview.chromium.org/2702423002/diff/40001/ui/file_manager/file_manager/foreground/js/ui/share_dialog.js File ui/file_manager/file_manager/foreground/js/ui/share_dialog.js (right): https://codereview.chromium.org/2702423002/diff/40001/ui/file_manager/file_manager/foreground/js/ui/share_dialog.js#newcode162 ui/file_manager/file_manager/foreground/js/ui/share_dialog.js:162: // stabilizes. This is a workaround for crbug.com/693416 . ...
3 years, 10 months ago (2017-02-22 04:05:29 UTC) #19
fukino
https://codereview.chromium.org/2702423002/diff/40001/ui/file_manager/file_manager/foreground/js/ui/share_dialog.js File ui/file_manager/file_manager/foreground/js/ui/share_dialog.js (right): https://codereview.chromium.org/2702423002/diff/40001/ui/file_manager/file_manager/foreground/js/ui/share_dialog.js#newcode185 ui/file_manager/file_manager/foreground/js/ui/share_dialog.js:185: setTimeout(checkSize.bind(this, -1, -1), On 2017/02/22 03:34:47, fukino wrote: > ...
3 years, 10 months ago (2017-02-22 04:13:51 UTC) #20
yamaguchi
https://codereview.chromium.org/2702423002/diff/40001/ui/file_manager/file_manager/foreground/js/ui/share_dialog.js File ui/file_manager/file_manager/foreground/js/ui/share_dialog.js (right): https://codereview.chromium.org/2702423002/diff/40001/ui/file_manager/file_manager/foreground/js/ui/share_dialog.js#newcode185 ui/file_manager/file_manager/foreground/js/ui/share_dialog.js:185: setTimeout(checkSize.bind(this, -1, -1), On 2017/02/22 04:13:51, fukino wrote: > ...
3 years, 10 months ago (2017-02-22 04:24:16 UTC) #23
fukino
lgtm
3 years, 10 months ago (2017-02-22 04:27:49 UTC) #24
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/2702423002/80001
3 years, 10 months ago (2017-02-22 04:28:57 UTC) #27
fukino
Sorry, lgtm WITH A NIT. https://codereview.chromium.org/2702423002/diff/40001/ui/file_manager/file_manager/foreground/js/ui/share_dialog.js File ui/file_manager/file_manager/foreground/js/ui/share_dialog.js (right): https://codereview.chromium.org/2702423002/diff/40001/ui/file_manager/file_manager/foreground/js/ui/share_dialog.js#newcode179 ui/file_manager/file_manager/foreground/js/ui/share_dialog.js:179: setTimeout(checkSize.bind(this, newWidth, newHeight), checkSize.bind(null, ...
3 years, 10 months ago (2017-02-22 04:31:05 UTC) #28
yamaguchi
https://codereview.chromium.org/2702423002/diff/40001/ui/file_manager/file_manager/foreground/js/ui/share_dialog.js File ui/file_manager/file_manager/foreground/js/ui/share_dialog.js (right): https://codereview.chromium.org/2702423002/diff/40001/ui/file_manager/file_manager/foreground/js/ui/share_dialog.js#newcode179 ui/file_manager/file_manager/foreground/js/ui/share_dialog.js:179: setTimeout(checkSize.bind(this, newWidth, newHeight), On 2017/02/22 04:31:05, fukino wrote: > ...
3 years, 10 months ago (2017-02-22 04:36:28 UTC) #30
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/2702423002/100001
3 years, 10 months ago (2017-02-22 04:37:29 UTC) #33
commit-bot: I haz the power
3 years, 10 months ago (2017-02-22 06:44:45 UTC) #37
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/479ccd4b4d85396ed50eed8ce07b...

Powered by Google App Engine
This is Rietveld 408576698