New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 688009 link

Starred by 0 users

Issue metadata

Status: Verified
Owner:
Closed: Feb 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: iOS
Pri: 1
Type: Bug-Regression



Sign in to add a comment

Incorrect page loaded when navigating from security interstitial page using history stack

Project Member Reported by srikanthg@chromium.org, Feb 2 2017

Issue description

App Version: 57.0.2987.18 beta
iOS Version: 10.3, 9.3.5
Device: iPhone7. iPad mini
URL: na

Steps to reproduce:
  1. Launch Google Chrome beta
  2. Navigate to www.amazon.com
  3. In the same tab, navigate to badssl.com
  4. Tap on the link "expired"
  5. Long tap on back arrow from toolbar and select 'New Tab'

Observed results: badssl.com page is loaded

Expected results: New tab page should be displayed

Number of times you were able to reproduce: 5/5
Bug reproducible after clean install: Yes
Bug reproducible after clearing cache and cookies: Yes
Bug reproducible on Chrome Mobile on Android: NA
Bug reproducible on Safari/Firefox: Firefox: NA, Safari: NA
Bug reproducible on current stable build (App Version, iOS Version): M56 NO
Bug reproducible on the current beta channel build (App Version, iOS Version): M57 Yes

Link to video/image: https://drive.google.com/file/d/0B-xmXLQhjeKucFdIamtLZXFMTVk/view
 
Cc: -eugene...@chromium.org
Owner: eugene...@chromium.org
Status: Assigned (was: Untriaged)
Components: UI>Browser>Navigation
Labels: -Pri-2 ReleaseBlock-Stable M-57 Pri-1
Regression from pending navigation index feature.
Is it the same root cause as 688047 ?
Cc: cma...@chromium.org
cmasso@, it is unlikely have the same root cause as 688047.
Fix on review: https://codereview.chromium.org/2687343003/
its landing is blocked by navigation related bugs, which are being fixed by kkhorimoto
Status: Started (was: Assigned)
Project Member

Comment 7 by bugdroid1@chromium.org, Feb 14 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/b2517f141263ee8913024a3a96cd909423ad7214

commit b2517f141263ee8913024a3a96cd909423ad7214
Author: eugenebut <eugenebut@chromium.org>
Date: Tue Feb 14 03:21:43 2017

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}

[modify] https://crrev.com/b2517f141263ee8913024a3a96cd909423ad7214/ios/chrome/browser/tabs/tab.mm
[modify] https://crrev.com/b2517f141263ee8913024a3a96cd909423ad7214/ios/web/interstitials/web_interstitial_impl.mm
[modify] https://crrev.com/b2517f141263ee8913024a3a96cd909423ad7214/ios/web/web_state/ui/crw_web_controller.mm

Labels: Merge-Request-57
Status: Fixed (was: Started)
Project Member

Comment 9 by sheriffbot@chromium.org, Feb 14 2017

Labels: -Merge-Request-57 Hotlist-Merge-Review Merge-Review-57
This bug requires manual review: Less than 2 weeks to go before AppStore submit on M57
Please contact the milestone owner if you have questions.
Owners: amineer@(clank), cmasso@(bling), ketakid@(cros), govind@(desktop)

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Status: Verified (was: Fixed)
Verified on M58.03013.0 canary
Device: iPhone7
iOS: 10.3

Taping on New tab redirects to New Tab page correctly.
Labels: -Hotlist-Merge-Review -Merge-Review-57 Merge-Approved-57
Project Member

Comment 12 by bugdroid1@chromium.org, Feb 16 2017

Labels: -merge-approved-57 merge-merged-2987
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/9674693c37dc34ad55e2f21f19050ed2938d6d1c

commit 9674693c37dc34ad55e2f21f19050ed2938d6d1c
Author: eugenebut <eugenebut@chromium.org>
Date: Thu Feb 16 01:36:27 2017

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 
TBR=kkhorimoto@chromium.org
NOTRY=true
NOPRESUBMIT=true

Review-Url: https://codereview.chromium.org/2687343003
Cr-Commit-Position: refs/heads/master@{#450220}
(cherry picked from commit b2517f141263ee8913024a3a96cd909423ad7214)

Review-Url: https://codereview.chromium.org/2694623013
Cr-Commit-Position: refs/branch-heads/2987@{#537}
Cr-Branched-From: ad51088c0e8776e8dcd963dbe752c4035ba6dab6-refs/heads/master@{#444943}

[modify] https://crrev.com/9674693c37dc34ad55e2f21f19050ed2938d6d1c/ios/chrome/browser/tabs/tab.mm
[modify] https://crrev.com/9674693c37dc34ad55e2f21f19050ed2938d6d1c/ios/web/interstitials/web_interstitial_impl.mm
[modify] https://crrev.com/9674693c37dc34ad55e2f21f19050ed2938d6d1c/ios/web/web_state/ui/crw_web_controller.mm

The cherry pick seems to have had conflicts but the resolution breaks the build.

The CL:
https://codereview.chromium.org/2687343003
has less changes than the cherrypick:
https://paste.googleplex.com/6301052248784896
Project Member

Comment 15 by bugdroid1@chromium.org, Feb 16 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/aa2485e99f2a87ab0fe88e6185960c9a153f0e4f

commit aa2485e99f2a87ab0fe88e6185960c9a153f0e4f
Author: eugenebut <eugenebut@chromium.org>
Date: Thu Feb 16 19:01:23 2017

Fixed compilation after 688009 cherry-pick

The problem was caused by incorrect merge conflict resolution.

BUG= 688009 
NOTRY=true
NOPRESUBMIT=true

Review-Url: https://codereview.chromium.org/2698203004
Cr-Commit-Position: refs/branch-heads/2987@{#552}
Cr-Branched-From: ad51088c0e8776e8dcd963dbe752c4035ba6dab6-refs/heads/master@{#444943}

[modify] https://crrev.com/aa2485e99f2a87ab0fe88e6185960c9a153f0e4f/ios/web/web_state/ui/crw_web_controller.mm

Verified the issue on the build 57.0.2987.72 beta tested on iPhone7+(iOS 10).
User is navigated to newtab on Taping on New tab,works fine

Sign in to add a comment