mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-08 08:48: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
|
|
@ -24,14 +24,19 @@ window.addEventListener("load", step0, false);
|
|||
is(SpecialPowers.getBoolPref("dom.send_after_paint_to_content"), true, "pref defaults to true in mochitest harness");
|
||||
|
||||
function print_rect(rect) {
|
||||
if (!rect) {
|
||||
rect = { top: 0, left: 0, width: 0, right: 0 };
|
||||
}
|
||||
return "(top=" + rect.top + ",left=" + rect.left + ",width=" + rect.width + ",height=" + rect.height + ")";
|
||||
}
|
||||
|
||||
function print_event(event) {
|
||||
var res = "boundingClientRect=" + print_rect(event.boundingClientRect);
|
||||
var rects = event.clientRects;
|
||||
for (var i = 0; i < rects.length; ++i) {
|
||||
res += " clientRects[" + i + "]=" + print_rect(rects[i]);
|
||||
if (rects) {
|
||||
for (var i = 0; i < rects.length; ++i) {
|
||||
res += " clientRects[" + i + "]=" + print_rect(rects[i]);
|
||||
}
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue