AdguardTeam / CoreLibs

Core Adguard libraries
https://adguard.com/
Apache License 2.0
39 stars 7 forks source link

UserscriptWrapper does not return result of GM.xmlHttpRequest #1898

Open piquark6046 opened 1 month ago

piquark6046 commented 1 month ago

Please answer the following questions for yourself before submitting an issue

AdGuard version

Adguard for Android 4.7 nightly 6

Browser version

Chrome

OS version

Android 14

Issue Details

Steps to reproduce:

  1. Install microShield userscript via https://cdn.jsdelivr.net/gh/List-KR/microShield@latest/microShield.user.js.
  2. Visit https://dogdrip.net

Expected Behavior

The CSS remote token should be returned.

Actual Behavior

GM.xmlHttpRequest does not return a Promise constructor.

Screenshots

Screenshots ![image](https://github.com/user-attachments/assets/1a6ba522-c567-4cb5-9dba-d9de72da78f2) ![image (1)](https://github.com/user-attachments/assets/357b2755-1717-44df-b0db-76f85fe0bb73)

Additional Information

https://github.com/AdguardTeam/CoreLibs/issues/1894

piquark6046 commented 1 month ago

Screencast from 2024-08-07 18-13-53.webm