Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Remove noreferrer from non-sensitive links

Manav Rathi4dc05e85ec6a
diff --git a/web/apps/ensu/src/components/chat/ChatDialogs.tsx b/web/apps/ensu/src/components/chat/ChatDialogs.tsx
index 627367205d..0a6dcbbde7 100644
--- a/web/apps/ensu/src/components/chat/ChatDialogs.tsx
+++ b/web/apps/ensu/src/components/chat/ChatDialogs.tsx
@@ -188,7 +188,7 @@ export const ChatDialogs = memo(
}
if (typeof window !== "undefined") {
- const popup = window.open(url, "_blank", "noopener,noreferrer");
+ const popup = window.open(url, "_blank", "noopener");
if (!popup) {
window.location.href = url;
}
diff --git a/web/apps/ensu/src/pages/chat.tsx b/web/apps/ensu/src/pages/chat.tsx
index e1504b5a54..7720b11e01 100644
--- a/web/apps/ensu/src/pages/chat.tsx
+++ b/web/apps/ensu/src/pages/chat.tsx
@@ -2881,7 +2881,7 @@ const Page: React.FC = () => {
type: "text/plain;charset=utf-8",
});
const url = URL.createObjectURL(blob);
- window.open(url, "_blank", "noopener,noreferrer");
+ window.open(url, "_blank", "noopener");
window.setTimeout(() => URL.revokeObjectURL(url), 1000);
return;
}
@@ -2889,7 +2889,7 @@ const Page: React.FC = () => {
const mime = inferImageMime(baseName);
const blob = new Blob([toSafeBlobPart(bytes)], { type: mime });
const url = URL.createObjectURL(blob);
- window.open(url, "_blank", "noopener,noreferrer");
+ window.open(url, "_blank", "noopener");
window.setTimeout(() => URL.revokeObjectURL(url), 1000);
} catch (error) {
log.error("Failed to open attachment", error);
diff --git a/web/apps/locker/src/components/CreateItemDialog.tsx b/web/apps/locker/src/components/CreateItemDialog.tsx
index 1ebfedfd69..da8410ccf8 100644
--- a/web/apps/locker/src/components/CreateItemDialog.tsx
+++ b/web/apps/locker/src/components/CreateItemDialog.tsx
@@ -282,7 +282,7 @@ export const CreateItemDialog: React.FC<CreateItemDialogProps> = ({
<Link
href="https://web.ente.io"
target="_blank"
- rel="noreferrer"
+ rel="noopener"
underline="always"
sx={{
color: "critical.main",
diff --git a/web/apps/twoof3/src/features/twoof3/utils/export.ts b/web/apps/twoof3/src/features/twoof3/utils/export.ts
index 189d32cda5..37cca30bad 100644
--- a/web/apps/twoof3/src/features/twoof3/utils/export.ts
+++ b/web/apps/twoof3/src/features/twoof3/utils/export.ts
@@ -620,7 +620,7 @@ export const createOfflineRecoveryHtml = async () => {
<main>
<div class="topbar">
<div class="brand">2of3</div>
- <div class="byline">by <a href="https://ente.com" target="_blank" rel="noreferrer">Ente</a></div>
+ <div class="byline">by <a href="https://ente.com" target="_blank" rel="noopener">Ente</a></div>
</div>
<div class="shell">
<div class="panel">
diff --git a/web/apps/twoof3/src/pages/index.tsx b/web/apps/twoof3/src/pages/index.tsx
index 368185562d..f8e84cbacc 100644
--- a/web/apps/twoof3/src/pages/index.tsx
+++ b/web/apps/twoof3/src/pages/index.tsx
@@ -156,7 +156,7 @@ const HELP_FAQS = [
component="a"
href="https://github.com/ente-io/ente"
target="_blank"
- rel="noreferrer"
+ rel="noopener"
sx={{
color: "inherit",
textDecorationColor: "currentColor",
@@ -195,7 +195,7 @@ const HELP_FAQS = [
component="a"
href="https://github.com/ente-io/ente"
target="_blank"
- rel="noreferrer"
+ rel="noopener"
sx={{
color: "inherit",
textDecorationColor: "currentColor",
@@ -1112,7 +1112,7 @@ const Page = () => {
component="a"
href="https://ente.com"
target="_blank"
- rel="noreferrer"
+ rel="noopener"
sx={{
color: "var(--ink)",
fontWeight: 700,
@@ -2216,7 +2216,7 @@ const Page = () => {
component="a"
href="https://ente.com"
target="_blank"
- rel="noreferrer"
+ rel="noopener"
sx={{
color: "var(--ink)",
fontWeight: 500,
@@ -2285,7 +2285,7 @@ const Page = () => {
component="a"
href="https://github.com/ente-io/ente"
target="_blank"
- rel="noreferrer"
+ rel="noopener"
aria-label="View source on GitHub"
sx={{
color: "var(--ink)",