Uniswap / Uniswap/interface

Crash report: `SecurityError: Attempt to use history.replaceState() more than 100 times per 30 seconds`

Open
#4,298 0 comments 0 reactions 0 assignees View on GitHub

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/#/pool/216746?chain=mainnet

Error

SecurityError: Attempt to use history.replaceState() more than 100 times per 30 seconds

Stacktrace

replaceState@[native code]
pushState@user-script:24:10:21
@user-script:17:43:34
@https://www.googletagmanager.com/gtag/js?id=G-KDP9B6W4H8:298: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:210307
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the URL on the reported iPhone/iOS Chrome environment and compare the history-related stack trace, including user-script:24:10:21 and the bundled main and chunk scripts. Done means identifying the source of the repeated history.replaceState() calls and confirming that the crash no longer occurs.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.