As implemented by the patch for bug 564900, other mochitests in browser/components/places should use the |waitForClearHistory| function defined in head.js instead of defining their own version. At the time of this filing, the following tests can be refactored: browser_410196_paste_into_tags.js browser_library_panel_leak.js browser_forgetthissite_single.js browser_sidebarpanels_click.js browser_history_sidebar_search.js
Created attachment 551495 [details] [diff] [review] Patch for bug 676713 Some of the implementations of waitForClearHistory passed extra arguments to the callback function, but none of the callback functions referenced these arguments. I ran all the tests locally and they still pass. Here is a link to the try server build: http://tbpl.mozilla.org/?tree=Try&rev=9fb5a88f71aa
Comment on attachment 551495 [details] [diff] [review] Patch for bug 676713 Requesting review from sdwilsh since Marco is on vacation.
Comment on attachment 551495 [details] [diff] [review] Patch for bug 676713 http://hg.mozilla.org/mozilla-central/rev/a2b79dba6710