Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[embedlite-components] Add support for site specific UA override. Con…
…tributes to JB#34904 This makes possible to use general.useragent.override.* overrides with simple replace syntax given that complex override is not applied. Instantiation of the UserAgent is deferred a bit so that we do not end up initializing UserAgentOverrides before general.useragent.override is applied. As UserAgent was initialized on that application startup, the simple hash separated user agent fixing did not work. This happened because nsIHttpProtocolHandler was not yet aware of the override. Thus, causing UserAgentOverrides to fail to replace ua.
- Loading branch information
Showing
2 changed files
with
71 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters