New issue
Advanced search Search tips

Issue 663224 link

Starred by 3 users

Issue metadata

Status: WontFix
Owner:
Closed: Mar 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 2
Type: Bug



Sign in to add a comment

Password field counter is not decremented when an iframe is hidden

Project Member Reported by est...@chromium.org, Nov 8 2016

Issue description

Version: 56.0.2912.0
OS: Mac

What steps will reproduce the problem?
(1) Visit http://example.com
(2) Run the following Javascript in the devtools console:
var i = document.createElement("iframe")
i.src="http://http-password.badssl.com"
document.body.appendChild(i)
(3) Observe the "Not secure" warning in the omnibox.
(4) Run the following javascript:
i.style="display:none;"

What is the expected output?
The "Not secure" omnibox warning goes away.

What do you see instead?
The "Not secure" warning stays in the omnibox.

Layout objects must not get destroyed when an iframe is hidden.

This is probably what's happening on times.com as well.
 
Components: -UI>Browser>Omnibox UI>Browser>Omnibox>SecurityIndicators
The "Not Secure" warning also remains if you set .visibility="hidden" or .visibility="collapse" on the INPUT TYPE=password element. 

Setting .display="none" directly on the element is effective at hiding the indicator.
I've added a clickable repro at http://webdbg.com/test/forms/combo.html -- just use the links above the middle frame.

If you remove the removeChild the frame from the overall page, the indicator hides as expected.

Comment 3 by est...@chromium.org, Nov 17 2016

Owner: est...@chromium.org
Status: Assigned (was: Available)

Comment 4 by est...@chromium.org, Mar 15 2017

Status: WontFix (was: Assigned)
We decided that this wasn't worth an ad hoc fix. The iframe 'display: none' case should be taken care of by  issue 650433 .

Sign in to add a comment