mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-06 07:48:38 +09:00
Issue #65 - Remove AppConstants from toolkit/components/places
This commit is contained in:
parent
ce0c0ee950
commit
afa0dd0701
2 changed files with 7 additions and 3 deletions
|
|
@ -30,7 +30,6 @@ const { classes: Cc, interfaces: Ci, results: Cr, utils: Cu } = Components;
|
|||
Cu.importGlobalProperties(["URL"]);
|
||||
|
||||
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
||||
Cu.import("resource://gre/modules/AppConstants.jsm");
|
||||
XPCOMUtils.defineLazyModuleGetter(this, "Services",
|
||||
"resource://gre/modules/Services.jsm");
|
||||
XPCOMUtils.defineLazyModuleGetter(this, "NetUtil",
|
||||
|
|
@ -64,7 +63,11 @@ const MIN_TRANSACTIONS_FOR_BATCH = 5;
|
|||
// On Mac OSX, the transferable system converts "\r\n" to "\n\n", where
|
||||
// we really just want "\n". On other platforms, the transferable system
|
||||
// converts "\r\n" to "\n".
|
||||
const NEWLINE = AppConstants.platform == "macosx" ? "\n" : "\r\n";
|
||||
#ifdef XP_MACOSX
|
||||
const NEWLINE = "\n";
|
||||
#else
|
||||
const NEWLINE = "\r\n";
|
||||
#endif
|
||||
|
||||
function QI_node(aNode, aIID) {
|
||||
var result = null;
|
||||
|
|
|
|||
|
|
@ -72,9 +72,10 @@ if CONFIG['MOZ_PLACES']:
|
|||
'PlacesSearchAutocompleteProvider.jsm',
|
||||
'PlacesSyncUtils.jsm',
|
||||
'PlacesTransactions.jsm',
|
||||
'PlacesUtils.jsm',
|
||||
]
|
||||
|
||||
EXTRA_PP_JS_MODULES += ['PlacesUtils.jsm']
|
||||
|
||||
EXTRA_COMPONENTS += [
|
||||
'ColorAnalyzer.js',
|
||||
'nsLivemarkService.js',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue