Open Bug 1696419 Opened 3 years ago Updated 2 years ago

Firefox autocompletes hidden form inputs after location.reload()

Categories

(Core :: DOM: Forms, defect, P3)

Firefox 86
defect

Tracking

()

UNCONFIRMED

People

(Reporter: adam.tomecek, Unassigned)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.72 Safari/537.36

Steps to reproduce:

My Rails page has form with hidden input to set HTTP submit method - put in this example.

Re-loading the page with location.reload() changes hidden input value - the form is not present on the page before reload.

  • HTTP from the server is correct with put as a value for _method hidden input
  • happens only in Firefox (tested on clean Mac version and WIndows version with some Extensions)
  • full page reload solves the problem (not Control/Command + R)
  • turning autocomplete for the form also solves the problem

Actual results:

After location.reload() value in hidden form input is changed.

Expected results:

Hidden form input shouldn't be autocompleted/changed by browser.

The Bugbug bot thinks this bug should belong to the 'Core::DOM: Core & HTML' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: Untriaged → DOM: Core & HTML
Product: Firefox → Core

Pinging John since this is also form related:

Component: DOM: Core & HTML → DOM: Forms
Flags: needinfo?(jdai)

Yes, I will take a look. Keep NI for tracking.

This can be worked around by tweaking the autocomplete preference .

Severity: -- → S3
Flags: needinfo?(jdai)
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: