Issue metadata
Sign in to add a comment
|
Red danger triangle is displayed even after refreshing the page |
||||||||||||||||||||||||
Issue descriptionApp Version: 65.0.3325.59 Beta iOS Version: 11.3 beta 2 and 10.3.3 Device: iPhone and iPad Steps to reproduce: 1. Launch chrome 2. Go to chrome://flags, in enable-mark-http-as drop down select “Enabled (mark with a Not Secure warning and dangerous on form edits)” 3. Relaunch chrome and go to bbc.com, wait for the page to load 4. Tap on search button and enter any text (red danger triangle is displayed) 5. Dismiss keyboard and refresh the page 6. Go back or revisit to the same page in the same tab Observed results: In step 5 or 6 notice that red danger triangle is still displayed Expected results: Red danger triangle shouldn’t displayed on refresh of the page 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: No on M65 Beta Bug reproducible on Safari/Firefox: Firefox: NA, Safari: NA Bug reproducible on current stable build (App Version, iOS Version): NA (Feature is new in M65) Bug reproducible on the current beta channel build (App Version, iOS Version): Yes on M65 Link to video/image: iOS behavior: https://drive.google.com/file/d/1QRRpDrfwljMe9ye-G2bDUTxVBLuzXrO5/view?usp=sharing Android behavior: https://drive.google.com/file/d/1mtyEDru7rgSMijF_mztqL6rQP2pZgVDj/view?usp=sharing
,
Feb 8 2018
By the way I don't think this should block the M65 experiment because it's an existing bug and visibility is very low (only the small % of iOS users who are opted in to this field trial).
,
Feb 8 2018
Yeah, I found a few edge cases on iOS when testing Phase 2. I believe there was also a case where HB/Mixed Content warnings linger on back navigation, but these were arguably justified because the state of the page/form was also restored.
,
Oct 12
cthomp, does this bug matter more now as we are progressing forwards in # of red triangles shown?
,
Oct 12
Yes, it's probably a good idea to clear the downgraded indicator on reload (but not on history navigations, I think, as the form state is restored). I can look into how to best fix this (following on c#1). (This behavior reproduces on the latest Chrome Dev on iOS (71.0.3577.0) with the new slim navigation manager enabled and the "mark with a Not Secure warning and dangerous on form edits" option for HTTP-Bad.)
,
Oct 16
Thanks, Chris
,
Oct 22
I've sent out an initial CL for review that fixes this: https://crrev.com/c/1292055
,
Oct 24
The latest version of the CL adds a check in InsecureInputTabHelper::DidFinishNavigation() to clear the input events flag and update the visible security state for the tab. Patchset 4 includes a check to not clear this for back/forward navigations, which can retain and restore the form state... sometimes. Brief testing shows that form state is restored for direct back/forward navigations, but not if you go back twice and then forward twice back to the page (testing on http://http-textarea.badssl.com/). If there isn't a clear way to detect when form state was restored or not, then I think it would be best to not clear the input events data on these navigations. This would have us err on downgrading the indicator less often (even if some prior user entered text is in a form on the page) rather than over-zealously downgrade, which I think is a worthwhile tradeoff. If the user proceeds to make further form edits, then the indicator will be downgraded again. This behavior is implemented in the latest Patchset 5. I'm going to double check with the iOS folks on whether it is possible to detect form state restoration with WKWebView (this might be implemented by that underlying system rather than by Chrome). If not, I'll go with the clear-on-back-forward option. (Refresh currently does not restore form state on iOS Chrome, and is correctly handled in the latest patchset.)
,
Nov 2
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/930d854cf147224c22fd413213fd2421f7111349 commit 930d854cf147224c22fd413213fd2421f7111349 Author: Chris Thompson <cthomp@chromium.org> Date: Fri Nov 02 23:32:22 2018 Clear SSL user data on committed navigations on iOS This adds a |DidFinishNavigation| method to InsecureInputTabHelper, which clears the SSL user data for committed navigations that aren't same-document (where form input is still retained). When a user enters text in a form on an HTTP page, the security state is downgraded to the "dangerous triangle" icon -- clearing the SSL user data causes this state to correctly reset on when reloading the page. Bug: 810374 Change-Id: I95456131689de9653688ab5d4061d338f92fa4e3 Reviewed-on: https://chromium-review.googlesource.com/c/1292055 Commit-Queue: Christopher Thompson <cthomp@chromium.org> Reviewed-by: Eugene But <eugenebut@chromium.org> Cr-Commit-Position: refs/heads/master@{#605093} [modify] https://crrev.com/930d854cf147224c22fd413213fd2421f7111349/ios/chrome/browser/ssl/insecure_input_tab_helper.h [modify] https://crrev.com/930d854cf147224c22fd413213fd2421f7111349/ios/chrome/browser/ssl/insecure_input_tab_helper.mm [modify] https://crrev.com/930d854cf147224c22fd413213fd2421f7111349/ios/chrome/browser/ssl/ios_security_state_tab_helper_unittest.mm
,
Nov 9
|
|||||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||||
Comment 1 by est...@chromium.org
, Feb 8 2018Owner: est...@chromium.org
Status: Assigned (was: Untriaged)