Jump to content

Recommended Posts

Posted

I'm looking for help with allowing popups on the master_preferences file for google chrome. I've been trying for days with no luck. I'm looking to allow certain websites to open popups. Anyone have any idea what the code is for allowing popups? I've tried this so far:

 

masterpref_popup.PNG

Posted (edited)
Anyone have any idea what the code is for allowing popups?

You're missing quite a lot in your master_preferences file since the popups setting is part of the content exceptions settings (which itself is part the profile setting). It should look like what is shown in red below.

 

I have tested this master_preferences file and it works perfectly for me. :)

 

{
   "homepage": "https://www.fullerton.edu",
   "homepage_is_newtabpage": false,
   "browser": {
     "show_home_button": true
   },
   "session": {
     "restore_on_startup": 4,
     "startup_urls": [
       "https://sts.fullerton.edu",
       "https://www.fullerton.edu"
     ]
   },
   "bookmark_bar": {
     "show_on_all_tabs": true
   },
   "sync_promo": {
     "show_on_first_run_allowed": false
   },
   "distribution": {
     "import_bookmarks": false,
     "import_history": false,
     "import_home_page": false,
     "import_search_engine": true,
     "do_not_create_desktop_shortcut": true,
     "do_not_create_quick_launch_shortcut": true,
     "do_not_create_taskbar_shortcut": false,
     "do_not_launch_chrome": true,
     "do_not_register_for_update_launch": true,
     "make_chrome_default": false,
     "make_chrome_default_for_user": false,
     "suppress_first_run_default_browser_prompt": true,
     "system_level": true,
     "verbose_logging": true
   },
   "first_run_tabs": [
     "https://www.fullerton.edu/sts",
     "https://www.fullerton.edu"
   ],
[color="#FF0000"]    "profile": {
       "avatar_index": 26,
       "content_settings": {
           "exceptions": {
               "popups": {
                   "[*.]calstate.edu,*": {
                       "setting": 1
                   },
                   "[*.]fullerton.edu,*": {
                       "setting": 1
                   }
               }
           },
           "pref_version": 1
       },
       "exit_type": "Normal",
       "exited_cleanly": true,
       "icon_version": 4,
       "managed_user_id": "",
       "name": "Person 1"
   }[/color]
 }

 

I normally configure the popup settings through Group Policy and/or G Suite since master_preferences is only read during the initial Chrome profile creation.

 

Also worth mentioning is the create_all_shortcuts setting has been superseded by the various do_not_create_ settings.

 

https://src.chromium.org/viewvc/chrome/trunk/src/chrome/installer/util/master_preferences_constants.h

https://src.chromium.org/viewvc/chrome/trunk/src/chrome/installer/util/master_preferences_constants.cc

 

// Boolean. [b]This is a legacy preference and should no longer be used[/b]; it is
// kept around so that old master_preferences which specify
// "create_all_shortcuts":false still enforce the new
// "do_not_create_(desktop|quick_launch)_shortcut" preferences. [b]Setting this to[/b]
// [b]true no longer has any impact[/b].

extern const char kCreateAllShortcuts[];

Edited by Arthur
Posted
Arthur! you are a life saver!! I'll be using this in a lab environment so the student's do not change much of the settings anyways. I'll be setting up group policy on my next run. Looks like I have more options.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...