48 const Cc = Components.classes;
49 const Ci = Components.interfaces;
50 const Cr = Components.results;
52 var
wm =
Cc[
"@mozilla.org/appshell/window-mediator;1"].
54 var
win =
wm.getMostRecentWindow(
"navigator:browser");
56 var
ios =
Cc[
"@mozilla.org/network/io-service;1"].
58 var
hs =
Cc[
"@mozilla.org/browser/nav-history-service;1"].
60 var
bs =
Cc[
"@mozilla.org/browser/nav-bookmarks-service;1"].
64 var placeID = hs.addVisit(aURI,
74 var bId = bs.insertBookmark(bs.unfiledBookmarksFolder, aURI,
75 bs.DEFAULT_INDEX,
"bookmark/" + aURI.spec);
90 name:
"open_locationbar_default",
92 var urlbar = document.getElementById(
"urlbar");
93 urlbar.addEventListener(
"onsearchcomplete",
function() {
94 urlbar.removeEventListener(
"onsearchcomplete",
arguments.callee,
false);
98 urlbar.value =
"example";
100 EventUtils.synthesizeKey(
"VK_RETURN", {});
110 if (ptests.length > 0)
111 ptests.shift().run();
function add_bookmark(aURI)
function make_test_report(testName, result, units)
getService(Ci.sbIFaceplateManager)
function add_visit(aURI, aDate)
return!aWindow arguments!aWindow arguments[0]