diff --git a/src/HtmlUtils.js b/src/HtmlUtils.js
index 236aa0157e..7dd68e5c61 100644
--- a/src/HtmlUtils.js
+++ b/src/HtmlUtils.js
@@ -160,7 +160,7 @@ const transformTags = { // custom to matrix
delete attribs.target;
}
}
- attribs.rel = 'noopener'; // https://mathiasbynens.github.io/rel-noopener/
+ attribs.rel = 'noreferrer noopener'; // https://mathiasbynens.github.io/rel-noopener/
return { tagName, attribs };
},
'img': function(tagName, attribs) {
diff --git a/src/Markdown.js b/src/Markdown.js
index 437ceec88b..fb1f8bf0ea 100644
--- a/src/Markdown.js
+++ b/src/Markdown.js
@@ -136,7 +136,7 @@ export default class Markdown {
// thus opening in a new tab.
if (externalLinks) {
attrs.push(['target', '_blank']);
- attrs.push(['rel', 'noopener']);
+ attrs.push(['rel', 'noreferrer noopener']);
}
this.tag('a', attrs);
} else {
diff --git a/src/components/structures/GroupView.js b/src/components/structures/GroupView.js
index 5ae0699a2f..e98dcae1a4 100644
--- a/src/components/structures/GroupView.js
+++ b/src/components/structures/GroupView.js
@@ -821,10 +821,10 @@ export default createReactClass({
{_t(
"Want more than a community? Get your own server", {},
{
- a: sub => {sub},
+ a: sub => {sub},
},
)}
-
+
;
diff --git a/src/components/structures/MatrixChat.js b/src/components/structures/MatrixChat.js
index de916ad7aa..339ea279ee 100644
--- a/src/components/structures/MatrixChat.js
+++ b/src/components/structures/MatrixChat.js
@@ -1375,7 +1375,8 @@ export default createReactClass({
cancelButton: _t('Dismiss'),
onFinished: (confirmed) => {
if (confirmed) {
- window.open(consentUri, '_blank');
+ const wnd = window.open(consentUri, '_blank');
+ wnd.opener = null;
}
},
}, null, true);
diff --git a/src/components/structures/auth/Login.js b/src/components/structures/auth/Login.js
index c8b2a1ea9c..24e4726416 100644
--- a/src/components/structures/auth/Login.js
+++ b/src/components/structures/auth/Login.js
@@ -481,7 +481,7 @@ export default createReactClass({
"Either use HTTPS or enable unsafe scripts.", {},
{
'a': (sub) => {
- return
{ sub }
@@ -496,11 +496,10 @@ export default createReactClass({
"homeserver's SSL certificate is trusted, and that a browser extension " +
"is not blocking requests.", {},
{
- 'a': (sub) => {
- return
+ 'a': (sub) =>
+
{ sub }
- ;
- },
+ ,
},
) }
;
diff --git a/src/components/views/auth/AuthFooter.js b/src/components/views/auth/AuthFooter.js
index 4076141606..1309800772 100644
--- a/src/components/views/auth/AuthFooter.js
+++ b/src/components/views/auth/AuthFooter.js
@@ -26,7 +26,7 @@ export default createReactClass({
render: function() {
return (