fix($location): re-assign history after BFCache back on Android browser

Closes #5425
This commit is contained in:
kimwz 2013-12-16 08:08:00 +00:00 committed by Igor Minar
parent 80e7a45584
commit bddd46c8ec

View file

@ -148,8 +148,9 @@ function Browser(window, document, $log, $sniffer) {
* @param {boolean=} replace Should new url replace current history record ?
*/
self.url = function(url, replace) {
// Android Browser BFCache causes location reference to become stale.
// Android Browser BFCache causes location, history reference to become stale.
if (location !== window.location) location = window.location;
if (history !== window.history) history = window.history;
// setter
if (url) {