summaryrefslogtreecommitdiff
path: root/dom/webidl
diff options
context:
space:
mode:
authorFranklinDM <mrmineshafter17@gmail.com>2022-04-04 22:54:59 +0800
committerFranklinDM <mrmineshafter17@gmail.com>2022-04-24 00:02:42 +0800
commit17b2aa76508e24b937fc92666bb0513360b103cc (patch)
tree68e865ffc347d36560614e6b68af91e2e96b6b75 /dom/webidl
parent5aa65d2aeab36ea8de8129c0babcf70a5e4e662a (diff)
downloaduxp-17b2aa76508e24b937fc92666bb0513360b103cc.tar.gz
Issue #21 - Remove use counters telemetry
This reverts Bug 968923 - Implement some equivalent of Chrome's use counters (on top of telemetry?) For reference: https://bugzilla.mozilla.org/show_bug.cgi?id=968923
Diffstat (limited to 'dom/webidl')
-rw-r--r--dom/webidl/External.webidl2
-rw-r--r--dom/webidl/OfflineResourceList.webidl14
-rw-r--r--dom/webidl/PushManager.webidl2
-rw-r--r--dom/webidl/PushSubscription.webidl2
-rw-r--r--dom/webidl/SVGSVGElement.webidl2
-rw-r--r--dom/webidl/Window.webidl2
6 files changed, 7 insertions, 17 deletions
diff --git a/dom/webidl/External.webidl b/dom/webidl/External.webidl
index 890dff306e..4b97a2007e 100644
--- a/dom/webidl/External.webidl
+++ b/dom/webidl/External.webidl
@@ -13,7 +13,7 @@ interface External
// Mozilla extension
partial interface External {
- [UnsafeInPrerendering, UseCounter]
+ [UnsafeInPrerendering]
void addSearchEngine(DOMString engineURL, DOMString iconURL,
DOMString suggestedTitle, DOMString suggestedCategory);
};
diff --git a/dom/webidl/OfflineResourceList.webidl b/dom/webidl/OfflineResourceList.webidl
index abc5118881..a646428016 100644
--- a/dom/webidl/OfflineResourceList.webidl
+++ b/dom/webidl/OfflineResourceList.webidl
@@ -25,38 +25,30 @@ interface OfflineResourceList : EventTarget {
/* The application cache group is now obsolete. */
const unsigned short OBSOLETE = 5;
- [Throws, UseCounter]
+ [Throws]
readonly attribute unsigned short status;
/**
* Begin the application update process on the associated application cache.
*/
- [Throws, UseCounter]
+ [Throws]
void update();
/**
* Swap in the newest version of the application cache, or disassociate
* from the cache if the cache group is obsolete.
*/
- [Throws, UseCounter]
+ [Throws]
void swapCache();
/* Events */
- [UseCounter]
attribute EventHandler onchecking;
- [UseCounter]
attribute EventHandler onerror;
- [UseCounter]
attribute EventHandler onnoupdate;
- [UseCounter]
attribute EventHandler ondownloading;
- [UseCounter]
attribute EventHandler onprogress;
- [UseCounter]
attribute EventHandler onupdateready;
- [UseCounter]
attribute EventHandler oncached;
- [UseCounter]
attribute EventHandler onobsolete;
};
diff --git a/dom/webidl/PushManager.webidl b/dom/webidl/PushManager.webidl
index de1e632c7e..ef9b49e26f 100644
--- a/dom/webidl/PushManager.webidl
+++ b/dom/webidl/PushManager.webidl
@@ -25,7 +25,7 @@ interface PushManagerImpl {
[Exposed=(Window,Worker), Func="nsContentUtils::PushEnabled",
ChromeConstructor(DOMString scope)]
interface PushManager {
- [Throws, UseCounter]
+ [Throws]
Promise<PushSubscription> subscribe(optional PushSubscriptionOptionsInit options);
[Throws]
Promise<PushSubscription?> getSubscription();
diff --git a/dom/webidl/PushSubscription.webidl b/dom/webidl/PushSubscription.webidl
index eab576d3ce..4451a0441d 100644
--- a/dom/webidl/PushSubscription.webidl
+++ b/dom/webidl/PushSubscription.webidl
@@ -44,7 +44,7 @@ interface PushSubscription
readonly attribute PushSubscriptionOptions options;
[Throws]
ArrayBuffer? getKey(PushEncryptionKeyName name);
- [Throws, UseCounter]
+ [Throws]
Promise<boolean> unsubscribe();
// Implements the custom serializer specified in Push API, section 9.
diff --git a/dom/webidl/SVGSVGElement.webidl b/dom/webidl/SVGSVGElement.webidl
index afe63dbb28..d04a464008 100644
--- a/dom/webidl/SVGSVGElement.webidl
+++ b/dom/webidl/SVGSVGElement.webidl
@@ -33,7 +33,6 @@ interface SVGSVGElement : SVGGraphicsElement {
readonly attribute float screenPixelToMillimeterY;
readonly attribute boolean useCurrentView;
// readonly attribute SVGViewSpec currentView;
- [UseCounter]
attribute float currentScale;
readonly attribute SVGPoint currentTranslate;
@@ -71,7 +70,6 @@ interface SVGSVGElement : SVGGraphicsElement {
SVGTransform createSVGTransform();
[NewObject]
SVGTransform createSVGTransformFromMatrix(SVGMatrix matrix);
- [UseCounter]
Element? getElementById(DOMString elementId);
};
diff --git a/dom/webidl/Window.webidl b/dom/webidl/Window.webidl
index ad427630bd..1b98042473 100644
--- a/dom/webidl/Window.webidl
+++ b/dom/webidl/Window.webidl
@@ -368,7 +368,7 @@ Window implements OnErrorEventHandlerForWindow;
#ifdef HAVE_SIDEBAR
// Mozilla extension
partial interface Window {
- [Replaceable, Throws, UseCounter]
+ [Replaceable, Throws]
readonly attribute (External or WindowProxy) sidebar;
};
#endif