mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-07 08:18:41 +09:00
[Basilisk] Prevent form popups from crossing the "line of death".
Without this, doorhangers could potentially be spoofed to overlap legitimate permission popups like geolocation or plugin permissions. Another reason doorhangers are evil!
This commit is contained in:
parent
264752661b
commit
494a4caae0
1 changed files with 1 additions and 1 deletions
|
|
@ -124,7 +124,7 @@ var FormValidationHandler =
|
|||
let tabBrowser = aWindow.gBrowser;
|
||||
this._anchor = tabBrowser.popupAnchor;
|
||||
this._anchor.left = aPanelData.contentRect.left;
|
||||
this._anchor.top = aPanelData.contentRect.top;
|
||||
this._anchor.top = Math.max(0, aPanelData.contentRect.top);
|
||||
this._anchor.width = aPanelData.contentRect.width;
|
||||
this._anchor.height = aPanelData.contentRect.height;
|
||||
this._anchor.hidden = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue