This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
IE9 - window.history.back() - $locationWatch() - infinite digest #7712
Open
Description
In the app I was developing, calling $window.history.back()
was freezing the IE9.
I've found the workaround here: http://stackoverflow.com/a/23915946/775359
It seems the root cause is that $window.history.back() in IE changes the href right before the $locationWatch() is fired hence oldUrl would contain the new Url and that throws off the angular into an infinite $digest.
Video (65 seconds): https://www.youtube.com/watch?v=PSRbT9ADSSA
Plnkr: http://plnkr.co/edit/fEPSABtIbBpB8Fr0gl1x?p=preview
(in the app the window.history.back()
was freezing completely, on the video it only throws some red errors in the console but is able to recover)
Happy to provide more information.