зеркало из https://github.com/mozilla/pjs.git
Don't stop content when location.href is set to an anchor. Bug 233963, r+sr=jst
This commit is contained in:
Родитель
8ce6c6f95a
Коммит
6ed5800916
|
@ -486,6 +486,13 @@ LocationImpl::GetHref(nsAString& aHref)
|
|||
NS_IMETHODIMP
|
||||
LocationImpl::SetHref(const nsAString& aHref)
|
||||
{
|
||||
if (!aHref.IsEmpty() && aHref.First() == PRUnichar('#')) {
|
||||
// Special-case anchor loads so that we don't stop content
|
||||
// Note that SetHash (or more precisely nsIURL::SetRef) deals with
|
||||
// the leading '#'.
|
||||
return SetHash(aHref);
|
||||
}
|
||||
|
||||
nsAutoString oldHref;
|
||||
nsresult rv = NS_OK;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче