зеркало из https://github.com/mozilla/gecko-dev.git
Bug 807316 - Import PrivateBrowsingUtils.jsm lazily on Android; r=bnicholson
This commit is contained in:
Родитель
55e2feecee
Коммит
edb0ce50bd
|
@ -14,7 +14,6 @@ Cu.import("resource://gre/modules/Services.jsm");
|
|||
Cu.import("resource://gre/modules/AddonManager.jsm");
|
||||
Cu.import("resource://gre/modules/FileUtils.jsm");
|
||||
Cu.import("resource://gre/modules/JNI.jsm");
|
||||
Cu.import("resource://gre/modules/PrivateBrowsingUtils.jsm");
|
||||
|
||||
#ifdef ACCESSIBILITY
|
||||
Cu.import("resource://gre/modules/accessibility/AccessFu.jsm");
|
||||
|
@ -43,6 +42,11 @@ XPCOMUtils.defineLazyGetter(this, "SafeBrowsing", function() {
|
|||
});
|
||||
#endif
|
||||
|
||||
XPCOMUtils.defineLazyGetter(this, "PrivateBrowsingUtils", function() {
|
||||
Cu.import("resource://gre/modules/PrivateBrowsingUtils.jsm");
|
||||
return PrivateBrowsingUtils;
|
||||
});
|
||||
|
||||
// Lazily-loaded browser scripts:
|
||||
[
|
||||
["HelperApps", "chrome://browser/content/HelperApps.js"],
|
||||
|
|
Загрузка…
Ссылка в новой задаче