Example #1
0
 ('javascript-can-close-windows', SettingValue(typ.Bool(), 'false'),
  "Whether JavaScript programs can close windows."),
 ('javascript-can-access-clipboard',
  SettingValue(typ.Bool(), 'false'),
  "Whether JavaScript programs can read or write to the clipboard."
  ),
 ('local-content-can-access-remote-urls',
  SettingValue(typ.Bool(), 'false'),
  "Whether locally loaded documents are allowed to access remote "
  "urls."),
 ('local-content-can-access-file-urls',
  SettingValue(typ.Bool(), 'true'),
  "Whether locally loaded documents are allowed to access other local "
  "urls."),
 ('cookies-accept', SettingValue(
     typ.AcceptCookies(), 'default'), "Whether to accept cookies."),
 ('cookies-store', SettingValue(
     typ.Bool(), 'true'), "Whether to store cookies."),
 ('host-block-lists',
  SettingValue(
      typ.UrlList(none_ok=True),
      'http://www.malwaredomainlist.com/hostslist/hosts.txt,'
      'http://someonewhocares.org/hosts/hosts,'
      'http://winhelp2002.mvps.org/hosts.zip,'
      'http://malwaredomains.lehigh.edu/files/justdomains.zip,'
      'http://pgl.yoyo.org/adservers/serverlist.php?'
      'hostformat=hosts&mimetype=plaintext,'
      'http://hosts-file.net/ad_servers.asp'),
  "List of URLs of lists which contain hosts to block.\n\n"
  "The file can be in one of the following formats:\n\n"
  "- An '/etc/hosts'-like file\n"
Example #2
0
        ('javascript-can-access-clipboard',
         SettingValue(typ.Bool(), 'false'),
         "Whether JavaScript programs can read or write to the clipboard."),

        ('local-content-can-access-remote-urls',
         SettingValue(typ.Bool(), 'false'),
         "Whether locally loaded documents are allowed to access remote "
         "urls."),

        ('local-content-can-access-file-urls',
         SettingValue(typ.Bool(), 'true'),
         "Whether locally loaded documents are allowed to access other local "
         "urls."),

        ('cookies-accept',
         SettingValue(typ.AcceptCookies(), 'default'),
         "Whether to accept cookies."),

        ('cookies-store',
         SettingValue(typ.Bool(), 'true'),
         "Whether to store cookies."),

        ('host-block-lists',
         SettingValue(typ.UrlList(none_ok=True),
                      'http://www.malwaredomainlist.com/hostslist/hosts.txt,'
                      'http://someonewhocares.org/hosts/hosts,'
                      'http://winhelp2002.mvps.org/hosts.zip,'
                      'http://malwaredomains.lehigh.edu/files/justdomains.zip,'
                      'http://pgl.yoyo.org/adservers/serverlist.php?'
                      'hostformat=hosts&mimetype=plaintext,'
                      'http://hosts-file.net/ad_servers.asp'),