diff --git a/mozilla/xpfe/browser/resources/content/navigator.js b/mozilla/xpfe/browser/resources/content/navigator.js
index 0d52f4021d7..11ae3bbe8b8 100644
--- a/mozilla/xpfe/browser/resources/content/navigator.js
+++ b/mozilla/xpfe/browser/resources/content/navigator.js
@@ -1808,3 +1808,15 @@ function getNewThemes()
{
window._content.location.href = brandBundle.GetStringFromName("getNewThemesURL");
}
+
+function URLBarFocusHandler(aEvent)
+{
+ var URLBar = aEvent.target;
+ URLBar.setSelectionRange(0, URLBar.value.length);
+}
+
+function URLBarBlurHandler(aEvent)
+{
+ var URLBar = aEvent.target;
+ URLBar.setSelectionRange(0, 0);
+}
diff --git a/mozilla/xpfe/browser/resources/content/navigator.xul b/mozilla/xpfe/browser/resources/content/navigator.xul
index 89434b3865a..9ba845b0b20 100644
--- a/mozilla/xpfe/browser/resources/content/navigator.xul
+++ b/mozilla/xpfe/browser/resources/content/navigator.xul
@@ -289,6 +289,8 @@ Contributor(s): ______________________________________. -->