Closed Bug 1376573 Opened 8 years ago Closed 8 years ago

Override the UserAgents inside a ComplexOverride function via UserAgentOverrides.jsm

Categories

(Web Compatibility :: Interventions, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: denschub, Assigned: denschub)

References

Details

Attachments

(1 file)

In bug 1371335, Ehsan made us aware that we are duplicating some features from `UserAgentOverrides.jsm`. This is true, we did this on purpose, since `UserAgentOverrides.jsm` was not enabled on Desktop. However, this changed and we can now use it on both Desktop and Mobile. So, to avoid having two implementations for the same thing, we should remove our duplicated code and go back to using `UserAgentOverrides.jsm`.
Status: NEW → ASSIGNED
Blocks: 1376602
Eric, this patch removes our own listener for the `http-on-useragent-request` event and replaces it with the `ComplexOverride` feature in `UserAgentOverrides.jsm`, since it is now back in Firefox Desktop. This removes the need for us to carry a own implementation of the service listener and should make it easier to maintain in the long run while not affecting our flexibility at all.
Attachment #8881574 - Flags: review?(etsai)
Attachment #8881574 - Flags: review?(etsai) → review+
This was merged, so this bug is fixed. Landing is tracked in bug 1376602.
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Depends on: 1437047
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: