Jump to content


Photo

Google Chrome autofill incorrectly fill all password related edits on different forms with same text.


  • Please log in to reply
7 replies to this topic

#1 rgreat

rgreat

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 161 posts

Posted 14 February 2018 - 03:36 PM

How to fix that behaviour?

 

Attached File  Clipboard01.jpg   37.82KB   4 downloadsAttached File  Clipboard02.jpg   56.97KB   4 downloads


  • 0

#2 Delphi Developer

Delphi Developer

    Advanced Member

  • Moderators
  • 4119 posts

Posted 14 February 2018 - 03:59 PM

Hi,

 

Sorry, can you explain a little more, or by making a simple testcase for this ?!


  • 0

#3 rgreat

rgreat

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 161 posts

Posted 14 February 2018 - 04:11 PM

On login form i have TUniEdit component with name "PasswordEdit" 

PasswordEdit.PasswordChar='*'

 

At login Google Chrome asks you to store password:

Attached File  Clipboard01.jpg   15.39KB   5 downloads

Press "Save".

 

On a completely different form in same application i have TUniEdit component with name "UniEdit5".

UniEdit5.PasswordChar='*'

 

When i open this form Google Chrome overwrite UniEdit5.text with password saved from LoginDlg.PasswordEdit.Text.

 

That's totally unacceptable behaviour.


  • 0

#4 Delphi Developer

Delphi Developer

    Advanced Member

  • Moderators
  • 4119 posts

Posted 14 February 2018 - 04:28 PM

Need to analyze. It's better if you make a simple test case for this


  • 0

#5 rgreat

rgreat

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 161 posts

Posted 14 February 2018 - 04:42 PM

Attached File  Clipboard01.jpg   26.01KB   4 downloads Attached File  Clipboard02.jpg   27.72KB   4 downloads

 

Attached File  LoginTest.zip   50.69KB   1 downloads


  • 0

#6 Delphi Developer

Delphi Developer

    Advanced Member

  • Moderators
  • 4119 posts

Posted 14 February 2018 - 04:44 PM

Ok, thanks for the testcase, I will check


  • 0

#7 Delphi Developer

Delphi Developer

    Advanced Member

  • Moderators
  • 4119 posts

Posted 14 February 2018 - 05:36 PM

Can you try this approach for now ?!:

 

MainForm -> UniEdit1 -> ...

function afterrender(sender, eOpts)
{
    var me=sender.inputEl;      
    me.set({
        readonly: "readonly"
    });
    
    sender.addListener(
        'focus',
        function(sender, e, eOpts) {
            me.el.dom.removeAttribute('readonly');
        }
    );
}

http://forums.unigui...rds/#entry41783


  • 0

#8 rgreat

rgreat

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 161 posts

Posted 14 February 2018 - 05:48 PM

Yes, it works. 

 

Thank you.


  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users