diff --git a/config/allowed-code-link-text.txt b/config/allowed-code-link-text.txt index c6d9e15..b5c5287 100644 --- a/config/allowed-code-link-text.txt +++ b/config/allowed-code-link-text.txt @@ -88,8 +88,6 @@ NPP_GetValue() -/* -/ ALLOW-FROM origin NPP_ClearSiteData diff --git a/config/missing-features.txt b/config/missing-features.txt index c97b9ac..deaf3c1 100644 --- a/config/missing-features.txt +++ b/config/missing-features.txt @@ -56,10 +56,6 @@ api.CanvasFilter.CanvasFilter api.CaretPosition.getClientRect api.CaretPosition.offset api.CaretPosition.offsetNode -api.CommandEvent -api.CommandEvent.CommandEvent -api.CommandEvent.command -api.CommandEvent.source api.Counter api.Counter.identifier api.Counter.listStyle @@ -120,6 +116,10 @@ api.DataCue.value api.DataTransfer.mozCursor api.DataTransfer.mozSourceNode api.DataTransfer.mozUserCancelled +api.DelegatedInkTrailPresenter +api.DelegatedInkTrailPresenter.expectedImprovement +api.DelegatedInkTrailPresenter.presentationArea +api.DelegatedInkTrailPresenter.updateInkTrailStartPoint api.DevicePosture api.DevicePosture.type api.Directory @@ -168,7 +168,6 @@ api.FileSystemHandle.move api.FileSystemSync.name api.FileSystemSync.root api.FontFaceSet.FontFaceSet -api.GPUAdapter.info api.GPUComputePassEncoder.writeTimestamp api.GPURenderPassEncoder.writeTimestamp api.GamepadHapticActuator.canPlayEffectType @@ -187,6 +186,7 @@ api.GestureEvent.target api.HTMLAnchorElement.attributionSourceId api.HTMLAnchorElement.charset api.HTMLAnchorElement.coords +api.HTMLAnchorElement.hrefTranslate api.HTMLAnchorElement.name api.HTMLAnchorElement.rev api.HTMLAnchorElement.shape @@ -202,10 +202,7 @@ api.HTMLBodyElement.bgColor api.HTMLBodyElement.link api.HTMLBodyElement.text api.HTMLBodyElement.vLink -api.HTMLButtonElement.command api.HTMLButtonElement.commandfor -api.HTMLButtonElement.formNoValidate -api.HTMLButtonElement.formTarget api.HTMLCanvasElement.mozPrintCallback api.HTMLDListElement.compact api.HTMLDirectoryElement @@ -217,7 +214,6 @@ api.HTMLEmbedElement.align api.HTMLEmbedElement.getSVGDocument api.HTMLEmbedElement.name api.HTMLEmbedElement.type -api.HTMLFormElement.noValidate api.HTMLFormElement.rel api.HTMLFormElement.relList api.HTMLFrameElement @@ -254,8 +250,6 @@ api.HTMLImageElement.lowsrc api.HTMLImageElement.sharedStorageWritable api.HTMLInputElement.align api.HTMLInputElement.dirName -api.HTMLInputElement.formNoValidate -api.HTMLInputElement.formTarget api.HTMLInputElement.incremental api.HTMLInputElement.useMap api.HTMLLIElement.type @@ -314,7 +308,6 @@ api.HTMLQuoteElement.cite api.HTMLScriptElement.charset api.HTMLScriptElement.event api.HTMLScriptElement.htmlFor -api.HTMLSelectElement.autocomplete api.HTMLSourceElement.media api.HTMLSourceElement.sizes api.HTMLSourceElement.src @@ -473,11 +466,9 @@ api.MimeTypeArray.item api.MimeTypeArray.length api.MimeTypeArray.namedItem api.NDEFReader.makeReadOnly -api.NavigateEvent.canTransition api.NavigateEvent.hasUAVisualTransition api.NavigateEvent.restoreScroll api.NavigateEvent.transitionWhile -api.Navigation.activation api.Navigator.audioSession api.Navigator.authentication api.Navigator.devicePosture @@ -1002,6 +993,11 @@ api.SerialPort.connected api.ShadowRoot.elementFromPoint api.ShadowRoot.elementsFromPoint api.ShadowRoot.getSelection +api.SharedStorage.createWorklet +api.SharedStorage.get +api.SharedStorage.run +api.SharedStorage.selectURL +api.SharedStorage.worklet api.SharedStorageWorklet.run api.SharedStorageWorklet.selectURL api.SpeechRecognitionErrorEvent.SpeechRecognitionErrorEvent @@ -1192,6 +1188,12 @@ css.selectors.volume-locked css.types.calc-constant javascript.builtins.RegExp.source.escaping javascript.builtins.RegExp.toString.escaping +javascript.builtins.Uint8Array.fromBase64 +javascript.builtins.Uint8Array.fromHex +javascript.builtins.Uint8Array.setFromBase64 +javascript.builtins.Uint8Array.setFromHex +javascript.builtins.Uint8Array.toBase64 +javascript.builtins.Uint8Array.toHex http.headers.Attribution-Reporting-Support http.headers.Sec-CH-Save-Data http.headers.Snapshot-Content-Location diff --git a/config/no-page.txt b/config/no-page.txt index 5124be4..6916fc5 100644 --- a/config/no-page.txt +++ b/config/no-page.txt @@ -22,7 +22,6 @@ /en-US/docs/Web/API/BluetoothDevice/gattserverdisconnected_event /en-US/docs/Web/API/BluetoothDevice/watchAdvertisements /en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic/characteristicvaluechanged_event -/en-US/docs/Web/API/CSSMarginRule /en-US/docs/Web/API/CSSNumericType /en-US/docs/Web/API/DOMMatrix/fromFloat32Array /en-US/docs/Web/API/DOMMatrix/fromFloat64Array diff --git a/src/server/process-warnings.ts b/src/server/process-warnings.ts index 175157f..02633d2 100644 --- a/src/server/process-warnings.ts +++ b/src/server/process-warnings.ts @@ -76,6 +76,8 @@ for (const node of nodes) { Object.entries(node.data.metadata.flaws).forEach(([id, data]) => { data.forEach((d) => { if (id === "broken_links") { + // TODO: Yari bug + if (["/en-US/play", "/en-US/plus"].includes(d.href)) return; const correspondingWarning = nodeWarnings.find( (w) => w.message === "Broken link" && @@ -87,7 +89,16 @@ for (const node of nodes) { return; } if (d.explanation !== "Link points to the page it's already on") { - console.error("Broken link not caught by warnings:", d.href); + // After https://github.com/mdn/yari/pull/12045, Yari no longer + // emits broken links with hrefs. This means that our broken link + // check is essentially useless. However we do want to keep the + // config-based exclusion mechanism, so we restore to the former + // state by migrating flaws to warnings. + nodeWarnings.push({ + message: "Broken link", + data: [d.href, d.explanation.replace(d.href, "").trim()], + }); + return; } } else if (id === "macros") { if (d.explanation.endsWith("does not exist")) {