Bug 116441 [clickSelectsAll] should not trigger if click is after end of URL

patch by neil@parkwaycc.co.uk r=jag sr=bz


git-svn-id: svn://10.0.0.236/trunk@134039 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
timeless%mozdev.org 2002-11-18 13:58:46 +00:00
parent 063c0f2291
commit 609fc3d185

View File

@ -1732,7 +1732,7 @@ function URLBarMouseDownHandler(aEvent)
function URLBarClickHandler(aEvent)
{
if (!gIgnoreClick && gClickSelectsAll && gURLBar.selectionStart == gURLBar.selectionEnd)
if (!gIgnoreClick && gClickSelectsAll && gURLBar.selectionStart == gURLBar.selectionEnd && gURLBar.selectionStart < gURLBar.value.length)
gURLBar.select();
}