Open Bug 1956602 Opened 24 days ago

[link preview] `RangeError: TextDecoder constructor: The given encoding '"utf-8"'` is not supported on some pages

Categories

(Core :: Machine Learning, defect)

defect

Tracking

()

People

(Reporter: padenot, Unassigned, NeedInfo)

Details

STR:

Expected:

  • The preview appears

Actual:

  • No preview appears. The console says:
RangeError: TextDecoder constructor: The given encoding '"utf-8"'`
onStopRequest resource:///actors/LinkPreviewChild.sys.mjs:116

This is https://searchfox.org/mozilla-central/source/browser/components/genai/LinkPreviewChild.sys.mjs#116. When breaking in the debugger, the value of charset is '"utf-8"', there's too many quotes in this string.

The feature works well on e.g. Wikipedia, otherwise.

Flags: needinfo?(atossou)
You need to log in before you can comment on or make changes to this bug.