зеркало из https://github.com/mozilla/gecko-dev.git
Bug 828347 - Warn if session restore is initialized with deprecated synchronous initialization. r=dteller
This commit is contained in:
Родитель
0a3fe23198
Коммит
24059ed95b
|
@ -9,6 +9,7 @@ const Cr = Components.results;
|
|||
Components.utils.import("resource://gre/modules/XPCOMUtils.jsm");
|
||||
Components.utils.import("resource://gre/modules/Services.jsm");
|
||||
Components.utils.import("resource://gre/modules/commonjs/promise/core.js");
|
||||
Components.utils.import("resource://gre/modules/Deprecated.jsm");
|
||||
|
||||
XPCOMUtils.defineLazyModuleGetter(this, "DeferredTask",
|
||||
"resource://gre/modules/DeferredTask.jsm");
|
||||
|
@ -3780,6 +3781,7 @@ var engineMetadataService = {
|
|||
* initialization.
|
||||
*/
|
||||
syncInit: function epsSyncInit() {
|
||||
Deprecated.warning("Search service falling back to deprecated synchronous initializer.", "https://developer.mozilla.org/en-US/docs/XPCOM_Interface_Reference/nsIBrowserSearchService#async_warning");
|
||||
LOG("metadata syncInit: starting");
|
||||
switch(this._initState) {
|
||||
case engineMetadataService._InitStates.NOT_STARTED:
|
||||
|
|
Загрузка…
Ссылка в новой задаче