diff --git a/browser/metro/base/content/bindings/urlbar.xml b/browser/metro/base/content/bindings/urlbar.xml index aa11c0036aa6..eca464254202 100644 --- a/browser/metro/base/content/bindings/urlbar.xml +++ b/browser/metro/base/content/bindings/urlbar.xml @@ -551,7 +551,9 @@ @@ -564,7 +566,9 @@ diff --git a/browser/metro/base/tests/mochitest/browser_urlbar.js b/browser/metro/base/tests/mochitest/browser_urlbar.js index d05e5af26a94..e67081d40dd3 100644 --- a/browser/metro/base/tests/mochitest/browser_urlbar.js +++ b/browser/metro/base/tests/mochitest/browser_urlbar.js @@ -369,6 +369,10 @@ gTests.push({ EventUtils.synthesizeKey("VK_UP", {}, window); is(gEdit.popup._results.selectedIndex, 0, "Pressing arrow up selects first item."); + + EventUtils.synthesizeKey("VK_BACK_SPACE", {}, window); + yield waitForEvent(document.getElementById("urlbar-edit"), "input"); + is(gEdit.popup._results.selectedIndex, -1, "backspace: autocomplete de-selected"); } });