angular/angular.js — pull request #5760 by kimwz (2014-01-13 09:54:56+00:00)
Title: fix($browser): fix a INFDIG error when history back before onload event.

Basically the $browser.url method is not called when the URL is changed by history back event.
This case is handled by popstate event handler.
But popstate event is triggered only after onload event
So, the $browser.url method is called when the URL is changed by history back event before onload event.
in this case, $locationWatch can cause INFDIG error
because lastBrowserUrl == url == $location.absUrl() != $browser.url()

scenario after onload event. (normal)

[browser URL : A]
[browser URL : B]
-> history back
[browser URL : A / location.absUrl() : A]

scenario before onload event.

[browser URL : A]
[browser URL : B]
-> history back
[browser URL : A / location.absUrl() : B] (because popstate event is not triggered)