[DOM] Stop exposing NotifyPaintEvent to web content.

There's no reason this should be available to the web, as it's an
indicator of browser internals.
This commit is contained in:
Moonchild 2024-09-04 13:31:23 +02:00 • committed by roytam1
commit b9e7ecd8bc
4 changed files with 21 additions and 9 deletions

View file

@ -715,8 +715,6 @@ var interfaceNamesInGlobalScope =
"NodeList",
// IMPORTANT: Do not change this list without review from a DOM peer!
"Notification",
// IMPORTANT: Do not change this list without review from a DOM peer!
"NotifyPaintEvent",
// IMPORTANT: Do not change this list without review from a DOM peer!
{name: "OffscreenCanvas", disabled: true},
// IMPORTANT: Do not change this list without review from a DOM peer!

View file

@ -6,13 +6,18 @@
* For more information about this interface see nsIDOMNotifyPaintEvent.idl
*/
[ChromeOnly]
interface NotifyPaintEvent : Event
{
[ChromeOnly]
readonly attribute DOMRectList clientRects;
[ChromeOnly]
readonly attribute DOMRect boundingClientRect;
[ChromeOnly]
readonly attribute PaintRequestList paintRequests;
[ChromeOnly]
readonly attribute unsigned long long transactionId;
};