From 1fe830d1c6b5836fc10d76bfe9cd2f26fa1764b2 Mon Sep 17 00:00:00 2001 From: David Baker Date: Wed, 27 Mar 2019 13:27:57 +0000 Subject: [PATCH] Remove noreferrer on widget pop-out Having the referrer allows widgets to do customisation based on what riot instance is embedding it. It gets a referrer when we embed it in the iframe so there's nothing gained by suppressing it here. --- src/components/views/elements/AppTile.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/views/elements/AppTile.js b/src/components/views/elements/AppTile.js index 9444da5be4..708eb39bd3 100644 --- a/src/components/views/elements/AppTile.js +++ b/src/components/views/elements/AppTile.js @@ -495,9 +495,9 @@ export default class AppTile extends React.Component { _onPopoutWidgetClick(e) { // Using Object.assign workaround as the following opens in a new window instead of a new tab. - // window.open(this._getSafeUrl(), '_blank', 'noopener=yes,noreferrer=yes'); + // window.open(this._getSafeUrl(), '_blank', 'noopener=yes'); Object.assign(document.createElement('a'), - { target: '_blank', href: this._getSafeUrl(), rel: 'noopener noreferrer'}).click(); + { target: '_blank', href: this._getSafeUrl(), rel: 'noopener'}).click(); } _onReloadWidgetClick(e) {