Обсуждение: [pgAdmin4][Patch] - RM 4048 - Disable auto-fill on all dialogues

Поиск
Список
Период
Сортировка

[pgAdmin4][Patch] - RM 4048 - Disable auto-fill on all dialogues

От
Khushboo Vashi
Дата:
Hi,

Please find the attached patch to fix the RM 4048 - Disable auto-fill on all dialogues.

Thanks,
Khushboo

Вложения

Re: [pgAdmin4][Patch] - RM 4048 - Disable auto-fill on all dialogues

От
Dave Page
Дата:
Hi

On Tue, Apr 2, 2019 at 10:37 AM Khushboo Vashi <khushboo.vashi@enterprisedb.com> wrote:
Hi,

Please find the attached patch to fix the RM 4048 - Disable auto-fill on all dialogues.

I guess the additions in server.js were for testing? Many of those fields didn't make sense to have autocomplete enabled, and some were specifically the ones that were annoying me.

That said... this doesn't actually work for me in Chrome. A little investigation reveals this is a common annoyance. Some versions ignore autocomplete="off" but will accept autocomplete="nope" (or some other random string), whilst versions such as the one I'm running right now (72.0.3626.121 on macOS) ignore both. Apparently, that's sort of how it's supposed to work: https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill

After some experimentation, the one thing that worked for me (except on the password field of the server dialog, which I can live with) was setting it to "new-password".

I've attached an updated patch. Can you take a look and try it out on the browsers you have please?
 
--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
Вложения

Re: [pgAdmin4][Patch] - RM 4048 - Disable auto-fill on all dialogues

От
Khushboo Vashi
Дата:


On Tue, Apr 2, 2019 at 8:00 PM Dave Page <dpage@pgadmin.org> wrote:
Hi

On Tue, Apr 2, 2019 at 10:37 AM Khushboo Vashi <khushboo.vashi@enterprisedb.com> wrote:
Hi,

Please find the attached patch to fix the RM 4048 - Disable auto-fill on all dialogues.

I guess the additions in server.js were for testing? Many of those fields didn't make sense to have autocomplete enabled, and some were specifically the ones that were annoying me.

This is not for testing, as per the  RM, disable the autocomplete for all the dialogues except server dialogue and Login page. 
That said... this doesn't actually work for me in Chrome. A little investigation reveals this is a common annoyance. Some versions ignore autocomplete="off" but will accept autocomplete="nope" (or some other random string), whilst versions such as the one I'm running right now (72.0.3626.121 on macOS) ignore both. Apparently, that's sort of how it's supposed to work: https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill

After some experimentation, the one thing that worked for me (except on the password field of the server dialog, which I can live with) was setting it to "new-password".

I've attached an updated patch. Can you take a look and try it out on the browsers you have please?
 
I will check. 
--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

Re: [pgAdmin4][Patch] - RM 4048 - Disable auto-fill on all dialogues

От
Dave Page
Дата:


On Tue, Apr 2, 2019 at 4:00 PM Khushboo Vashi <khushboo.vashi@enterprisedb.com> wrote:
Hi Dave,

On Tue, Apr 2, 2019 at 8:22 PM Khushboo Vashi <khushboo.vashi@enterprisedb.com> wrote:


On Tue, Apr 2, 2019 at 8:00 PM Dave Page <dpage@pgadmin.org> wrote:
Hi

On Tue, Apr 2, 2019 at 10:37 AM Khushboo Vashi <khushboo.vashi@enterprisedb.com> wrote:
Hi,

Please find the attached patch to fix the RM 4048 - Disable auto-fill on all dialogues.

I guess the additions in server.js were for testing? Many of those fields didn't make sense to have autocomplete enabled, and some were specifically the ones that were annoying me.

This is not for testing, as per the  RM, disable the autocomplete for all the dialogues except server dialogue and Login page. 
That said... this doesn't actually work for me in Chrome. A little investigation reveals this is a common annoyance. Some versions ignore autocomplete="off" but will accept autocomplete="nope" (or some other random string), whilst versions such as the one I'm running right now (72.0.3626.121 on macOS) ignore both. Apparently, that's sort of how it's supposed to work: https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill

After some experimentation, the one thing that worked for me (except on the password field of the server dialog, which I can live with) was setting it to "new-password".

I've attached an updated patch. Can you take a look and try it out on the browsers you have please?
 
I will check. 
It didn't work for me. Please see the attached screen-shot.
Tested on Chrome Version 73.0.3683.86 (Official Build) (64-bit) 

