Closed Bug 1894763 Opened 5 months ago Closed 5 months ago

Get all reader view prefs using a try-catch block

Categories

(Toolkit :: Reader Mode, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
128 Branch
Tracking Status
firefox128 --- fixed

People

(Reporter: rhn0312, Assigned: rhn0312)

References

(Blocks 2 open bugs)

Details

Attachments

(1 file)

blocker level bug for rolling out new theme and layout menus.

Currently, if an invalid value is passed to one of the Reader View pref getters, it stops AboutReader.sys.mjs from executing and makes reader view inaccessible. We should refactor the code by declaring all pref values using the default values first, then attempt to fetch the pref value in a try catch block, logging a warning if an invalid value is passed.

Blocks: 1894784
Assignee: nobody → ini
Status: NEW → ASSIGNED
Pushed by ini@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/5d166b88c4f9 Get all reader view prefs using a try-catch block. r=reader-mode-reviewers,Gijs
Status: ASSIGNED → RESOLVED
Closed: 5 months ago
Resolution: --- → FIXED
Target Milestone: --- → 128 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: