From 36d22d82aa202bb199967e9512281e9a53db42c9 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 21:33:14 +0200 Subject: Adding upstream version 115.7.0esr. Signed-off-by: Daniel Baumann --- dom/base/UseCounters.conf | 409 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 409 insertions(+) create mode 100644 dom/base/UseCounters.conf (limited to 'dom/base/UseCounters.conf') diff --git a/dom/base/UseCounters.conf b/dom/base/UseCounters.conf new file mode 100644 index 0000000000..f00105a1dd --- /dev/null +++ b/dom/base/UseCounters.conf @@ -0,0 +1,409 @@ +// 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 file defines a list of use counters, which are things that can +// record usage of Web platform features and then report this information +// through Telemetry. +// +// The format of this file is very strict. Each line can be: +// +// (a) a blank line +// +// (b) a comment, which is a line that begins with "//" +// +// (c) one of three possible use counter declarations: +// +// method . +// attribute . +// custom +// +// The for custom counters will be appended to "Whether a document " +// or "Whether a page ", so phrase it appropriately. For instance, "constructs a +// Foo object" or "calls Document.bar('some value')". It may contain any +// character (including whitespace). +// +// To actually cause use counters to be incremented, DOM methods +// and attributes must have a [UseCounter] extended attribute in +// the Web IDL file. +// +// Custom counters are incremented when +// SetUseCounter(eUseCounter_custom_MyName) is called on a Document object. +// +// You might reasonably ask why we have this file and we require +// annotating things with [UseCounter] in the relevant WebIDL file as +// well. Generating things from bindings codegen and ensuring all the +// dependencies were correct would have been rather difficult. +// +// NOTE: Adding use counters requires data review, see +// https://wiki.mozilla.org/Data_Collection + +method SVGSVGElement.getElementById +attribute SVGSVGElement.currentScale + +// Push API +method PushManager.subscribe +method PushSubscription.unsubscribe + +// window.sidebar +attribute Window.sidebar + +// DataTransfer API (gecko-only methods) +method DataTransfer.addElement +attribute DataTransfer.mozItemCount +attribute DataTransfer.mozCursor +method DataTransfer.mozTypesAt +method DataTransfer.mozClearDataAt +method DataTransfer.mozSetDataAt +method DataTransfer.mozGetDataAt +attribute DataTransfer.mozUserCancelled +attribute DataTransfer.mozSourceNode + +// Marquee events +custom onstart sets a onstart event listener +custom onbounce sets a onbounce event listener +custom onfinish sets a onfinish event listener + +// Element non-standard events +custom onoverflow sets an element onoverflow event listener +custom onunderflow sets an element onunderflow event listener + +// JavaScript feature usage +custom JS_asmjs uses asm.js +custom JS_wasm uses WebAssembly + +// Console API +method console.assert +method console.clear +method console.count +method console.countReset +method console.debug +method console.error +method console.info +method console.log +method console.table +method console.trace +method console.warn +method console.dir +method console.dirxml +method console.group +method console.groupCollapsed +method console.groupEnd +method console.time +method console.timeLog +method console.timeEnd +method console.exception +method console.timeStamp +method console.profile +method console.profileEnd + +// document.open information +custom DocumentOpen calls document.open in a way that creates a new Window object + +// HTMLDocument named getter +custom HTMLDocumentNamedGetterHit calls to the named getter on HTMLDocument that find something via the name lookup + +custom FilteredCrossOriginIFrame cross-origin