LCOV - code coverage report
Current view: top level - dom/ipc - ContentPrefs.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 6 6 100.0 %
Date: 2017-07-14 16:53:18 Functions: 2 2 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
       2             : /* vim: set ts=8 sts=2 et sw=2 tw=80: */
       3             : /* This Source Code Form is subject to the terms of the Mozilla Public
       4             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       5             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
       6             : 
       7             : #include "ContentPrefs.h"
       8             : 
       9             : /******************************************************************************
      10             :  *
      11             :  *           DO NOT ADD PREFS TO THIS LIST WITHOUT DOM PEER REVIEW
      12             :  *
      13             :  * This is the list of preferences that are sent to the content process on
      14             :  * startup. Only prefs that are required immediately upon startup should be
      15             :  * listed here. The first IPC message received in the content process will
      16             :  * contain all the other prefs. Prefs should only be listed here if they must be
      17             :  * read before the first IPC message is received.
      18             :  *
      19             :  ******************************************************************************/
      20             : 
      21             : const char* mozilla::dom::ContentPrefs::gInitPrefs[] = {
      22             :   "accessibility.monoaudio.enable",
      23             :   "accessibility.mouse_focuses_formcontrol",
      24             :   "accessibility.tabfocus_applies_to_xul",
      25             :   "app.update.channel",
      26             :   "browser.dom.window.dump.enabled",
      27             :   "browser.sessionhistory.max_entries",
      28             :   "browser.sessionhistory.max_total_viewers",
      29             :   "content.cors.disable",
      30             :   "content.cors.no_private_data",
      31             :   "content.notify.backoffcount",
      32             :   "content.notify.interval",
      33             :   "content.notify.ontimer",
      34             :   "content.sink.enable_perf_mode",
      35             :   "content.sink.event_probe_rate",
      36             :   "content.sink.initial_perf_time",
      37             :   "content.sink.interactive_deflect_count",
      38             :   "content.sink.interactive_parse_time",
      39             :   "content.sink.interactive_time",
      40             :   "content.sink.pending_event_mode",
      41             :   "content.sink.perf_deflect_count",
      42             :   "content.sink.perf_parse_time",
      43             :   "device.storage.prompt.testing",
      44             :   "device.storage.writable.name",
      45             :   "dom.allow_XUL_XBL_for_file",
      46             :   "dom.allow_cut_copy",
      47             :   "dom.enable_frame_timing",
      48             :   "dom.enable_performance",
      49             :   "dom.enable_resource_timing",
      50             :   "dom.event.handling-user-input-time-limit",
      51             :   "dom.event.touch.coalescing.enabled",
      52             :   "dom.forms.autocomplete.experimental",
      53             :   "dom.ipc.processPriorityManager.backgroundGracePeriodMS",
      54             :   "dom.ipc.processPriorityManager.backgroundPerceivableGracePeriodMS",
      55             :   "dom.max_chrome_script_run_time",
      56             :   "dom.max_script_run_time",
      57             :   "dom.mozBrowserFramesEnabled",
      58             :   "dom.performance.enable_notify_performance_timing",
      59             :   "dom.performance.enable_user_timing_logging",
      60             :   "dom.storage.testing",
      61             :   "dom.url.encode_decode_hash",
      62             :   "dom.url.getters_decode_hash",
      63             :   "dom.use_watchdog",
      64             :   "dom.vibrator.enabled",
      65             :   "dom.vibrator.max_vibrate_list_len",
      66             :   "dom.vibrator.max_vibrate_ms",
      67             :   "dom.webcomponents.customelements.enabled",
      68             :   "dom.webcomponents.enabled",
      69             :   "focusmanager.testmode",
      70             :   "font.size.inflation.disabledInMasterProcess",
      71             :   "font.size.inflation.emPerLine",
      72             :   "font.size.inflation.forceEnabled",
      73             :   "font.size.inflation.lineThreshold",
      74             :   "font.size.inflation.mappingIntercept",
      75             :   "font.size.inflation.maxRatio",
      76             :   "font.size.inflation.minTwips",
      77             :   "full-screen-api.allow-trusted-requests-only",
      78             :   "full-screen-api.enabled",
      79             :   "full-screen-api.unprefix.enabled",
      80             : #ifdef FUZZING
      81             :   "fuzzing.enabled",
      82             : #endif
      83             :   "gfx.font_rendering.opentype_svg.enabled",
      84             :   "hangmonitor.timeout",
      85             :   "html5.flushtimer.initialdelay",
      86             :   "html5.flushtimer.subsequentdelay",
      87             :   "html5.offmainthread",
      88             :   "intl.charset.fallback.tld",
      89             :   "intl.ime.hack.on_ime_unaware_apps.fire_key_events_for_composition",
      90             :   "javascript.enabled",
      91             :   "javascript.options.asmjs",
      92             :   "javascript.options.asyncstack",
      93             :   "javascript.options.baselinejit",
      94             :   "javascript.options.baselinejit.threshold",
      95             :   "javascript.options.baselinejit.unsafe_eager_compilation",
      96             :   "javascript.options.discardSystemSource",
      97             :   "javascript.options.dump_stack_on_debuggee_would_run",
      98             :   "javascript.options.gczeal",
      99             :   "javascript.options.gczeal.frequency",
     100             :   "javascript.options.ion",
     101             :   "javascript.options.ion.offthread_compilation",
     102             :   "javascript.options.ion.threshold",
     103             :   "javascript.options.ion.unsafe_eager_compilation",
     104             :   "javascript.options.jit.full_debug_checks",
     105             :   "javascript.options.native_regexp",
     106             :   "javascript.options.parallel_parsing",
     107             :   "javascript.options.shared_memory",
     108             :   "javascript.options.strict",
     109             :   "javascript.options.strict.debug",
     110             :   "javascript.options.throw_on_asmjs_validation_failure",
     111             :   "javascript.options.throw_on_debuggee_would_run",
     112             :   "javascript.options.wasm",
     113             :   "javascript.options.wasm_baselinejit",
     114             :   "javascript.options.werror",
     115             :   "javascript.use_us_english_locale",
     116             :   "layout.idle_period.required_quiescent_frames",
     117             :   "layout.idle_period.time_limit",
     118             :   "layout.interruptible-reflow.enabled",
     119             :   "mathml.disabled",
     120             :   "media.apple.forcevda",
     121             :   "media.clearkey.persistent-license.enabled",
     122             :   "media.cubeb.backend",
     123             :   "media.cubeb_latency_msg_frames",
     124             :   "media.cubeb_latency_playback_ms",
     125             :   "media.decoder-doctor.wmf-disabled-is-failure",
     126             :   "media.decoder.fuzzing.dont-delay-inputexhausted",
     127             :   "media.decoder.fuzzing.enabled",
     128             :   "media.decoder.fuzzing.video-output-minimum-interval-ms",
     129             :   "media.decoder.limit",
     130             :   "media.decoder.recycle.enabled",
     131             :   "media.dormant-on-pause-timeout-ms",
     132             :   "media.eme.audio.blank",
     133             :   "media.eme.chromium-api.enabled",
     134             :   "media.eme.enabled",
     135             :   "media.eme.video.blank",
     136             :   "media.ffmpeg.enabled",
     137             :   "media.ffvpx.enabled",
     138             :   "media.ffvpx.low-latency.enabled",
     139             :   "media.flac.enabled",
     140             :   "media.forcestereo.enabled",
     141             :   "media.gmp.async-shutdown-timeout",
     142             :   "media.gmp.decoder.aac",
     143             :   "media.gmp.decoder.enabled",
     144             :   "media.gmp.decoder.h264",
     145             :   "media.gmp.insecure.allow",
     146             :   "media.gpu-process-decoder",
     147             :   "media.libavcodec.allow-obsolete",
     148             :   "media.num-decode-threads",
     149             :   "media.ogg.enabled",
     150             :   "media.ogg.flac.enabled",
     151             :   "media.resampling.enabled",
     152             :   "media.resampling.rate",
     153             :   "media.ruin-av-sync.enabled",
     154             :   "media.rust.test_mode",
     155             :   "media.suspend-bkgnd-video.delay-ms",
     156             :   "media.suspend-bkgnd-video.enabled",
     157             :   "media.use-blank-decoder",
     158             :   "media.video_stats.enabled",
     159             :   "media.volume_scale",
     160             :   "media.webspeech.recognition.enable",
     161             :   "media.webspeech.recognition.force_enable",
     162             :   "media.webspeech.synth.force_global_queue",
     163             :   "media.webspeech.test.enable",
     164             :   "media.webspeech.test.fake_fsm_events",
     165             :   "media.webspeech.test.fake_recognition_service",
     166             :   "media.wmf.allow-unsupported-resolutions",
     167             :   "media.wmf.decoder.thread-count",
     168             :   "media.wmf.enabled",
     169             :   "media.wmf.skip-blacklist",
     170             :   "media.wmf.vp9.enabled",
     171             :   "memory.free_dirty_pages",
     172             :   "memory.low_commit_space_threshold_mb",
     173             :   "memory.low_memory_notification_interval_ms",
     174             :   "memory.low_physical_memory_threshold_mb",
     175             :   "memory.low_virtual_mem_threshold_mb",
     176             :   "network.IDN.blacklist_chars",
     177             :   "network.IDN.restriction_profile",
     178             :   "network.IDN.use_whitelist",
     179             :   "network.IDN_show_punycode",
     180             :   "network.buffer.cache.count",
     181             :   "network.buffer.cache.size",
     182             :   "network.captive-portal-service.enabled",
     183             :   "network.cookie.cookieBehavior",
     184             :   "network.cookie.lifetimePolicy",
     185             :   "network.dns.disablePrefetch",
     186             :   "network.dns.disablePrefetchFromHTTPS",
     187             :   "network.jar.block-remote-files",
     188             :   "network.loadinfo.skip_type_assertion",
     189             :   "network.notify.changed",
     190             :   "network.offline-mirrors-connectivity",
     191             :   "network.protocol-handler.external.jar",
     192             :   "network.proxy.type",
     193             :   "network.security.ports.banned",
     194             :   "network.security.ports.banned.override",
     195             :   "network.standard-url.enable-rust",
     196             :   "network.standard-url.max-length",
     197             :   "network.sts.max_time_for_events_between_two_polls",
     198             :   "network.sts.max_time_for_pr_close_during_shutdown",
     199             :   "network.tcp.keepalive.enabled",
     200             :   "network.tcp.keepalive.idle_time",
     201             :   "network.tcp.keepalive.probe_count",
     202             :   "network.tcp.keepalive.retry_interval",
     203             :   "network.tcp.sendbuffer",
     204             :   "nglayout.debug.invalidation",
     205             :   "privacy.donottrackheader.enabled",
     206             :   "privacy.firstparty.isolate",
     207             :   "privacy.firstparty.isolate.restrict_opener_access",
     208             :   "privacy.resistFingerprinting",
     209             :   "security.data_uri.unique_opaque_origin",
     210             :   "security.fileuri.strict_origin_policy",
     211             :   "security.sandbox.content.level",
     212             :   "security.sandbox.content.tempDirSuffix",
     213             :   "security.sandbox.logging.enabled",
     214             :   "security.sandbox.mac.track.violations",
     215             :   "security.sandbox.windows.log.stackTraceDepth",
     216             :   "shutdown.watchdog.timeoutSecs",
     217             :   "signed.applets.codebase_principal_support",
     218             :   "svg.disabled",
     219             :   "svg.display-lists.hit-testing.enabled",
     220             :   "svg.display-lists.painting.enabled",
     221             :   "svg.new-getBBox.enabled",
     222             :   "svg.paint-order.enabled",
     223             :   "svg.path-caching.enabled",
     224             :   "svg.transform-box.enabled",
     225             :   "toolkit.asyncshutdown.crash_timeout",
     226             :   "toolkit.asyncshutdown.log",
     227             :   "toolkit.osfile.log",
     228             :   "toolkit.osfile.log.redirect",
     229             :   "toolkit.telemetry.enabled",
     230             :   "toolkit.telemetry.idleTimeout",
     231             :   "toolkit.telemetry.initDelay",
     232             :   "toolkit.telemetry.log.dump",
     233             :   "toolkit.telemetry.log.level",
     234             :   "toolkit.telemetry.minSubsessionLength",
     235             :   "toolkit.telemetry.scheduler.idleTickInterval",
     236             :   "toolkit.telemetry.scheduler.tickInterval",
     237             :   "toolkit.telemetry.unified",
     238             :   "ui.key.menuAccessKeyFocuses",
     239             :   "ui.popup.disable_autohide",
     240             :   "ui.use_activity_cursor",
     241             :   "view_source.editor.external"};
     242             : 
     243         496 : const char** mozilla::dom::ContentPrefs::GetContentPrefs(size_t* aCount)
     244             : {
     245         496 :   *aCount = ArrayLength(ContentPrefs::gInitPrefs);
     246         496 :   return gInitPrefs;
     247             : }
     248             : 
     249        1818 : const char*  mozilla::dom::ContentPrefs::GetContentPref(size_t aIndex)
     250             : {
     251        1818 :   MOZ_ASSERT(aIndex < ArrayLength(ContentPrefs::gInitPrefs));
     252        1818 :   return gInitPrefs[aIndex];
     253             : }

Generated by: LCOV version 1.13