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

Issue 1409033004: Improve page transition type heuristic in WebController (Closed)

Created:
5 years, 1 month ago by stuartmorgan
Modified:
5 years, 1 month ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Improve page transition type heuristic in WebController When guessing the tranistion type for a URL change: - When possible, use specific information from the last main frame load request. - Fall back to guessing based on whether there has been a touch since the last URL change, rather than the last document change. This prevents changes that happen after, e.g., a replaceState from being assumed to be user-initiated. BUG=548636 TEST=On an iPhone with WKWebView enabled, follow a link on yahoo.com, then go back via the browser back button. It should return to the main page. Committed: https://crrev.com/b86705bd3233afdc06ed9079b6f434e7f8180376 Cr-Commit-Position: refs/heads/master@{#357157}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add setDocumentURL: #

Patch Set 3 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -14 lines) Patch
M ios/web/web_state/ui/crw_wk_web_view_web_controller.mm View 1 2 9 chunks +55 lines, -14 lines 0 comments Download

Messages

Total messages: 15 (6 generated)
stuartmorgan
Only the second change is necessary to fix the issue, but since the transition from ...
5 years, 1 month ago (2015-10-29 21:53:40 UTC) #3
Eugene But (OOO till 7-30)
https://codereview.chromium.org/1409033004/diff/1/ios/web/web_state/ui/crw_wk_web_view_web_controller.mm File ios/web/web_state/ui/crw_wk_web_view_web_controller.mm (right): https://codereview.chromium.org/1409033004/diff/1/ios/web/web_state/ui/crw_wk_web_view_web_controller.mm#newcode1261 ios/web/web_state/ui/crw_wk_web_view_web_controller.mm:1261: _touchedSinceLastURLChange = NO; This is not the only place ...
5 years, 1 month ago (2015-10-30 15:10:47 UTC) #4
stuartmorgan
https://codereview.chromium.org/1409033004/diff/1/ios/web/web_state/ui/crw_wk_web_view_web_controller.mm File ios/web/web_state/ui/crw_wk_web_view_web_controller.mm (right): https://codereview.chromium.org/1409033004/diff/1/ios/web/web_state/ui/crw_wk_web_view_web_controller.mm#newcode1261 ios/web/web_state/ui/crw_wk_web_view_web_controller.mm:1261: _touchedSinceLastURLChange = NO; On 2015/10/30 15:10:47, eugenebut wrote: > ...
5 years, 1 month ago (2015-10-30 16:00:01 UTC) #5
Eugene But (OOO till 7-30)
lgtm!
5 years, 1 month ago (2015-10-30 16:04:01 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1409033004/10001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1409033004/10001
5 years, 1 month ago (2015-10-30 16:53:10 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/116994) mac_chromium_gn_rel on tryserver.chromium.mac (JOB_FAILED, ...
5 years, 1 month ago (2015-10-30 16:54:45 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1409033004/30001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1409033004/30001
5 years, 1 month ago (2015-10-30 17:00:58 UTC) #13
commit-bot: I haz the power
Committed patchset #3 (id:30001)
5 years, 1 month ago (2015-10-30 18:49:10 UTC) #14
commit-bot: I haz the power
5 years, 1 month ago (2015-10-30 18:50:11 UTC) #15
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/b86705bd3233afdc06ed9079b6f434e7f8180376
Cr-Commit-Position: refs/heads/master@{#357157}

Powered by Google App Engine
This is Rietveld 408576698