Sigh. I think there are actually two issues here:

- Auto-complete (which you see)
- Auto-fill (which I see)

The former being the list of possible options being presented (I only see that for the password), and the latter being the control pre-filled with a value, and coloured to indicate that.

I wonder if both need to be handled in different ways?

FWIW, it's the auto-fill that's really annoying for me, as that requires me to change a value rather than just ignoring a suggestion.
 

Thanks,
Khushboo
--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

Re: [pgAdmin4][Patch] - RM 4048 - Disable auto-fill on all dialogues

От
Khushboo Vashi
Дата:


On Tue, Apr 2, 2019 at 9:25 PM Dave Page <dpage@pgadmin.org> wrote:


On Tue, Apr 2, 2019 at 4:00 PM Khushboo Vashi <khushboo.vashi@enterprisedb.com> wrote:
Hi Dave,

On Tue, Apr 2, 2019 at 8:22 PM Khushboo Vashi <khushboo.vashi@enterprisedb.com> wrote:


On Tue, Apr 2, 2019 at 8:00 PM Dave Page <dpage@pgadmin.org> wrote:
Hi

On Tue, Apr 2, 2019 at 10:37 AM Khushboo Vashi <khushboo.vashi@enterprisedb.com> wrote:
Hi,

Please find the attached patch to fix the RM 4048 - Disable auto-fill on all dialogues.

I guess the additions in server.js were for testing? Many of those fields didn't make sense to have autocomplete enabled, and some were specifically the ones that were annoying me.

This is not for testing, as per the  RM, disable the autocomplete for all the dialogues except server dialogue and Login page. 
That said... this doesn't actually work for me in Chrome. A little investigation reveals this is a common annoyance. Some versions ignore autocomplete="off" but will accept autocomplete="nope" (or some other random string), whilst versions such as the one I'm running right now (72.0.3626.121 on macOS) ignore both. Apparently, that's sort of how it's supposed to work: https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill

After some experimentation, the one thing that worked for me (except on the password field of the server dialog, which I can live with) was setting it to "new-password".

I've attached an updated patch. Can you take a look and try it out on the browsers you have please?
 
I will check. 
It didn't work for me. Please see the attached screen-shot.
Tested on Chrome Version 73.0.3683.86 (Official Build) (64-bit) 

Sigh. I think there are actually two issues here:

- Auto-complete (which you see)
- Auto-fill (which I see)

The former being the list of possible options being presented (I only see that for the password), and the latter being the control pre-filled with a value, and coloured to indicate that.
Only chrome gives the options to autofill below listed fields. Other browsers only save username and password and accordingly they autofill the value for the password.
image.png

 

I wonder if both need to be handled in different ways?
We can set autocomplete to off (or whatever we want to set) which is also not 100 % supported by all the browsers but for the autofill, we need to just disable it from the browser settings. 

FWIW, it's the auto-fill that's really annoying for me, as that requires me to change a value rather than just ignoring a suggestion.
 

Thanks,
Khushboo
--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
Вложения

Re: [pgAdmin4][Patch] - RM 4048 - Disable auto-fill on all dialogues

От
Dave Page
Дата:


On Wed, Apr 3, 2019 at 6:43 AM Khushboo Vashi <khushboo.vashi@enterprisedb.com> wrote:


On Tue, Apr 2, 2019 at 9:25 PM Dave Page <dpage@pgadmin.org> wrote:


On Tue, Apr 2, 2019 at 4:00 PM Khushboo Vashi <khushboo.vashi@enterprisedb.com> wrote:
Hi Dave,

On Tue, Apr 2, 2019 at 8:22 PM Khushboo Vashi <khushboo.vashi@enterprisedb.com> wrote:


On Tue, Apr 2, 2019 at 8:00 PM Dave Page <dpage@pgadmin.org> wrote:
Hi

On Tue, Apr 2, 2019 at 10:37 AM Khushboo Vashi <khushboo.vashi@enterprisedb.com> wrote:
Hi,

Please find the attached patch to fix the RM 4048 - Disable auto-fill on all dialogues.

I guess the additions in server.js were for testing? Many of those fields didn't make sense to have autocomplete enabled, and some were specifically the ones that were annoying me.

This is not for testing, as per the  RM, disable the autocomplete for all the dialogues except server dialogue and Login page. 
That said... this doesn't actually work for me in Chrome. A little investigation reveals this is a common annoyance. Some versions ignore autocomplete="off" but will accept autocomplete="nope" (or some other random string), whilst versions such as the one I'm running right now (72.0.3626.121 on macOS) ignore both. Apparently, that's sort of how it's supposed to work: https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill

