Bug 551540 - sporadic timeout in browser_forgetthissite_single.js; r=dolske a=NPOTB

This commit is contained in:
Ehsan Akhgari 2010-10-12 18:00:56 -04:00
Родитель 9e1ccbe94e
Коммит 0a2c774368
1 изменённых файлов: 8 добавлений и 10 удалений

Просмотреть файл

@ -60,9 +60,7 @@ function test() {
return;
ww.unregisterNotification(observer);
let organizer = aSubject.QueryInterface(Ci.nsIDOMWindow);
organizer.addEventListener("load", function onLoad(event) {
organizer.removeEventListener("load", onLoad, false);
executeSoon(function () {
SimpleTest.waitForFocus(function() {
// Select History in the left pane.
organizer.PlacesOrganizer.selectLeftPaneQuery('History');
let PO = organizer.PlacesOrganizer;
@ -93,13 +91,13 @@ function test() {
// Proceed
funcNext();
}, false);
let event = document.createEvent("MouseEvents");
event.initMouseEvent("contextmenu", true, true, organizer, 0,
0, 0, 0, 0, false, false, false, false,
0, null);
tree.dispatchEvent(event);
});
}, false);
// Get cell coordinates
var x = {}, y = {}, width = {}, height = {};
tree.treeBoxObject.getCoordsForCellItem(0, tree.columns[0], "text",
x, y, width, height);
// Initiate a context menu for the selected cell
EventUtils.synthesizeMouse(tree.body, x + 4, y + 4, {type: "contextmenu"}, organizer);
}, organizer);
}
ww.registerNotification(observer);