mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-06 15:58:39 +09:00
[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:
parent
7cc9551e79
commit
b9e7ecd8bc
4 changed files with 21 additions and 9 deletions
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue