window.close() is not working
SLES 15.5 QU2 in Mozilla Firefox 115.8.0esr was not supporting window.close() even i added user_pref("dom.allow_scripts_to_close_windows", true); in user.js and prefs.js
การตอบกลับทั้งหมด (12)
Any warning appears in the console?
i checked about:config . i unable see the user_pref("dom.allow_scripts_to_close_windows", true);
console output :
script may not close windows that were not opened by script
Yup, that's correct.
i checked about:config . i unable see the user_pref("dom.allow_scripts_to_close_windows", true);
how i can fix the issues
how I can added user_pref to close the window
Q :Mozilla Firefox 115.8.0esr is have dom.allow_scripts_to_close_windows ChatGPT
A } As of Firefox version 115.8.0esr, the preference dom.allow_scripts_to_close_windows does not exist. This preference allows JavaScript code running in webpages to close the window or tab it's running in. However, Firefox doesn't have this preference in its configuration.
If you're looking to control whether JavaScript code can close windows or tabs, you might need to explore alternative methods or configurations available in the specific version of Firefox you're using. Always refer to the official documentation or release notes for accurate information about preferences and configurations in your Firefox version.
venkataiah.chiripireddy93 said
i checked about:config . i unable see the user_pref("dom.allow_scripts_to_close_windows", true);
Try to add this pref directly in about:config (don't edit files). This pref exists and I'd say it should fix your issue. ChatGPT is lying as usual.
i am able see anther error pop :
firefox already running , but is not reponding to use firefox you must frist close the exiting firefox process , restart your device , or use a different profile
เปลี่ยนแปลงโดย Venkataiah ch เมื่อ
it's running more the 2 processer sdc has logged on console from :0. insite has logged on pts/0 from 10.213.255.248. insite has logged on pts/1 from 10.213.255.248. BLRMR238 home/insite# ps -ef | grep "firefox" sdc 8362 2068 2 14:17 ? 00:00:12 /usr/lib64/firefox/firefox -P iLinq -safe-mode /opt/gehc/mr_iLinq_data/root/UI/i18nFiles/iLinq_index_en_US.html sdc 8480 8362 0 14:17 ? 00:00:00 /usr/lib64/firefox/firefox -contentproc -parentBuildID 20240212204114 -prefsLen 20838 -prefMapSize 237721 -appDir /usr/lib64/firefox/browser {69237eef-e6b0-42f3-be37-f46e5cb6eeeb} 8362 true socket sdc 8500 8362 0 14:17 ? 00:00:00 /usr/lib64/firefox/firefox -contentproc -childID 1 -isForBrowser -prefsLen 21149 -prefMapSize 237721 -safeMode -parentBuildID 20240212204114 -appDir /usr/lib64/firefox/browser {3f8473bf-abdd-421a-8bbb-f67d3d4adb8a} 8362 true tab sdc 8584 8362 0 14:17 ? 00:00:00 /usr/lib64/firefox/firefox -contentproc -childID 2 -isForBrowser -prefsLen 21522 -prefMapSize 237721 -safeMode -parentBuildID 20240212204114 -appDir /usr/lib64/firefox/browser {6a30ad24-6a58-47f0-9bec-23b1a2475594} 8362 true tab sdc 8588 8362 0 14:17 ? 00:00:00 /usr/lib64/firefox/firefox -contentproc -childID 3 -isForBrowser -prefsLen 21522 -prefMapSize 237721 -safeMode -parentBuildID 20240212204114 -appDir /usr/lib64/firefox/browser {5eb2f089-83bf-4244-b271-c88e20b5687c} 8362 true tab sdc 8599 8362 0 14:17 ? 00:00:00 /usr/lib64/firefox/firefox -contentproc -childID 4 -isForBrowser -prefsLen 21522 -prefMapSize 237721 -safeMode -parentBuildID 20240212204114 -appDir /usr/lib64/firefox/browser {bdd80c3d-2b37-499b-89db-626627746cbe} 8362 true tab sdc 8714 8362 0 14:17 ? 00:00:02 /usr/lib64/firefox/firefox -contentproc -childID 5 -isForBrowser -prefsLen 23783 -prefMapSize 237721 -safeMode -parentBuildID 20240212204114 -appDir /usr/lib64/firefox/browser {0537e33d-6bfb-4dea-bb9f-469376adf1d7} 8362 true tab sdc 8807 8362 0 14:17 ? 00:00:00 /usr/lib64/firefox/firefox -contentproc -childID 6 -isForBrowser -prefsLen 29543 -prefMapSize 237721 -safeMode -parentBuildID 20240212204114 -appDir /usr/lib64/firefox/browser {4d8d1079-75f7-4ce1-b4c3-54ab533b79a4} 8362 true tab root 11356 11109 0 14:24 pts/1 00:00:00 grep firefox sdc 13698 2068 0 13:11 ? 00:00:02 /usr/lib64/firefox/firefox -P iLinq -safe-mode /opt/gehc/mr_iLinq_data/root/UI/i18nFiles/iLinq_index_en_US.html sdc 14462 13698 0 13:11 ? 00:00:00 /usr/lib64/firefox/firefox -contentproc -parentBuildID 20240212204114 -prefsLen 20838 -prefMapSize 237721 -appDir /usr/lib64/firefox/browser {d64a42b9-8529-4e14-b315-a95b1039c9ab} 13698 true socket sdc 14714 13698 0 13:11 ? 00:00:00 /usr/lib64/firefox/firefox -contentproc -childID 1 -isForBrowser -prefsLen 21149 -prefMapSize 237721 -safeMode -parentBuildID 20240212204114 -appDir /usr/lib64/firefox/browser {bff45aa8-c1fc-4770-99dc-54c073ac77eb} 13698 true tab sdc 15457 13698 0 13:11 ? 00:00:00 /usr/lib64/firefox/firefox -contentproc -childID 2 -isForBrowser -prefsLen 21522 -prefMapSize 237721 -safeMode -parentBuildID 20240212204114 -appDir /usr/lib64/firefox/browser {5cb16ada-1d36-4168-b14f-7e33c2523b39} 13698 true tab sdc 15505 13698 0 13:11 ? 00:00:00 /usr/lib64/firefox/firefox -contentproc -childID 3 -isForBrowser -prefsLen 21522 -prefMapSize 237721 -safeMode -parentBuildID 20240212204114 -appDir /usr/lib64/firefox/browser {3be32212-2f3a-43d7-9d0a-50dcab2f2b18} 13698 true tab sdc 15574 13698 0 13:11 ? 00:00:00 /usr/lib64/firefox/firefox -contentproc -childID 4 -isForBrowser -prefsLen 21522 -prefMapSize 237721 -safeMode -parentBuildID 20240212204114 -appDir /usr/lib64/firefox/browser {4435b985-a155-46e0-bc07-b45425b4ebe0} 13698 true tab BLRMR238 home/insite# ps -ef | grep "firefox" sdc 8362 2068 2 14:17 ? 00:00:13 [firefox] <defunct> root 11795 11109 0 14:25 pts/1 00:00:00 grep firefox sdc 13698 2068 0 13:11 ? 00:00:02 /usr/lib64/firefox/firefox -P iLinq -safe-mode /opt/gehc/mr_iLinq_data/root/UI/i18nFiles/iLinq_index_en_US.html sdc 14462 13698 0 13:11 ? 00:00:00 /usr/lib64/firefox/firefox -contentproc -parentBuildID 20240212204114 -prefsLen 20838 -prefMapSize 237721 -appDir /usr/lib64/firefox/browser {d64a42b9-8529-4e14-b315-a95b1039c9ab} 13698 true socket sdc 14714 13698 0 13:11 ? 00:00:00 /usr/lib64/firefox/firefox -contentproc -childID 1 -isForBrowser -prefsLen 21149 -prefMapSize 237721 -safeMode -parentBuildID 20240212204114 -appDir /usr/lib64/firefox/browser {bff45aa8-c1fc-4770-99dc-54c073ac77eb} 13698 true tab sdc 15457 13698 0 13:11 ? 00:00:00 /usr/lib64/firefox/firefox -contentproc -childID 2 -isForBrowser -prefsLen 21522 -prefMapSize 237721 -safeMode -parentBuildID 20240212204114 -appDir /usr/lib64/firefox/browser {5cb16ada-1d36-4168-b14f-7e33c2523b39} 13698 true tab sdc 15505 13698 0 13:11 ? 00:00:00 /usr/lib64/firefox/firefox -contentproc -childID 3 -isForBrowser -prefsLen 21522 -prefMapSize 237721 -safeMode -parentBuildID 20240212204114 -appDir /usr/lib64/firefox/browser {3be32212-2f3a-43d7-9d0a-50dcab2f2b18} 13698 true tab sdc 15574 13698 0 13:11 ? 00:00:00 /usr/lib64/firefox/firefox -contentproc -childID 4 -isForBrowser -prefsLen 21522 -prefMapSize 237721 -safeMode -parentBuildID 20240212204114 -appDir /usr/lib64/firefox/browser {4435b985-a155-46e0-bc07-b45425b4ebe0} 13698 true tab
while creating the firefox profile automaticaly addeding .lock file . please help how avoid added .lock files