Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Under certain circumstances location.href is not defined in IE8. #3305

Closed
wants to merge 1 commit into from
Closed

Conversation

vsviridov
Copy link

It sometimes causes an infinite routing loop.

…h sometimes causes an infinite routing loop
@IgorMinar
Copy link
Contributor

Thanks for the patch. Do you know how to reproduce this error? The fix looks a bit odd. Attaching a test case would make it easier to understand what's going on.

@vsviridov
Copy link
Author

We have an application that reliably fails in IE8 (and emulated modes for IE8). I'll try to isolate it into a smaller reproduce-able chunk. I'll write a plunk and attach it here later.

@petebacondarwin
Copy link
Member

PR Checklist (Minor Bugfix)

  • Contributor signed CLA now or in the past (if you just signed, leave a comment here with your real name)
  • PR doesn't introduce new api
  • PR doesn't contain a breaking change
  • PR contains unit tests
  • PR contains e2e tests (if suitable)
  • PR contains documentation update (if suitable)
  • PR passes all tests on Travis (sanity)
  • PR passes all tests on ci.angularjs.org (cross-browser compatibility)
  • PR is rebased against recent master
  • PR is squashed into one commit per logical change
  • PR's commit messages are descriptive and allows us to autogenerate release notes (required commit message format)
  • All changes requested in review have been implemented

@petebacondarwin
Copy link
Member

@vsviridov - can you also sign the CLA and look at our commit message guidelines? Thanks.

@vsviridov
Copy link
Author

I've signed the CLA. Couldn't really isolate it, but here's a version that partially breaks in IE8
http://www.realtor.com/local/v0.1.5.0-x1p8/United-States/home-prices
This one is same codebase, but with local copy of angular
http://www.realtor.com/local/v0.1.5.0-p8/United-States/home-prices

IgorMinar pushed a commit to IgorMinar/angular.js that referenced this pull request Jul 24, 2013
If an app uses HTML5 mode and we open an html5 url on IE8 or 9 which
don't support location href, we use location.replace to reload the page
with the hashbang equivalent of the url but this fails with infinite
digest. This is because location.replace doesn't update location.href
synchronously on IE8 and 9.

Closes angular#2802, angular#3305, angular#1417
IgorMinar pushed a commit that referenced this pull request Jul 24, 2013
If an app uses HTML5 mode and we open an html5 url on IE8 or 9 which
don't support location href, we use location.replace to reload the page
with the hashbang equivalent of the url but this fails with infinite
digest. This is because location.replace doesn't update location.href
synchronously on IE8 and 9.

Closes #2802, #3305, #1417
IgorMinar pushed a commit that referenced this pull request Jul 24, 2013
If an app uses HTML5 mode and we open an html5 url on IE8 or 9 which
don't support location href, we use location.replace to reload the page
with the hashbang equivalent of the url but this fails with infinite
digest. This is because location.replace doesn't update location.href
synchronously on IE8 and 9.

Closes #2802, #3305, #1417
@IgorMinar
Copy link
Contributor

fixed

@IgorMinar IgorMinar closed this Jul 25, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants