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
https://app.uniswap.org/#/swap
swap state
{
"INPUT": {
"currencyId": "ETH"
},
"OUTPUT": {
"currencyId": null
},
"independentField": "INPUT",
"typedValue": "",
"recipient": null
}
Error
SecurityError: Attempt to use history.replaceState() more than 100 times per 30 seconds
Stacktrace
replaceState@[native code]
pushState@user-script:67:10:21
@user-script:47:43:34
@https://www.googletagmanager.com/gtag/js?id=G-KDP9B6W4H8:299:270
e@https://app.uniswap.org/static/js/2.9f9389dc.chunk.js:2:517649
@https://app.uniswap.org/static/js/2.9f9389dc.chunk.js:2:293705
@https://app.uniswap.org/static/js/main.4d8e2df0.chunk.js:1:209448
@https://app.uniswap.org/static/js/main.4d8e2df0.chunk.js:1:210246
rs@https://app.uniswap.org/static/js/2.9f9389dc.chunk.js:2:2786540
Su@https://app.uniswap.org/static/js/2.9f9389dc.chunk.js:2:2806753
@https://app.uniswap.org/static/js/2.9f9389dc.chunk.js:2:2805488
_u@https://app.uniswap.org/static/js/2.9f9389dc.chunk.js:2:2805552
su@https://app.uniswap.org/static/js/2.9f9389dc.chunk.js:2:2799273
su@[native code]
Wf@https://app.uniswap.org/static/js/2.9f9389dc.chunk.js:2:2739736
@https://app.uniswap.org/static/js/2.9f9389dc.chunk.js:2:2796676
Device data
{
"ua": "Mozilla/5.0 (iPhone; CPU iPhone OS 13_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/76.0.3809.123 Mobile/15E148 Safari/605.1",
"browser": {
"name": "Chrome",
"version": "76.0.3809.123",
"major": "76"
},
"engine": {
"name": "WebKit",
"version": "605.1.15"
},
"os": {
"name": "iOS",
"version": "13.1"
},
"device": {
"vendor": "Apple",
"model": "iPhone",
"type": "mobile"
},
"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 https://app.uniswap.org/#/swap with the reported swap state on iOS Chrome, then inspect the history calls shown in the stack trace, including user-script and the Google Tag Manager entry. Done means the swap page no longer triggers the SecurityError from repeated history.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
- 20/100