[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

@ -10,11 +10,15 @@
function paintListener(event) {
if (event.target != window)
return;
var eventRect =
[ event.boundingClientRect.left,
event.boundingClientRect.top,
event.boundingClientRect.right,
event.boundingClientRect.bottom ];
var clientRect = event.boundingClientRect;
var eventRect;
if (clientRect) {
eventRect =
[ clientRect.left, clientRect.top,
clientRect.right, clientRect.bottom ];
} else {
eventRect = [ 0, 0, 0, 0 ];
}
if (debug) {
dump("got MozAfterPaint: " + eventRect.join(",") + "\n");
}