File tree Expand file tree Collapse file tree 8 files changed +22
-14
lines changed
Installers/Multirow & other functions
Multirow and other functions/JS Loader Expand file tree Collapse file tree 8 files changed +22
-14
lines changed Original file line number Diff line number Diff line change @@ -787,6 +787,8 @@ def remove_profile_patch(firefox_profile):
787787 remove_file_if_exists (os .path .normpath (firefox_profile + "/chrome/utils/RDFManifestConverter.jsm" ))
788788 remove_file_if_exists (os .path .normpath (firefox_profile + "/chrome/utils/userChrome.jsm" ))
789789 remove_file_if_exists (os .path .normpath (firefox_profile + "/chrome/utils/xPref.jsm" ))
790+ remove_file_if_exists (os .path .normpath (firefox_profile + "/chrome/utils/xPref.sys.mjs" ))
791+ remove_file_if_exists (os .path .normpath (firefox_profile + "/chrome/utils/userChrome.js" ))
790792
791793 util_chrome_files = []
792794 for r , d , f in os .walk (os .path .normpath (firefox_profile + CHROME_FOLDER + UTILS_FOLDER )):
Original file line number Diff line number Diff line change @@ -788,6 +788,8 @@ def remove_profile_patch(firefox_profile):
788788 remove_file_if_exists (os .path .normpath (firefox_profile + "/chrome/utils/RDFManifestConverter.jsm" ))
789789 remove_file_if_exists (os .path .normpath (firefox_profile + "/chrome/utils/userChrome.jsm" ))
790790 remove_file_if_exists (os .path .normpath (firefox_profile + "/chrome/utils/xPref.jsm" ))
791+ remove_file_if_exists (os .path .normpath (firefox_profile + "/chrome/utils/xPref.sys.mjs" ))
792+ remove_file_if_exists (os .path .normpath (firefox_profile + "/chrome/utils/userChrome.js" ))
791793
792794 util_chrome_files = []
793795 for r , d , f in os .walk (os .path .normpath (firefox_profile + CHROME_FOLDER + UTILS_FOLDER )):
Original file line number Diff line number Diff line change 1212} catch ( ex ) { }
1313
1414try {
15- ChromeUtils . import ( 'chrome://userchromejs/content/userChrome.jsm ' ) ;
15+ Services . scriptloader . loadSubScript ( 'chrome://userchromejs/content/userChrome.js ' ) ;
1616} catch ( ex ) { }
Original file line number Diff line number Diff line change 1- let EXPORTED_SYMBOLS = [ ] ;
1+ 'use strict' ;
22
33const Services = globalThis . Services || ChromeUtils . import ( "resource://gre/modules/Services.jsm" ) . Services ;
4- const { xPref } = ChromeUtils . import ( 'chrome://userchromejs/content/xPref.jsm' ) ;
5- const { Management } = ChromeUtils . import ( 'resource://gre/modules/Extension.jsm' ) ;
6- const { AppConstants } = ChromeUtils . import ( 'resource://gre/modules/AppConstants.jsm' ) ;
4+ ChromeUtils . defineESModuleGetters ( this , {
5+ xPref : 'chrome://userchromejs/content/xPref.sys.mjs' ,
6+ Management : 'resource://gre/modules/Extension.sys.mjs' ,
7+ AppConstants : 'resource://gre/modules/AppConstants.sys.mjs' ,
8+ } ) ;
79
810let UC = {
911 webExts : new Map ( ) ,
Original file line number Diff line number Diff line change 1- let EXPORTED_SYMBOLS = [ 'xPref' ] ;
1+ 'use strict' ;
22
3- var xPref = {
3+ export const xPref = {
44 // Retorna o valor da preferência, seja qual for o tipo, mas não
55 // testei com tipos complexos como nsIFile, não sei como detectar
66 // uma preferência assim, na verdade nunca vi uma
Original file line number Diff line number Diff line change 1212} catch ( ex ) { }
1313
1414try {
15- ChromeUtils . import ( 'chrome://userchromejs/content/userChrome.jsm ' ) ;
15+ Services . scriptloader . loadSubScript ( 'chrome://userchromejs/content/userChrome.js ' ) ;
1616} catch ( ex ) { }
Original file line number Diff line number Diff line change 1- let EXPORTED_SYMBOLS = [ ] ;
1+ 'use strict' ;
22
33const Services = globalThis . Services || ChromeUtils . import ( "resource://gre/modules/Services.jsm" ) . Services ;
4- const { xPref } = ChromeUtils . import ( 'chrome://userchromejs/content/xPref.jsm' ) ;
5- const { Management } = ChromeUtils . import ( 'resource://gre/modules/Extension.jsm' ) ;
6- const { AppConstants } = ChromeUtils . import ( 'resource://gre/modules/AppConstants.jsm' ) ;
4+ ChromeUtils . defineESModuleGetters ( this , {
5+ xPref : 'chrome://userchromejs/content/xPref.sys.mjs' ,
6+ Management : 'resource://gre/modules/Extension.sys.mjs' ,
7+ AppConstants : 'resource://gre/modules/AppConstants.sys.mjs' ,
8+ } ) ;
79
810let UC = {
911 webExts : new Map ( ) ,
Original file line number Diff line number Diff line change 1- let EXPORTED_SYMBOLS = [ 'xPref' ] ;
1+ 'use strict' ;
22
3- var xPref = {
3+ export const xPref = {
44 // Retorna o valor da preferência, seja qual for o tipo, mas não
55 // testei com tipos complexos como nsIFile, não sei como detectar
66 // uma preferência assim, na verdade nunca vi uma
You can’t perform that action at this time.
0 commit comments