dom/base/DOMPrefsInternal.h
author Perry Jiang <perry@mozilla.com>
Tue, 02 Oct 2018 16:43:57 +0000
changeset 495026 f2737c4b2abebdc89bd3eb464ef1906df6234eb8
parent 494605 91525a6d91c66fd7fcfffd5fec217104f2355dd7
child 499130 1dee16fa95e5257ecef4c8edf5e325732a4aa7dc
child 505656 71f7e3ce93e22380502eb2abcf9b1155baa4e353
permissions -rw-r--r--
Bug 1487463 - implement StructuredCloneTester to be used in testing r=baku StructuredCloneTester objects can configured to be serializable (or not) and deserializable (or not) by the structured clone algorithm. They can be used to test, for example, onmessageerror event handlers, where the messageerror event is fired when a message fails to be deserialized (but was successfully serialized). The class is pref'ed with "dom.testing.structuredclonetester.enabled". Differential Revision: https://phabricator.services.mozilla.com/D5207

/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

// This is the list of the preferences that are exposed to workers and
// main-thread in DOM.
// The format is as follows:
//
//   DOM_WEBIDL_PREF(foo_bar)
//
//   * This defines DOMPrefs::foo_bar(JSContext* aCx, JSObject* aObj) which
//     returns the value of StaticPrefs::foo_bar().
//     This is allows the use of DOMPrefs in WebIDL files.

DOM_WEBIDL_PREF(canvas_imagebitmap_extensions_enabled)
DOM_WEBIDL_PREF(dom_caches_enabled)
DOM_WEBIDL_PREF(dom_webnotifications_serviceworker_enabled)
DOM_WEBIDL_PREF(dom_webnotifications_requireinteraction_enabled)
DOM_WEBIDL_PREF(dom_serviceWorkers_enabled)
DOM_WEBIDL_PREF(dom_storageManager_enabled)
DOM_WEBIDL_PREF(dom_testing_structuredclonetester_enabled)
DOM_WEBIDL_PREF(dom_promise_rejection_events_enabled)
DOM_WEBIDL_PREF(dom_push_enabled)
DOM_WEBIDL_PREF(gfx_offscreencanvas_enabled)
DOM_WEBIDL_PREF(dom_webkitBlink_dirPicker_enabled)
DOM_WEBIDL_PREF(dom_netinfo_enabled)
DOM_WEBIDL_PREF(dom_fetchObserver_enabled)
DOM_WEBIDL_PREF(dom_enable_performance_observer)
DOM_WEBIDL_PREF(dom_performance_enable_scheduler_timing)
DOM_WEBIDL_PREF(javascript_options_streams)