Merge pull request #769 from glacambre/fix_focus_hijacking

dom.ts: Fix focus hijacking
This commit is contained in:
Oliver Blanthorn 2018-07-07 10:39:39 +01:00 committed by GitHub
commit 283166e464
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -504,7 +504,7 @@ function hijackPageFocusFunction(): void {
let eval_str = `HTMLElement.prototype.focus = ((realFocus, ${exportedName}) => {
return function (...args) {
${exportedName}(this, args)
realFocus.apply(this, args)
}
})(HTMLElement.prototype.focus, ${exportedName})`