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

Issue 2687343003: Fixed navigation for displayed SSL interstitials. (Closed)

Created:
3 years, 10 months ago by Eugene But (OOO till 7-30)
Modified:
3 years, 10 months ago
Reviewers:
kkhorimoto
CC:
chromium-reviews, marq+watch_chromium.org, Eugene But (OOO till 7-30), pkl (ping after 24h if needed), noyau+watch_chromium.org, sdefresne+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fixed navigation for displayed SSL interstitials. Navigation did not work for interstitials for 2 reasons which are fixed in this CL: 1.) |WebInterstitialImpl::DontProceed| should not reload. Reloading stops pending navigation and reloads last committed item, which is not always correct target item. On other platforms InterstitialPageImpl::DontProceed does not reload. 2.) |clearTransientContentView| removes pending item, so it should be called before pending navigation is initiated. So next |clearTransientContentView| call will be no-op. This CL changes the behavior, so when user taps "BACK TO SAFETY" the page is not reloaded. This is fine, but in order to update omnibox URL, tab should subscribe to webStateDidDismissInterstitial: callback and update the toolbar. BUG=677193, 677190, 688009 Review-Url: https://codereview.chromium.org/2687343003 Cr-Commit-Position: refs/heads/master@{#450220} Committed: https://chromium.googlesource.com/chromium/src/+/b2517f141263ee8913024a3a96cd909423ad7214

Patch Set 1 #

Patch Set 2 : Preserve old behavior of pending navigation index is disabled. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -2 lines) Patch
M ios/chrome/browser/tabs/tab.mm View 1 chunk +4 lines, -0 lines 0 comments Download
M ios/web/interstitials/web_interstitial_impl.mm View 1 1 chunk +5 lines, -2 lines 0 comments Download
M ios/web/web_state/ui/crw_web_controller.mm View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (9 generated)
Eugene But (OOO till 7-30)
3 years, 10 months ago (2017-02-11 03:17:15 UTC) #4
kkhorimoto
lgtm
3 years, 10 months ago (2017-02-13 23:52:19 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/2687343003/20001
3 years, 10 months ago (2017-02-14 03:07:02 UTC) #10
commit-bot: I haz the power
3 years, 10 months ago (2017-02-14 03:22:25 UTC) #13
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/b2517f141263ee8913024a3a96cd...

Powered by Google App Engine
This is Rietveld 408576698