Closed Bug 1653520 Opened 4 years ago Closed 4 years ago

Move the getter / setter for compatibility browser list prefs to CompatibilityActor

Categories

(DevTools :: Inspector: Compatibility, enhancement, P3)

80 Branch
enhancement

Tracking

(firefox82 fixed)

RESOLVED FIXED
82 Branch
Tracking Status
firefox82 --- fixed

People

(Reporter: lelouch.cpp, Assigned: lelouch.cpp)

References

(Blocks 2 open bugs)

Details

Attachments

(1 file, 1 obsolete file)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:80.0) Gecko/20100101 Firefox/80.0

Expected results:

We have code duplication for getting and setting browser list pref in compatibility/UserSetting.js and the CompatibilityActor.
We should move the functions from UserSetting.js to the CompatibilityActor

There is a lot of code common between the Compatibility Actor and
the UserSettings and moving this to shared folder will cause
inconsistencies between values read by the client and server.
This patch moves the functions of UserSetting to Compatibility
Actor.

Instead of replicationg the browser list fetch using the
preference on the server side, we send the browser list from the
client side to the CompatibilityActor to get the declaration block
compatibility issues.
This way the pref setting is retained completely on the client
side and server doesn't have code duplication.

Depends on D86523

Assignee: nobody → lelouch.cpp
Blocks: 1636336
Severity: -- → S3
Status: UNCONFIRMED → NEW
Ever confirmed: true
Priority: -- → P3
Pushed by mtigley@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c1bcb0dd0820 Remove code replication in the compatibility actor by moving UserSettings to shared folder r=daisuke,mtigley,devtools-backward-compat-reviewers
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 82 Branch
Attachment #9169593 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: