author | Doug Turner <dougt@dougt.org> |
Thu, 29 Nov 2012 21:41:40 -0800 | |
changeset 114581 | 7bb68db8ab5f96e2a25b0e5779b10e3393957d39 |
parent 114580 | 2cf359411d7dcaa3acff6ff2755e42933908448d |
child 114582 | 1f2e0e82aa7df4db35c2add56fa88966423625e5 |
push id | 23926 |
push user | ryanvm@gmail.com |
push date | Sat, 01 Dec 2012 15:27:30 +0000 |
treeherder | mozilla-central@ecdf0e332f17 [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | jlebar, blocking-basecamp |
bugs | 811815 |
milestone | 20.0a1 |
first release with | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
last release without | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
--- a/content/base/src/Link.cpp +++ b/content/base/src/Link.cpp @@ -85,25 +85,25 @@ Link::LinkState() const if (!mRegistered && mLinkState == eLinkState_Unknown) { // First, make sure the href attribute has a valid link (bug 23209). nsCOMPtr<nsIURI> hrefURI(GetURI()); if (!hrefURI) { self->mLinkState = eLinkState_NotLink; return nsEventStates(); } + // Assume that we are not visited until we are told otherwise. + self->mLinkState = eLinkState_Unvisited; + // We have a good href, so register with History. if (mHistory) { nsresult rv = mHistory->RegisterVisitedCallback(hrefURI, self); if (NS_SUCCEEDED(rv)) { self->mRegistered = true; - // Assume that we are not visited until we are told otherwise. - self->mLinkState = eLinkState_Unvisited; - // And make sure we are in the document's link map. nsIDocument *doc = element->GetCurrentDoc(); if (doc) { doc->AddStyleRelevantLink(self); } } } }