SECURITY: Fix tab nabbing.
This commit is contained in:
parent
b264661fe2
commit
2a8118fb44
@ -157,7 +157,9 @@ export default {
|
||||
});
|
||||
}
|
||||
if (openWindow) {
|
||||
window.open(destUrl, "_blank").focus();
|
||||
const newWindow = window.open(destUrl, "_blank");
|
||||
newWindow.opener = null;
|
||||
newWindow.focus();
|
||||
} else {
|
||||
DiscourseURL.routeTo(href);
|
||||
}
|
||||
@ -165,7 +167,9 @@ export default {
|
||||
}
|
||||
|
||||
if (openWindow) {
|
||||
window.open(destUrl, "_blank").focus();
|
||||
const newWindow = window.open(destUrl, "_blank");
|
||||
newWindow.opener = null;
|
||||
newWindow.focus();
|
||||
} else {
|
||||
DiscourseURL.redirectTo(destUrl);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user