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
884 stars 142 forks source link

Bug: Whitelist and blacklist not always work for PWA #192

Open sky96111 opened 9 months ago

sky96111 commented 9 months ago

browser: Windows Chrome 117.0.5938.63 extension: 0.5.0

bug site: https://hoppscotch.io/

extension setting: whitelist mode: bilibili.com spoof UA: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36

Step:

  1. Install https://hoppscotch.io/ as PWA app
  2. Set UA to Mac OS
  3. Make https://hoppscotch.io/ in UA spoof blacklist list, or whitelist live blank

Problem In url mode https://hoppscotch.io/ shows correct Windows icon, but launch hoppscotch as PWA app it always shows MacOS icon.

Seems blacklist or whitelist doesnot work for PWA app. This bug disappeared as this extension disabled

PWA Snipaste_2023-09-14_16-56-36.png

URL Snipaste_2023-09-14_16-56-00.png

sky96111 commented 9 months ago

emmm... I succeed in some attempts. Seems whitelist and blacklist not always work for PWA but sometimes do

sky96111 commented 9 months ago

I've found a way to trigger the bug 100%. When there is no chrome.exe process in front or background, launching hoppscotch PWA directly make whitelist and blacklist work.

If Chrome is already started then launch hoppscotch. UserAgent-Switcher will always spoof PWA UA