After some experimentation, the one thing that worked for me (except on the password field of the server dialog, which I can live with) was setting it to "new-password".

I've attached an updated patch. Can you take a look and try it out on the browsers you have please?
 
I will check. 
It didn't work for me. Please see the attached screen-shot.
Tested on Chrome Version 73.0.3683.86 (Official Build) (64-bit) 

Sigh. I think there are actually two issues here:

- Auto-complete (which you see)
- Auto-fill (which I see)

The former being the list of possible options being presented (I only see that for the password), and the latter being the control pre-filled with a value, and coloured to indicate that.
Only chrome gives the options to autofill below listed fields. Other browsers only save username and password and accordingly they autofill the value for the password.
image.png

 

I wonder if both need to be handled in different ways?
We can set autocomplete to off (or whatever we want to set) which is also not 100 % supported by all the browsers but for the autofill, we need to just disable it from the browser settings. 

OK, well "new-password" seems to work best on Chrome (it certainly fixes my biggest bug-bear). Are you finding that "off" works better on Firefox, Safari and IE/Edge etc? If so, maybe the best option is to set the value based on the browser the user is using, and just make it work as effectively as possible.
 
--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
Вложения

Re: [pgAdmin4][Patch] - RM 4048 - Disable auto-fill on all dialogues

От
Khushboo Vashi
Дата:


On Wed, Apr 3, 2019 at 2:00 PM Dave Page <dpage@pgadmin.org> wrote:


On Wed, Apr 3, 2019 at 6:43 AM Khushboo Vashi <khushboo.vashi@enterprisedb.com> wrote:


On Tue, Apr 2, 2019 at 9:25 PM Dave Page <dpage@pgadmin.org> wrote:


On Tue, Apr 2, 2019 at 4:00 PM Khushboo Vashi <khushboo.vashi@enterprisedb.com> wrote:
Hi Dave,

On Tue, Apr 2, 2019 at 8:22 PM Khushboo Vashi <khushboo.vashi@enterprisedb.com> wrote:


On Tue, Apr 2, 2019 at 8:00 PM Dave Page <dpage@pgadmin.org> wrote:
Hi

On Tue, Apr 2, 2019 at 10:37 AM Khushboo Vashi <khushboo.vashi@enterprisedb.com> wrote:
Hi,

Please find the attached patch to fix the RM 4048 - Disable auto-fill on all dialogues.

I guess the additions in server.js were for testing? Many of those fields didn't make sense to have autocomplete enabled, and some were specifically the ones that were annoying me.

This is not for testing, as per the  RM, disable the autocomplete for all the dialogues except server dialogue and Login page. 
That said... this doesn't actually work for me in Chrome. A little investigation reveals this is a common annoyance. Some versions ignore autocomplete="off" but will accept autocomplete="nope" (or some other random string), whilst versions such as the one I'm running right now (72.0.3626.121 on macOS) ignore both. Apparently, that's sort of how it's supposed to work: https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill

After some experimentation, the one thing that worked for me (except on the password field of the server dialog, which I can live with) was setting it to "new-password".

I've attached an updated patch. Can you take a look and try it out on the browsers you have please?
 
I will check. 
It didn't work for me. Please see the attached screen-shot.
Tested on Chrome Version 73.0.3683.86 (Official Build) (64-bit) 

Sigh. I think there are actually two issues here:

- Auto-complete (which you see)
- Auto-fill (which I see)

The former being the list of possible options being presented (I only see that for the password), and the latter being the control pre-filled with a value, and coloured to indicate that.
Only chrome gives the options to autofill below listed fields. Other browsers only save username and password and accordingly they autofill the value for the password.
image.png

 

I wonder if both need to be handled in different ways?
We can set autocomplete to off (or whatever we want to set) which is also not 100 % supported by all the browsers but for the autofill, we need to just disable it from the browser settings. 

OK, well "new-password" seems to work best on Chrome (it certainly fixes my biggest bug-bear). Are you finding that "off" works better on Firefox, Safari and IE/Edge etc? If so, maybe the best option is to set the value based on the browser the user is using, and just make it work as effectively as possible.
 
Autocomplete  "on" is not working on the Firefox, so not sure about "off".
Firefox 65.0.2 (64-bit) 
--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
Вложения