diff --git a/browser/base/content/browser.js b/browser/base/content/browser.js index 9c016ea11372..71ca19eff4f6 100644 --- a/browser/base/content/browser.js +++ b/browser/base/content/browser.js @@ -1297,6 +1297,11 @@ function canonizeUrl(aTriggeringEvent) return; var url = gURLBar.value; + + // Prevent suffix when already exists www , http , / + if (url.match(/^(www|http)|\/\s*$/i)) + return; + if (aTriggeringEvent && 'ctrlKey' in aTriggeringEvent && aTriggeringEvent.ctrlKey && 'shiftKey' in aTriggeringEvent && aTriggeringEvent.shiftKey)