зеркало из https://github.com/mozilla/gecko-dev.git
Bug 838552 - nsSessionStartup.js' debug code is noisy, r=Yoric.
This commit is contained in:
Родитель
8467636a41
Коммит
f027794115
|
@ -71,7 +71,6 @@ SessionStartup.prototype = {
|
||||||
* Initialize the component
|
* Initialize the component
|
||||||
*/
|
*/
|
||||||
init: function sss_init() {
|
init: function sss_init() {
|
||||||
debug("init starting");
|
|
||||||
// do not need to initialize anything in auto-started private browsing sessions
|
// do not need to initialize anything in auto-started private browsing sessions
|
||||||
if (PrivateBrowsingUtils.permanentPrivateBrowsing)
|
if (PrivateBrowsingUtils.permanentPrivateBrowsing)
|
||||||
return;
|
return;
|
||||||
|
@ -79,7 +78,6 @@ SessionStartup.prototype = {
|
||||||
_SessionFile.read().then(
|
_SessionFile.read().then(
|
||||||
this._onSessionFileRead.bind(this)
|
this._onSessionFileRead.bind(this)
|
||||||
);
|
);
|
||||||
debug("init launched");
|
|
||||||
},
|
},
|
||||||
|
|
||||||
// Wrap a string as a nsISupports
|
// Wrap a string as a nsISupports
|
||||||
|
@ -91,9 +89,7 @@ SessionStartup.prototype = {
|
||||||
},
|
},
|
||||||
|
|
||||||
_onSessionFileRead: function sss_onSessionFileRead(aStateString) {
|
_onSessionFileRead: function sss_onSessionFileRead(aStateString) {
|
||||||
debug("onSessionFileRead ");
|
|
||||||
if (this._initialized) {
|
if (this._initialized) {
|
||||||
debug("onSessionFileRead: Initialization is already complete");
|
|
||||||
// Initialization is complete, nothing else to do
|
// Initialization is complete, nothing else to do
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -300,7 +296,6 @@ SessionStartup.prototype = {
|
||||||
// initialization and kill ongoing asynchronous initialization
|
// initialization and kill ongoing asynchronous initialization
|
||||||
_ensureInitialized: function sss__ensureInitialized() {
|
_ensureInitialized: function sss__ensureInitialized() {
|
||||||
try {
|
try {
|
||||||
debug("_ensureInitialized: " + this._initialState);
|
|
||||||
if (this._initialized) {
|
if (this._initialized) {
|
||||||
// Initialization is complete, nothing else to do
|
// Initialization is complete, nothing else to do
|
||||||
return;
|
return;
|
||||||
|
@ -317,7 +312,7 @@ SessionStartup.prototype = {
|
||||||
QueryInterface : XPCOMUtils.generateQI([Ci.nsIObserver,
|
QueryInterface : XPCOMUtils.generateQI([Ci.nsIObserver,
|
||||||
Ci.nsISupportsWeakReference,
|
Ci.nsISupportsWeakReference,
|
||||||
Ci.nsISessionStartup]),
|
Ci.nsISessionStartup]),
|
||||||
classID: Components.ID("{ec7a6c20-e081-11da-8ad9-0800200c9a66}"),
|
classID: Components.ID("{ec7a6c20-e081-11da-8ad9-0800200c9a66}")
|
||||||
};
|
};
|
||||||
|
|
||||||
this.NSGetFactory = XPCOMUtils.generateNSGetFactory([SessionStartup]);
|
this.NSGetFactory = XPCOMUtils.generateNSGetFactory([SessionStartup]);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче