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)
Core
Machine Learning
Tracking
()
NEW
People
(Reporter: padenot, Unassigned, NeedInfo)
Details
STR:
- Open https://firefox-source-docs.mozilla.org/contributing/editor.html w/ link preview enabled (
about:config
->browser.ml.linkPreview.enabled
->true
) - Take any link, press alt to trigger the preview
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.
Description
•