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 : // This is the list of the preferences that are exposed to workers.
8 : // The format is as follows:
9 : //
10 : // WORKER_SIMPLE_PREF("foo.bar", FooBar, FOO_BAR, UpdaterFunction)
11 : //
12 : // * First argument is the name of the pref.
13 : // * The name of the getter function. This defines a FindName()
14 : // function that returns the value of the pref on WorkerPrivate.
15 : // * The macro version of the name. This defines a WORKERPREF_FOO_BAR
16 : // macro in Workers.h.
17 : // * The name of the function that updates the new value of a pref.
18 : //
19 : // WORKER_PREF("foo.bar", UpdaterFunction)
20 : //
21 : // * First argument is the name of the pref.
22 : // * The name of the function that updates the new value of a pref.
23 :
24 : #if !(defined(DEBUG) || defined(MOZ_ENABLE_JS_DUMP))
25 : WORKER_SIMPLE_PREF("browser.dom.window.dump.enabled", DumpEnabled, DUMP)
26 : #endif
27 3 : WORKER_SIMPLE_PREF("canvas.imagebitmap_extensions.enabled", ImageBitmapExtensionsEnabled, IMAGEBITMAP_EXTENSIONS_ENABLED)
28 5 : WORKER_SIMPLE_PREF("dom.caches.enabled", DOMCachesEnabled, DOM_CACHES)
29 2 : WORKER_SIMPLE_PREF("dom.caches.testing.enabled", DOMCachesTestingEnabled, DOM_CACHES_TESTING)
30 2 : WORKER_SIMPLE_PREF("dom.performance.enable_user_timing_logging", PerformanceLoggingEnabled, PERFORMANCE_LOGGING_ENABLED)
31 3 : WORKER_SIMPLE_PREF("dom.webnotifications.enabled", DOMWorkerNotificationEnabled, DOM_WORKERNOTIFICATION)
32 3 : WORKER_SIMPLE_PREF("dom.webnotifications.serviceworker.enabled", DOMServiceWorkerNotificationEnabled, DOM_SERVICEWORKERNOTIFICATION)
33 3 : WORKER_SIMPLE_PREF("dom.webnotifications.requireinteraction.enabled", DOMWorkerNotificationRIEnabled, DOM_WORKERNOTIFICATIONRI)
34 3 : WORKER_SIMPLE_PREF("dom.serviceWorkers.enabled", ServiceWorkersEnabled, SERVICEWORKERS_ENABLED)
35 2 : WORKER_SIMPLE_PREF("dom.serviceWorkers.testing.enabled", ServiceWorkersTestingEnabled, SERVICEWORKERS_TESTING_ENABLED)
36 2 : WORKER_SIMPLE_PREF("dom.serviceWorkers.openWindow.enabled", OpenWindowEnabled, OPEN_WINDOW_ENABLED)
37 4 : WORKER_SIMPLE_PREF("dom.storageManager.enabled", StorageManagerEnabled, STORAGEMANAGER_ENABLED)
38 3 : WORKER_SIMPLE_PREF("dom.promise_rejection_events.enabled", PromiseRejectionEventsEnabled, PROMISE_REJECTION_EVENTS_ENABLED)
39 6 : WORKER_SIMPLE_PREF("dom.push.enabled", PushEnabled, PUSH_ENABLED)
40 3 : WORKER_SIMPLE_PREF("dom.requestcontext.enabled", RequestContextEnabled, REQUESTCONTEXT_ENABLED)
41 14 : WORKER_SIMPLE_PREF("gfx.offscreencanvas.enabled", OffscreenCanvasEnabled, OFFSCREENCANVAS_ENABLED)
42 3 : WORKER_SIMPLE_PREF("dom.webkitBlink.dirPicker.enabled", WebkitBlinkDirectoryPickerEnabled, DOM_WEBKITBLINK_DIRPICKER_WEBKITBLINK)
43 4 : WORKER_SIMPLE_PREF("dom.netinfo.enabled", NetworkInformationEnabled, NETWORKINFORMATION_ENABLED)
44 4 : WORKER_SIMPLE_PREF("dom.fetchController.enabled", FetchControllerEnabled, FETCHCONTROLLER_ENABLED)
45 3 : WORKER_SIMPLE_PREF("dom.fetchObserver.enabled", FetchObserverEnabled, FETCHOBSERVER_ENABLED)
46 2 : WORKER_SIMPLE_PREF("privacy.resistFingerprinting", ResistFingerprintingEnabled, RESISTFINGERPRINTING_ENABLED)
47 2 : WORKER_PREF("intl.accept_languages", PrefLanguagesChanged)
48 2 : WORKER_PREF("general.appname.override", AppNameOverrideChanged)
49 2 : WORKER_PREF("general.appversion.override", AppVersionOverrideChanged)
50 2 : WORKER_PREF("general.platform.override", PlatformOverrideChanged)
51 : #ifdef JS_GC_ZEAL
52 2 : WORKER_PREF("dom.workers.options.gcZeal", LoadGCZealOptions)
53 : #endif
|