mirror of
https://github.com/zen-browser/desktop.git
synced 2026-04-20 06:21:00 +00:00
feat: Make sure focus event only accepts the window object, b=no-bug, c=no-component
This commit is contained in:
@@ -1171,6 +1171,9 @@ class nsZenWindowSync {
|
||||
}
|
||||
|
||||
on_focus(aEvent) {
|
||||
if (typeof aEvent.target !== "object") {
|
||||
return;
|
||||
}
|
||||
const { ownerGlobal: window } = aEvent.target;
|
||||
if (
|
||||
!window?.gBrowser ||
|
||||
|
||||
Reference in New Issue
Block a user