Crash report: `SecurityError: Attempt to use history.replaceState() more than 100 times per 30 seconds`
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 5.5k
- Forks
- 5.4k
- PR merge metrics
- No merged PRs in 30d
Description
URL
mintV3 state
{
"independentField": "CURRENCY_A",
"typedValue": "834213",
"startPriceTypedValue": "",
"leftRangeTypedValue": "0.000609",
"rightRangeTypedValue": "0.001468"
}
Error
SecurityError: Attempt to use history.replaceState() more than 100 times per 30 seconds
Stacktrace
replaceState@[native code]
@https://www.googletagmanager.com/gtag/js?id=G-KDP9B6W4H8:298:270
e@https://app.uniswap.org/static/js/4.51997793.chunk.js:2:642135
@https://app.uniswap.org/static/js/4.51997793.chunk.js:2:318248
@https://app.uniswap.org/static/js/main.39d571d4.chunk.js:1:378448
@https://app.uniswap.org/static/js/main.39d571d4.chunk.js:1:418978
uu@https://app.uniswap.org/static/js/4.51997793.chunk.js:2:3844518
@https://app.uniswap.org/static/js/main.39d571d4.chunk.js:1:418828
@https://app.uniswap.org/static/js/main.39d571d4.chunk.js:1:405171
call@https://app.uniswap.org/static/js/4.51997793.chunk.js:2:343017
emit@https://app.uniswap.org/static/js/4.51997793.chunk.js:2:389181
end@https://app.uniswap.org/static/js/4.51997793.chunk.js:2:389107
@https://app.uniswap.org/static/js/4.51997793.chunk.js:2:388702
each@https://app.uniswap.org/static/js/4.51997793.chunk.js:2:353478
@https://app.uniswap.org/static/js/4.51997793.chunk.js:2:388507
@https://app.uniswap.org/static/js/main.39d571d4.chunk.js:1:405779
rs@https://app.uniswap.org/static/js/4.51997793.chunk.js:2:3831715
Ou@https://app.uniswap.org/static/js/4.51997793.chunk.js:2:3851928
@https://app.uniswap.org/static/js/4.51997793.chunk.js:2:3850663
Eu@https://app.uniswap.org/static/js/4.51997793.chunk.js:2:3850727
su@https://app.uniswap.org/static/js/4.51997793.chunk.js:2:3844448
su@[native code]
Hi@https://app.uniswap.org/static/js/4.51997793.chunk.js:2:3784911
@https://app.uniswap.org/static/js/4.51997793.chunk.js:2:3841851
Device data
{
"ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.0 Safari/605.1.15",
"browser": {
"name": "Safari",
"version": "16.0",
"major": "16"
},
"engine": {
"name": "WebKit",
"version": "605.1.15"
},
"os": {
"name": "Mac OS",
"version": "10.15.7"
},
"device": {},
"cpu": {}
}
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the supplied Uniswap URL in Safari 16 and verify whether the history.replaceState limit is reached. Trace the deployed main and chunk stack frames alongside the Google Tag Manager call; done means the URL no longer crashes with repeated replaceState calls.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100