53 let
ww =
Cc[
"@mozilla.org/embedcomp/window-watcher;1"].
58 if (aTopic ===
"domwindowopened") {
59 ww.unregisterNotification(
this);
60 let organizer = aSubject.QueryInterface(
Ci.nsIDOMWindow);
61 organizer.addEventListener(
"load",
function onLoad(
event) {
62 organizer.removeEventListener(
"load",
onLoad,
false);
63 executeSoon(
function () {
64 let contentTree = organizer.document.getElementById(
"placeContent");
65 isnot(contentTree,
null,
"Sanity check: placeContent tree should exist");
66 isnot(organizer.PlacesOrganizer,
null,
"Sanity check: PlacesOrganizer should exist");
67 isnot(organizer.gEditItemOverlay,
null,
"Sanity check: gEditItemOverlay should exist");
68 isnot(organizer.gEditItemOverlay.itemId, -1,
"Editing a bookmark");
70 organizer.PlacesOrganizer.selectLeftPaneQuery(
'History');
72 let selection = contentTree.view.selection;
73 selection.clearSelection();
74 selection.rangedSelect(0, 0,
true);
76 is(organizer.gEditItemOverlay.itemId, -1,
"Editing an history entry");
80 PlacesUtils.history.QueryInterface(
Ci.nsIBrowserHistory).removeAllPages();
91 ok(PlacesUtils,
"checking PlacesUtils, running in chrome context?");
92 PlacesUtils.history.addVisit(PlacesUtils._uri(
TEST_URI), Date.now() * 1000,
93 null, PlacesUtils.history.TRANSITION_TYPED,
98 "chrome://browser/content/places/places.xul",
100 "chrome,toolbar=yes,dialog=no,resizable",
getService(Ci.sbIFaceplateManager)
_updateTextAndScrollDataForFrame aData
sbDeviceFirmwareAutoCheckForUpdate prototype observe