зеркало из https://github.com/mozilla/gecko-dev.git
Bug 507881 - remove useless "|| null" fallback in browserGlue.sanitize(window) calls. r=gavin
This commit is contained in:
Родитель
e46d2e44ae
Коммит
43d1a1d645
|
@ -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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче