diff --git a/browser/components/urlbar/tests/browser/browser_autoFill_backspaced.js b/browser/components/urlbar/tests/browser/browser_autoFill_backspaced.js index 26a4e58638f4..4e3450ea5eab 100644 --- a/browser/components/urlbar/tests/browser/browser_autoFill_backspaced.js +++ b/browser/components/urlbar/tests/browser/browser_autoFill_backspaced.js @@ -58,6 +58,15 @@ add_task(async function() { "http://example.com/", "http://example.com/foo", ]); + // Bookmark the page so it ignores autofill threshold and doesn't risk to + // not be autofilled. + let bm = await PlacesUtils.bookmarks.insert({ + url: "http://example.com/", + parentGuid: PlacesUtils.bookmarks.toolbarGuid, + }); + registerCleanupFunction(async function() { + await PlacesUtils.bookmarks.remove(bm); + }); await test_autocomplete({ desc: "DELETE the autofilled part should search",