Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mobile Safari: SecurityError: DOM Exception 18 after 100 times of url update #3462

Closed
amarchen opened this issue May 15, 2016 · 1 comment
Closed

Comments

@amarchen
Copy link

Mobile Safari has a known bug "by design" issue that does not update url over 100 times.
See https://forums.developer.apple.com/thread/36650 and http://jdurand.com/blog/2016/05/03/ember-history-pushstate-dom-exception-18/

For reproducing e.g. make url update on a slider move, then it's easy to generate 100 url updates by moving slider on the iPhone.

Therefore if you update url with pushState or replaceState, after a 100 of updates you'll be only getting security exception during the url update and in my case it also breaks further action processing (but that might be specific to my app).

Ember folks solved it by reloading the browser window http://jdurand.com/blog/2016/05/03/ember-history-pushstate-dom-exception-18/

P.S.
Sorry for not filling the proper bug template. I am not using the react-router directly (but via the react-router-redux, case is rather clear, confirmed by Embed.JS folks and by Apple folks, so I guess it's better to fill the bug report in a not the best way rather than not to report at all - it took several hours from me to figure the reason for these DOM Exception.

@taion
Copy link
Contributor

taion commented May 15, 2016

Tracking this on remix-run/history#291.

@taion taion closed this as completed May 15, 2016
@lock lock bot locked as resolved and limited conversation to collaborators Jan 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants