Bug 1848708 - Move Glean and GleanPings to plain webidl r=nika,janerik,perry.mcmanis

Since we're exposing Glean types in not-chrome-only contexts like privileged
"about:" pages, we can't live in chrome-webidl/ any longer.

Differential Revision: https://phabricator.services.mozilla.com/D186266
This commit is contained in:
Chris H-C 2023-09-19 17:39:09 +00:00
parent 5963e68624
commit ce9f11eb18
5 changed files with 10 additions and 12 deletions

View File

@ -28,9 +28,6 @@ with Files("MatchPattern.webidl"):
with Files("WebExtension*.webidl"):
BUG_COMPONENT = ("WebExtensions", "General")
with Files("Glean*.webidl"):
BUG_COMPONENT = ("Toolkit", "Telemetry")
with Files("IOUtils.webidl"):
BUG_COMPONENT = ("Toolkit", "IOUtils and PathUtils")
@ -109,8 +106,3 @@ if CONFIG["MOZ_PLACES"]:
"PlacesEvent.webidl",
"PlacesObservers.webidl",
]
WEBIDL_FILES += [
"Glean.webidl",
"GleanPings.webidl",
]

View File

@ -6,7 +6,7 @@
interface nsISupports;
[ChromeOnly, Exposed=Window]
[Func="nsGlobalWindowInner::IsGleanNeeded", Exposed=Window]
interface GleanCategory {
/**
* Get a metric by name.
@ -17,7 +17,7 @@ interface GleanCategory {
getter nsISupports (DOMString identifier);
};
[ChromeOnly, Exposed=Window]
[Func="nsGlobalWindowInner::IsGleanNeeded", Exposed=Window]
interface GleanImpl {
/**
* Get a metric category by name.
@ -27,7 +27,7 @@ interface GleanImpl {
getter GleanCategory (DOMString identifier);
};
[ChromeOnly, Exposed=Window]
[Func="nsGlobalWindowInner::IsGleanNeeded", Exposed=Window]
interface GleanLabeled {
/**
* Get a specific metric for a given label.

View File

@ -6,7 +6,7 @@
interface nsIGleanPing;
[ChromeOnly, Exposed=Window]
[Func="nsGlobalWindowInner::IsGleanNeeded", Exposed=Window]
interface GleanPingsImpl {
/**
* Get a ping by name.

View File

@ -139,6 +139,9 @@ with Files("GeometryUtils.webidl"):
with Files("GetUserMediaRequest.webidl"):
BUG_COMPONENT = ("Core", "WebRTC")
with Files("Glean*.webidl"):
BUG_COMPONENT = ("Toolkit", "Telemetry")
with Files("Grid.webidl"):
BUG_COMPONENT = ("Core", "CSS Parsing and Computation")
@ -583,6 +586,8 @@ WEBIDL_FILES = [
"GeolocationPositionError.webidl",
"GeometryUtils.webidl",
"GetUserMediaRequest.webidl",
"Glean.webidl",
"GleanPings.webidl",
"Grid.webidl",
"Headers.webidl",
"Highlight.webidl",

View File

@ -8,6 +8,7 @@
#define mozilla_glean_Glean_h
#include "js/TypeDecls.h"
#include "nsGlobalWindowInner.h"
#include "nsISupports.h"
#include "nsTArrayForwardDeclare.h"
#include "nsWrapperCache.h"