feat: Make sure focus event only accepts the window object, b=no-bug, c=no-component

This commit is contained in:
mr. m
2026-01-25 18:10:26 +01:00
parent 8997a24996
commit 4327684f9f

View File

@@ -1171,6 +1171,9 @@ class nsZenWindowSync {
}
on_focus(aEvent) {
if (typeof aEvent.target !== "object") {
return;
}
const { ownerGlobal: window } = aEvent.target;
if (
!window?.gBrowser ||