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

Issue 2820013003: Display the web view after commit for non-user-initiated loads. (Closed)

Created:
3 years, 8 months ago by kkhorimoto
Modified:
3 years, 8 months ago
CC:
chromium-reviews, Eugene But (OOO till 7-30), ios-reviews+web_chromium.org, ios-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Display the web view after commit for non-user-initiated loads. The toolbar's visibility and URL is dependent on the visible URL. However, the previous implementation of |-ensureWebViewCreated| would immediately add web view to the hierarchy, even for non-user-initiated loads. This CL updates the web view display logic so that it is displayed at the same time as the toolbar updating. BUG=703222 Review-Url: https://codereview.chromium.org/2820013003 Cr-Commit-Position: refs/heads/master@{#465365} Committed: https://chromium.googlesource.com/chromium/src/+/cd2e9b497d8623d1c2844b6df874e42f865c2631

Patch Set 1 #

Total comments: 2

Patch Set 2 : early return => DCHECK #

Patch Set 3 : DCHECK #

Total comments: 2

Patch Set 4 : self.webView => _webView #

Patch Set 5 : unittest fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -7 lines) Patch
M ios/web/web_state/ui/crw_web_controller.mm View 1 2 3 4 5 chunks +32 lines, -7 lines 0 comments Download

Messages

Total messages: 19 (8 generated)
kkhorimoto
3 years, 8 months ago (2017-04-15 00:44:14 UTC) #2
Eugene But (OOO till 7-30)
https://codereview.chromium.org/2820013003/diff/1/ios/web/web_state/ui/crw_web_controller.mm File ios/web/web_state/ui/crw_web_controller.mm (right): https://codereview.chromium.org/2820013003/diff/1/ios/web/web_state/ui/crw_web_controller.mm#newcode4091 ios/web/web_state/ui/crw_web_controller.mm:4091: if (!self.webView || [_containerView webViewContentView]) When web view can ...
3 years, 8 months ago (2017-04-15 00:48:51 UTC) #3
kkhorimoto
DCHECK
3 years, 8 months ago (2017-04-17 23:42:00 UTC) #4
kkhorimoto
https://codereview.chromium.org/2820013003/diff/1/ios/web/web_state/ui/crw_web_controller.mm File ios/web/web_state/ui/crw_web_controller.mm (right): https://codereview.chromium.org/2820013003/diff/1/ios/web/web_state/ui/crw_web_controller.mm#newcode4091 ios/web/web_state/ui/crw_web_controller.mm:4091: if (!self.webView || [_containerView webViewContentView]) On 2017/04/15 00:48:51, Eugene ...
3 years, 8 months ago (2017-04-17 23:42:10 UTC) #5
Eugene But (OOO till 7-30)
lgtm https://codereview.chromium.org/2820013003/diff/40001/ios/web/web_state/ui/crw_web_controller.mm File ios/web/web_state/ui/crw_web_controller.mm (right): https://codereview.chromium.org/2820013003/diff/40001/ios/web/web_state/ui/crw_web_controller.mm#newcode4130 ios/web/web_state/ui/crw_web_controller.mm:4130: DCHECK(self.webView); nit: s/self.webView/_webView for consistency with line 4131 ...
3 years, 8 months ago (2017-04-18 00:20:13 UTC) #6
kkhorimoto
self.webView => _webView
3 years, 8 months ago (2017-04-18 00:53:25 UTC) #7
kkhorimoto
Comments have been addressed, but there's still some discussion on the bug as to whether ...
3 years, 8 months ago (2017-04-18 00:54:13 UTC) #8
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/2820013003/60001
3 years, 8 months ago (2017-04-18 17:18:51 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/196566)
3 years, 8 months ago (2017-04-18 20:03:34 UTC) #13
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/2820013003/80001
3 years, 8 months ago (2017-04-18 20:31:32 UTC) #16
commit-bot: I haz the power
3 years, 8 months ago (2017-04-18 20:55:51 UTC) #19
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/cd2e9b497d8623d1c2844b6df874...

Powered by Google App Engine
This is Rietveld 408576698