Closed Bug 1949964 Opened 8 months ago Closed 8 months ago

Incorrect language codes in Reader View reading time calculation

Categories

(Toolkit :: Reader Mode, defect)

defect

Tracking

()

RESOLVED FIXED
138 Branch
Tracking Status
firefox138 --- fixed

People

(Reporter: k.minowa, Assigned: mconley)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:135.0) Gecko/20100101 Firefox/135.0

Steps to reproduce:

When opening Reader View on any Japanese article, the displayed reading time does not appear to match the study referenced in the code comments (https://iovs.arvojournals.org/article.aspx?articleid=2166061).

The _getReadingSpeedForLanguage() function in toolkit/components/reader/ReaderMode.sys.mjs appears to use incorrect language codes for Japanese and Slovenian compared to the study referenced in the code comments. The correct language codes should be 'ja' for Japanese and 'sl' for Slovenian.

Actual results:

It seems that reading time is calculated using English data instead of Japanese data.

Expected results:

Japanese reading time should be calculated based on Japanese data.

Component: Untriaged → Reader Mode
Product: Firefox → Toolkit

Thanks!

Assignee: nobody → mconley
Pushed by mconley@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/45d10dffbb3e Use proper language codes for Japanese and Slovenian articles when calculating reading times in reader mode. r=nordzilla
Status: UNCONFIRMED → RESOLVED
Closed: 8 months ago
Resolution: --- → FIXED
Target Milestone: --- → 138 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: