forked from mozilla/gecko-dev
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
merge mozilla-central to mozilla-inbound on a CLOSED TREE. r=merge a=…
…merge on a CLOSED TREE
- Loading branch information
Showing
110 changed files
with
23,810 additions
and
22,726 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
browser/base/content/test/urlbar/browser_urlbar_remove_match.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* eslint-disable mozilla/no-arbitrary-setTimeout */ | ||
/* Any copyright is dedicated to the Public Domain. | ||
* http://creativecommons.org/publicdomain/zero/1.0/ */ | ||
|
||
add_task(async function test_remove_history() { | ||
const TEST_URL = "http://remove.me/from_urlbar/"; | ||
await PlacesTestUtils.addVisits(TEST_URL); | ||
|
||
registerCleanupFunction(async function() { | ||
await PlacesUtils.history.clear(); | ||
}); | ||
|
||
let promiseVisitRemoved = PlacesTestUtils.waitForNotification( | ||
"onDeleteURI", uri => uri.spec == TEST_URL, "history"); | ||
await promiseAutocompleteResultPopup("remove.me/from_urlbar"); | ||
await BrowserTestUtils.waitForCondition( | ||
() => gURLBar.popup.richlistbox.children.length > 1 && | ||
gURLBar.popup.richlistbox.children[1].getAttribute("ac-value") == TEST_URL, | ||
"Waiting for the result to appear"); | ||
EventUtils.synthesizeKey("VK_DOWN", {}); | ||
Assert.equal(gURLBar.popup.richlistbox.selectedIndex, 1); | ||
let options = AppConstants.platform == "macosx" ? { shiftKey: true } : {}; | ||
EventUtils.synthesizeKey("VK_DELETE", options); | ||
await promiseVisitRemoved; | ||
await BrowserTestUtils.waitForCondition( | ||
() => !gURLBar.popup.richlistbox.children.some(c => !c.collapsed && c.getAttribute("ac-value") == TEST_URL), | ||
"Waiting for the result to disappear"); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,6 @@ browser.jar: | |
content/browser/abouthome/settings.png (content/abouthome/settings.png) | ||
content/browser/abouthome/restore.png (content/abouthome/restore.png) | ||
content/browser/abouthome/restore-large.png (content/abouthome/restore-large.png) | ||
content/browser/abouthome/mozilla.svg (content/abouthome/mozilla.svg) | ||
content/browser/abouthome/[email protected] (content/abouthome/[email protected]) | ||
content/browser/abouthome/[email protected] (content/abouthome/[email protected]) | ||
content/browser/abouthome/[email protected] (content/abouthome/[email protected]) | ||
|
Oops, something went wrong.