Skip to content

Commit 732e510

Browse files
committed
[webgui] add extra settings for firefox
Let better use it on mac
1 parent 9531c31 commit 732e510

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

gui/webdisplay/src/RWebDisplayHandle.cxx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -821,9 +821,16 @@ std::string RWebDisplayHandle::FirefoxCreator::MakeProfile(std::string &exec, bo
821821
std::ofstream user_js(profile_dir + "/user.js", std::ios::trunc);
822822
// workaround for current Firefox, without such settings it fail to close window and terminate it from batch
823823
// also disable question about upload of data
824+
user_js << "user_pref(\"datareporting.policy.dataSubmissionPolicyBypassNotification\", true);" << std::endl;
824825
user_js << "user_pref(\"datareporting.policy.dataSubmissionPolicyAcceptedVersion\", 2);" << std::endl;
825826
user_js << "user_pref(\"datareporting.policy.dataSubmissionPolicyNotifiedTime\", \"1635760572813\");" << std::endl;
826827

828+
// try to avoid any kind of dialogs on the start
829+
user_js << "user_pref(\"app.update.auto\", false);" << std::endl;
830+
user_js << "user_pref(\"browser.shell.checkDefaultBrowser\", false);" << std::endl;
831+
user_js << "user_pref(\"browser.aboutwelcome.enabled\", false);" << std::endl;
832+
user_js << "user_pref(\"browser.tabs.disableBackgroundLinkLoading\", true);" << std::endl;
833+
827834
// try to ensure that window closes with last tab
828835
user_js << "user_pref(\"browser.tabs.closeWindowWithLastTab\", true);" << std::endl;
829836
user_js << "user_pref(\"dom.allow_scripts_to_close_windows\", true);" << std::endl;

0 commit comments

Comments
 (0)