最近削除されたページ
continue;
}
if (++windowCount == 2)
break;
}
// If we're down to the last window and someone tries to shut down, check to make sure we can!
if (windowCount == 1 && !canQuitApplication("lastwindow"))
return false;
else if (windowCount != 1) {
//@line 28 "c:\builds\moz2_slave\m-cen-w32-ntly-000000000000000\build\toolkit\content\globalOverlay.js"
if (Array.some(gBrowser.tabs, tab => tab.hasAttribute("tabProtect"))) {
if (!warnAboutClosingTabs.confirm(""))
return false;
}
if (typeof(aPromptFunction) == "function" && !aPromptFunction())
return false;
}
if (aClose)
window.close();
return true;
};
},
uninit: function() {
window.removeEventListener("unload", this, false);
let os = Services.obs; continue;
}
if (++windowCount == 2)
break;
}
// If we're down to the last window and someone tries to shut down, check to make sure we can!
if (windowCount == 1 && !canQuitApplication("lastwindow"))
return false;
else if (windowCount != 1) {
//@line 28 "c:\builds\moz2_slave\m-cen-w32-ntly-000000000000000\build\toolkit\content\globalOverlay.js"
if (Array.some(gBrowser.tabs, tab => tab.hasAttribute("tabProtect"))) {
if (!warnAboutClosingTabs.confirm(""))
return false;
}
if (typeof(aPromptFunction) == "function" && !aPromptFunction())
return false;
}
if (aClose)
window.close();
return true;
};
},
uninit: function() {
window.removeEventListener("unload", this, false);
let os = Services.obs; continue;
}
if (++windowCount == 2)
break;
}
// If we're down to the last window and someone tries to shut down, check to make sure we can!
if (windowCount == 1 && !canQuitApplication("lastwindow"))
return false;
else if (windowCount != 1) {
//@line 28 "c:\builds\moz2_slave\m-cen-w32-ntly-000000000000000\build\toolkit\content\globalOverlay.js"
if (Array.some(gBrowser.tabs, tab => tab.hasAttribute("tabProtect"))) {
if (!warnAboutClosingTabs.confirm(""))
return false;
}
if (typeof(aPromptFunction) == "function" && !aPromptFunction())
return false;
}
if (aClose)
window.close();
return true;
};
},
uninit: function() {
window.removeEventListener("unload", this, false);
let os = Services.obs; continue;
}
if (++windowCount == 2)
break;
}
// If we're down to the last window and someone tries to shut down, check to make sure we can!
if (windowCount == 1 && !canQuitApplication("lastwindow"))
return false;
else if (windowCount != 1) {
//@line 28 "c:\builds\moz2_slave\m-cen-w32-ntly-000000000000000\build\toolkit\content\globalOverlay.js"
if (Array.some(gBrowser.tabs, tab => tab.hasAttribute("tabProtect"))) {
if (!warnAboutClosingTabs.confirm(""))
return false;
}
if (typeof(aPromptFunction) == "function" && !aPromptFunction())
return false;
}
if (aClose)
window.close();
return true;
};
},
uninit: function() {
window.removeEventListener("unload", this, false);
let os = Services.obs; continue;
}
if (++windowCount == 2)
break;
}
// If we're down to the last window and someone tries to shut down, check to make sure we can!
if (windowCount == 1 && !canQuitApplication("lastwindow"))
return false;
else if (windowCount != 1) {
//@line 28 "c:\builds\moz2_slave\m-cen-w32-ntly-000000000000000\build\toolkit\content\globalOverlay.js"
if (Array.some(gBrowser.tabs, tab => tab.hasAttribute("tabProtect"))) {
if (!warnAboutClosingTabs.confirm(""))
return false;
}
if (typeof(aPromptFunction) == "function" && !aPromptFunction())
return false;
}
if (aClose)
window.close();
return true;
};
},
uninit: function() {
window.removeEventListener("unload", this, false);
let os = Services.obs; continue;
}
if (++windowCount == 2)
break;
}
// If we're down to the last window and someone tries to shut down, check to make sure we can!
if (windowCount == 1 && !canQuitApplication("lastwindow"))
return false;
else if (windowCount != 1) {
//@line 28 "c:\builds\moz2_slave\m-cen-w32-ntly-000000000000000\build\toolkit\content\globalOverlay.js"
if (Array.some(gBrowser.tabs, tab => tab.hasAttribute("tabProtect"))) {
if (!warnAboutClosingTabs.confirm(""))
return false;
}
if (typeof(aPromptFunction) == "function" && !aPromptFunction())
return false;
}
if (aClose)
window.close();
return true;
};
},
uninit: function() {
window.removeEventListener("unload", this, false);
let os = Services.obs; continue;
}
if (++windowCount == 2)
break;
}
// If we're down to the last window and someone tries to shut down, check to make sure we can!
if (windowCount == 1 && !canQuitApplication("lastwindow"))
return false;
else if (windowCount != 1) {
//@line 28 "c:\builds\moz2_slave\m-cen-w32-ntly-000000000000000\build\toolkit\content\globalOverlay.js"
if (Array.some(gBrowser.tabs, tab => tab.hasAttribute("tabProtect"))) {
if (!warnAboutClosingTabs.confirm(""))
return false;
}
if (typeof(aPromptFunction) == "function" && !aPromptFunction())
return false;
}
if (aClose)
window.close();
return true;
};
},
uninit: function() {
window.removeEventListener("unload", this, false);
let os = Services.obs; continue;
}
if (++windowCount == 2)
break;
}
// If we're down to the last window and someone tries to shut down, check to make sure we can!
if (windowCount == 1 && !canQuitApplication("lastwindow"))
return false;
else if (windowCount != 1) {
//@line 28 "c:\builds\moz2_slave\m-cen-w32-ntly-000000000000000\build\toolkit\content\globalOverlay.js"
if (Array.some(gBrowser.tabs, tab => tab.hasAttribute("tabProtect"))) {
if (!warnAboutClosingTabs.confirm(""))
return false;
}
if (typeof(aPromptFunction) == "function" && !aPromptFunction())
return false;
}
if (aClose)
window.close();
return true;
};
},
uninit: function() {
window.removeEventListener("unload", this, false);
let os = Services.obs; continue;
}
if (++windowCount == 2)
break;
}
// If we're down to the last window and someone tries to shut down, check to make sure we can!
if (windowCount == 1 && !canQuitApplication("lastwindow"))
return false;
else if (windowCount != 1) {
//@line 28 "c:\builds\moz2_slave\m-cen-w32-ntly-000000000000000\build\toolkit\content\globalOverlay.js"
if (Array.some(gBrowser.tabs, tab => tab.hasAttribute("tabProtect"))) {
if (!warnAboutClosingTabs.confirm(""))
return false;
}
if (typeof(aPromptFunction) == "function" && !aPromptFunction())
return false;
}
if (aClose)
window.close();
return true;
};
},
uninit: function() {
window.removeEventListener("unload", this, false);
let os = Services.obs; continue;
}
if (++windowCount == 2)
break;
}
// If we're down to the last window and someone tries to shut down, check to make sure we can!
if (windowCount == 1 && !canQuitApplication("lastwindow"))
return false;
else if (windowCount != 1) {
//@line 28 "c:\builds\moz2_slave\m-cen-w32-ntly-000000000000000\build\toolkit\content\globalOverlay.js"
if (Array.some(gBrowser.tabs, tab => tab.hasAttribute("tabProtect"))) {
if (!warnAboutClosingTabs.confirm(""))
return false;
}
if (typeof(aPromptFunction) == "function" && !aPromptFunction())
return false;
}
if (aClose)
window.close();
return true;
};
},
uninit: function() {
window.removeEventListener("unload", this, false);
let os = Services.obs; continue;
}
if (++windowCount == 2)
break;
}
// If we're down to the last window and someone tries to shut down, check to make sure we can!
if (windowCount == 1 && !canQuitApplication("lastwindow"))
return false;
else if (windowCount != 1) {
//@line 28 "c:\builds\moz2_slave\m-cen-w32-ntly-000000000000000\build\toolkit\content\globalOverlay.js"
if (Array.some(gBrowser.tabs, tab => tab.hasAttribute("tabProtect"))) {
if (!warnAboutClosingTabs.confirm(""))
return false;
}
if (typeof(aPromptFunction) == "function" && !aPromptFunction())
return false;
}
if (aClose)
window.close();
return true;
};
},
uninit: function() {
window.removeEventListener("unload", this, false);
let os = Services.obs; continue;
}
if (++windowCount == 2)
break;
}
// If we're down to the last window and someone tries to shut down, check to make sure we can!
if (windowCount == 1 && !canQuitApplication("lastwindow"))
return false;
else if (windowCount != 1) {
//@line 28 "c:\builds\moz2_slave\m-cen-w32-ntly-000000000000000\build\toolkit\content\globalOverlay.js"
if (Array.some(gBrowser.tabs, tab => tab.hasAttribute("tabProtect"))) {
if (!warnAboutClosingTabs.confirm(""))
return false;
}
if (typeof(aPromptFunction) == "function" && !aPromptFunction())
return false;
}
if (aClose)
window.close();
return true;
};
},
uninit: function() {
window.removeEventListener("unload", this, false);
let os = Services.obs; continue;
}
if (++windowCount == 2)
break;
}
// If we're down to the last window and someone tries to shut down, check to make sure we can!
if (windowCount == 1 && !canQuitApplication("lastwindow"))
return false;
else if (windowCount != 1) {
//@line 28 "c:\builds\moz2_slave\m-cen-w32-ntly-000000000000000\build\toolkit\content\globalOverlay.js"
if (Array.some(gBrowser.tabs, tab => tab.hasAttribute("tabProtect"))) {
if (!warnAboutClosingTabs.confirm(""))
return false;
}
if (typeof(aPromptFunction) == "function" && !aPromptFunction())
return false;
}
if (aClose)
window.close();
return true;
};
},
uninit: function() {
window.removeEventListener("unload", this, false);
let os = Services.obs; continue;
}
if (++windowCount == 2)
break;
}
// If we're down to the last window and someone tries to shut down, check to make sure we can!
if (windowCount == 1 && !canQuitApplication("lastwindow"))
return false;
else if (windowCount != 1) {
//@line 28 "c:\builds\moz2_slave\m-cen-w32-ntly-000000000000000\build\toolkit\content\globalOverlay.js"
if (Array.some(gBrowser.tabs, tab => tab.hasAttribute("tabProtect"))) {
if (!warnAboutClosingTabs.confirm(""))
return false;
}
if (typeof(aPromptFunction) == "function" && !aPromptFunction())
return false;
}
if (aClose)
window.close();
return true;
};
},
uninit: function() {
window.removeEventListener("unload", this, false);
let os = Services.obs; continue;
}
if (++windowCount == 2)
break;
}
// If we're down to the last window and someone tries to shut down, check to make sure we can!
if (windowCount == 1 && !canQuitApplication("lastwindow"))
return false;
else if (windowCount != 1) {
//@line 28 "c:\builds\moz2_slave\m-cen-w32-ntly-000000000000000\build\toolkit\content\globalOverlay.js"
if (Array.some(gBrowser.tabs, tab => tab.hasAttribute("tabProtect"))) {
if (!warnAboutClosingTabs.confirm(""))
return false;
}
if (typeof(aPromptFunction) == "function" && !aPromptFunction())
return false;
}
if (aClose)
window.close();
return true;
};
},
uninit: function() {
window.removeEventListener("unload", this, false);
let os = Services.obs; continue;
}
if (++windowCount == 2)
break;
}
// If we're down to the last window and someone tries to shut down, check to make sure we can!
if (windost locale = Components.classes["@mozilla.org/preferences-service;1"]
.getService(Components.interfaces.nsIPrefBranch).getCharPref("general.useragent.locale");
if (this.getVer() > 3.0) {
// "Recently Closed Windows"
menu = document.createElement("menu");
menu.setAttribute("id", "historyUndoWindowMenu3");
menu.setAttribute("label", "最近閉じたウィンドウ");
menu.setAttribute("accesskey", "W");
menu.setAttribute("disabled", "true");
popup.insertBefore(menu, refItem);
this.historyUndoWindowPopup3 = menu = menu.appendChild(document.createElement("menupopup"));
menu.setAttribute("id", "historyUndoWindowPopup3");
menu.setAttribute("onpopupshowing", "UndoListInTabmenu.populateUndoWindowSubmenu();");
}
//UndoClose Tab List 最近閉じたタブ
const LABELTEXT = locale.indexOf("ja") == -1?"Recently Closed Tabs":"\u6700\u8fd1\u9589\u3058\u305f\u30bf\u30d6"; //create menu
menu = document.createElement("menu");
menu.setAttribute("label", LABELTEXT);
menu.setAttribute("accesskey", "L");osingTabs.confirm(""))
return false;
}
if (typeof(aPromptFunction) == "function" && !aPromptFunction())
return false;
}
if (aClose)
window.close();
return true;
};
},
uninit: function() {
window.removeEventListener("unload", this, false);
let os = Services.obs; continue;
}
if (++windowCount == 2)
break;
}
// If we're down to the last window and someone tries to shut down, check to make sure we can!
if (windowCount == 1 && !canQuitApplication("lastwindow"))
return false;
else if (windowCount != 1) {
//@line 28 "c:\builds\moz2_slave\m-cen-w32-ntly-000000000000000\build\toolkit\content\globalOverlay.js"
if (Array.some(gBrowser.tabs, tab => tab.hasAttribute("tabProtect"))) {
if (!warnAboutClosingTabs.confirm(""))
return false;
}
if (typeof(aPromptFunction) == "function" && !aPromptFunction())
return false;
}
if (aClose)
window.close();
return true;
};
},
uninit: function() {
window.removeEventListener("unload", this, false);
let os = Services.obs; continue;
}
if (++windowCount == 2)
break;
}
// If we're down to the last window and someone tries to shut down, check to make sure we can!
if (windowCount == 1 && !canQuitApplication("lastwindow"))
return false;
else if (windowCount != 1) {
//@line 28 "c:\builds\moz2_slave\m-cen-w32-ntly-000000000000000\build\toolkit\content\globalOvst locale = Components.classes["@mozilla.org/preferences-service;1"]
.getService(Components.interfaces.nsIPrefBranch).getCharPref("general.useragent.locale");
if (this.getVer() > 3.0) {
// "Recently Closed Windows"
menu = document.createElement("menu");
menu.setAttribute("id", "historyUndoWindowMenu3");
menu.setAttribute("label", "最近閉じたウィンドウ");
menu.setAttribute("accesskey", "W");
menu.setAttribute("disabled", "true");
popup.insertBefore(menu, refItem);
this.historyUndoWindowPopup3 = menu = menu.appendChild(document.createElement("menupopup"));
menu.setAttribute("id", "historyUndoWindowPopup3");
menu.setAttribute("onpopupshowing", "UndoListInTabmenu.populateUndoWindowSubmenu();");
}
//UndoClose Tab List 最近閉じたタブ
const LABE position="after_start"\
onpopupshowing="if (this.triggerNode) this.triggerNode.setAttribute(\'open\', \'true\');"\
onpopuphiding="if (this.triggerNode) this.triggerNode.removeAttribute(\'open\');">\
\
\
\
\