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

Fix/browser 1.2 #9470

Closed
wants to merge 4 commits into from
Closed

Fix/browser 1.2 #9470

wants to merge 4 commits into from

Conversation

tbosch
Copy link
Contributor

@tbosch tbosch commented Oct 7, 2014

No description provided.

tbosch added 3 commits October 7, 2014 10:04
IE10/11 have the following problem: When changing the url hash
via `history.pushState()` and then reverting the hash via direct
changes to `location.href` (or via a link) does not fire a
`hashchange` nor `popstate` event.

This commit changes the default behavior as follows:
Uses `location.href`/`location.replace` if the new url differs from
the previous url only in the hash fragment or the browser
does not support history API.
Use `history.pushState`/ `history.replaceState` otherwise.

Fixes angular#9143
Closes angular#9406
Fixes a failing test on IE9 caused as a side effect
of 404b95f being merged
before 0656484.

The test should have been independent on the browser running it
and it is now.

Closes angular#9423
Closes angular#9424
Adds caching for url changes while a reload is happening,
as browsers do not allow to read out the new location the browser
is navigating to.

Removes unnecessary caching from $browser, as IE7-IE9 all
have the new hash value in `location.href` after changing it.
There was a wrong assumption in the previous version of this code
introduced by dca2317 and d707114.

Adds more tests for angular#6976
Fixes angular#9235
@btford
Copy link
Contributor

btford commented Oct 7, 2014

@tbosch what's the state of this?

tbosch added a commit that referenced this pull request Oct 7, 2014
Adds caching for url changes while a reload is happening,
as browsers do not allow to read out the new location the browser
is navigating to.

Removes unnecessary caching from $browser, as IE7-IE9 all
have the new hash value in `location.href` after changing it.
There was a wrong assumption in the previous version of this code
introduced by dca2317 and d707114.

Adds more tests for #6976
Fixes #9235
Closes #9470
@tbosch tbosch closed this Oct 7, 2014
@tbosch tbosch deleted the fix/browser_1.2 branch October 7, 2014 21:56
@btford btford removed the In Progress label Oct 7, 2014
@tbosch
Copy link
Contributor Author

tbosch commented Oct 7, 2014

Merged...

On Tue, Oct 7, 2014 at 2:31 PM, Brian Ford notifications@github.com wrote:

@tbosch https://github.com/tbosch what's the state of this?


Reply to this email directly or view it on GitHub
#9470 (comment).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants