forked from mirrors/gecko-dev
Bug 1946105, a=dmeehan
Differential Revision: https://phabricator.services.mozilla.com/D237570
This commit is contained in:
parent
a4f13ef0aa
commit
6591785c98
1 changed files with 4 additions and 3 deletions
|
|
@ -890,9 +890,10 @@
|
||||||
this._securityDelayMS = securityDelayMS;
|
this._securityDelayMS = securityDelayMS;
|
||||||
// Attach a global focus handler so we can restart the delay when the window
|
// Attach a global focus handler so we can restart the delay when the window
|
||||||
// refocuses (e.g., user navigated away or used a popup).
|
// refocuses (e.g., user navigated away or used a popup).
|
||||||
this._focusHandler = () => {
|
this._focusHandler = event => {
|
||||||
// If the notification is still connected, restart the delay.
|
// Only restart delay if the notification is still connected and this
|
||||||
if (this.isConnected) {
|
// is actually a window focus.
|
||||||
|
if (this.isConnected && event.target === window) {
|
||||||
this._startClickJackingDelay();
|
this._startClickJackingDelay();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue