Skip to content
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
@stefek99

Description

@stefek99

In the app I was developing, calling $window.history.back() was freezing the IE9.

screen shot 2014-06-05 at 15 20 39

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions