ray-lothian / UserAgent-Switcher

A User-Agent spoofer browser extension that is highly configurable
https://webextension.org/listing/useragent-switcher.html
Mozilla Public License 2.0
934 stars 144 forks source link

[Bug] Incorrect UA in tooltip #49

Closed tomas-chrastina closed 4 years ago

tomas-chrastina commented 5 years ago

Configuration

OS: Windows 7 x64 Pro Browser: Firefox v68.0.2 (64-bit) (New profile w/ original settings and only this Extension installed) Extension mode: Custom

{
    "www.google.com": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3835.0 Safari/537.36"
}

Use caching: Off

Problem

On change of tab, icon tooltip is not displaying currently selected=correct UA. Icon look different=OK. Also UA in network requests is OK, Toolkip is not.

Test

OK Site: https://www.google.com/ Network request:

Host: www.google.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3835.0 Safari/537.36

UA_OK

NotOK Site: https://addons.mozilla.org/en-US/firefox/addon/user-agent-string-switcher/ Network request:

Host: addons.mozilla.org
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:68.0) Gecko/20100101 Firefox/68.0

UA_NotOK

Maybe tooltip is not refreshed when "Default UA" (not defined in JSON rules) is used?

ray-lothian commented 4 years ago

Thanks for the report. Should be fixed by https://github.com/ray-lothian/UserAgent-Switcher/commit/00909fa7b9da29b5f0e129354424fabae81c38ac. If not please reopen.