Bug 507881 - remove useless "|| null" fallback in browserGlue.sanitize(window) calls. r=gavin

This commit is contained in:
Dão Gottwald 2009-08-04 20:10:23 +02:00
Родитель e46d2e44ae
Коммит 43d1a1d645
4 изменённых файлов: 3 добавлений и 6 удалений

Просмотреть файл

@ -126,7 +126,7 @@
<command id="Tools:Downloads" oncommand="BrowserDownloadsUI();"/>
<command id="Tools:Addons" oncommand="BrowserOpenAddonsMgr();"/>
<command id="Tools:Sanitize"
oncommand="Cc['@mozilla.org/browser/browserglue;1'].getService(Ci.nsIBrowserGlue).sanitize(window || null);"/>
oncommand="Cc['@mozilla.org/browser/browserglue;1'].getService(Ci.nsIBrowserGlue).sanitize(window);"/>
<command id="Tools:PrivateBrowsing" oncommand="gPrivateBrowsingUI.toggleMode();"/>
<command id="History:UndoCloseTab" oncommand="undoCloseTab();"/>
<command id="History:UndoCloseWindow" oncommand="undoCloseWindow();"/>

Просмотреть файл

@ -460,13 +460,10 @@ Sanitizer.showUI = function(aParentWindow)
/**
* Deletes privacy sensitive data in a batch, optionally showing the
* sanitize UI, according to user preferences
*
* @returns null (displayed UI, which should handle errors)
*/
Sanitizer.sanitize = function(aParentWindow)
{
Sanitizer.showUI(aParentWindow);
return null;
};
Sanitizer.onStartup = function()

Просмотреть файл

@ -548,7 +548,7 @@ var gPrivacyPane = {
const Cc = Components.classes, Ci = Components.interfaces;
var glue = Cc["@mozilla.org/browser/browserglue;1"]
.getService(Ci.nsIBrowserGlue);
glue.sanitize(window || null);
glue.sanitize(window);
// reset the timeSpan pref
if (aClearEverything)

Просмотреть файл

@ -75,7 +75,7 @@
function openSanitizeDialog() {
let browserGlue = Cc["@mozilla.org/browser/browserglue;1"].
getService(Ci.nsIBrowserGlue);
browserGlue.sanitize(mainWindow || null);
browserGlue.sanitize(mainWindow);
}
function setFavIcon(url) {