зеркало из https://github.com/mozilla/gecko-dev.git
Bug 551540 - sporadic timeout in browser_forgetthissite_single.js; r=dolske a=NPOTB
This commit is contained in:
Родитель
9e1ccbe94e
Коммит
0a2c774368
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче