Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions web/src/lib/components/content/Ogp.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,15 @@
return;
}
const html = await response.text();

// Workaround for Chromium bug
// <meta name="text-scale" content="scale" /> cause STATUS_ACCESS_VIOLATION
if (html.includes('text-scale')) {
console.debug('[OGP workaround]', url.href);
resolve(true);
return;
}

const domParser = new DOMParser();
const dom = domParser.parseFromString(html, 'text/html');
const metaTags = [...dom.head.children].filter(
Expand Down
Loading