Closed Bug 1875334 Opened 9 months ago Closed 8 months ago

history.replaceState does not update address bar URL after manually modifying the URL

Categories

(Firefox :: Address Bar, defect)

Firefox 121
defect

Tracking

()

RESOLVED DUPLICATE of bug 1425240

People

(Reporter: rheng16, Unassigned)

Details

Attachments

(1 file)

Attached file SampleRepro.zip

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

Steps to reproduce:

  1. Load a page that calls replaceState
  2. Manually edit the URL
  3. Trigger the replaceState call

You can repro using this project:
https://codesandbox.io/p/sandbox/firefox-replace-state-bug-pdw523

  1. Load the page on http://localhost:3000
  2. Click the button and see that the address bar updates to http://localhost:3000/?test0
  3. Modify the URL to http://localhost:3000/?modified
  4. Click the button again

Note, you will need to download an run it locally. The codemirror simulated browser has the correct functioning behavior.

Actual results:

The URL in the address bar did not update

Expected results:

The replace state should have updated the URL in the address bar.

The Bugbug bot thinks this bug should belong to the 'Firefox::Address Bar' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Address Bar
Status: UNCONFIRMED → RESOLVED
Closed: 8 months ago
Duplicate of bug: 1425240
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: