43 let
pb =
Cc[
"@mozilla.org/privatebrowsing;1"].
45 let
ww =
Cc[
"@mozilla.org/embedcomp/window-watcher;1"].
53 case "domwindowopened":
54 let
dialog = aSubject.QueryInterface(
Ci.nsIDOMWindow);
55 dialog.addEventListener(
"load",
function () {
56 dialog.removeEventListener(
"load",
arguments.callee,
false);
58 let
browser = gBrowser.getBrowserForTab(gBrowser.selectedTab);
59 browser.addEventListener(
"load",
function() {
60 browser.removeEventListener(
"load",
arguments.callee,
true);
62 is(browser.currentURI.spec,
url,
63 "The correct URL should be loaded via the open location dialog");
67 executeSoon(
function() {
68 let input = dialog.document.getElementById(
"dialog.input");
69 is(input.value, autofilled,
"The input field should be correctly auto-filled");
71 for (let
i = 0;
i <
url.length; ++
i)
73 EventUtils.synthesizeKey(
"VK_RETURN", {},
dialog);
78 case "domwindowclosed":
79 ww.unregisterNotification(
this);
86 gPrefService.setIntPref(
"general.open_location.last_window_choice", 0);
87 openDialog(
"chrome://browser/content/openLocation.xul",
"_blank",
88 "chrome,titlebar",
window);
92 if (
gPrefService.prefHasUserValue(
"general.open_location.last_url"))
93 gPrefService.clearUserPref(
"general.open_location.last_url");
95 openLocation(
"http://example.com/",
"",
function() {
96 openLocation(
"http://example.org/",
"http://example.com/",
function() {
98 pb.privateBrowsingEnabled =
true;
99 openLocation(
"about:logo",
"",
function() {
100 openLocation(
"about:buildconfig",
"about:logo",
function() {
102 pb.privateBrowsingEnabled =
false;
103 openLocation(
"about:blank",
"http://example.org/",
function() {
104 gPrefService.clearUserPref(
"general.open_location.last_url");
105 if (
gPrefService.prefHasUserValue(
"general.open_location.last_window_choice"))
106 gPrefService.clearUserPref(
"general.open_location.last_window_choice");
getService(Ci.sbIFaceplateManager)
return!aWindow arguments!aWindow arguments[0]
_getSelectedPageStyle s i
_updateTextAndScrollDataForFrame aData
sbDeviceFirmwareAutoCheckForUpdate prototype observe