Skip to content

Commit

Permalink
fix(baseline): hide status from async-clipboard subfeatures (#10345)
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoMcA authored Jan 18, 2024
1 parent f7144aa commit f1eb599
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion build/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,28 @@ export async function buildDocument(

function addBaseline(doc: Partial<Doc>) {
if (doc.browserCompat) {
return getWebFeatureStatus(...doc.browserCompat);
const filteredBrowserCompat = doc.browserCompat.filter(
(query) =>
// temporary blocklist while we wait for per-key baseline statuses
// or another solution to the baseline/bcd table discrepancy problem
![
"api.Clipboard.read",
"api.Clipboard.readText",
"api.Clipboard.write",
"api.Clipboard.writeText",
"api.ClipboardEvent",
"api.ClipboardEvent.ClipboardEvent",
"api.ClipboardEvent.clipboardData",
"api.ClipboardItem",
"api.ClipboardItem.ClipboardItem",
"api.ClipboardItem.getType",
"api.ClipboardItem.presentationStyle",
"api.ClipboardItem.types",
"api.Navigator.clipboard",
"api.Permissions.permission_clipboard-read",
].includes(query)
);
return getWebFeatureStatus(...filteredBrowserCompat);
}
}

Expand Down

0 comments on commit f1eb599

Please sign in to comment.