AdguardTeam / AdguardBrowserExtension

AdGuard browser extension
https://adguard.com/
GNU General Public License v3.0
3.11k stars 331 forks source link

User rules were deleted and AdGuard is missing from context menu in Firefox after update to 4.4.18 #2927

Open MatzFan opened 2 months ago

MatzFan commented 2 months ago

Please answer the following questions for yourself before submitting an issue

AdGuard Extension version

4.4.18

Browser version

Firefox 115.14.0esr

OS version

Linux Mint Debian Edition 6 (Faye) - based on Debian 12

Ad Blocking

AdGuard Base filter

Privacy

No response

Social

No response

Annoyances

No response

Security

No response

Other

No response

Language-specific

No response

What Tracking protection options do you have enabled?

No response

Issue Details

Expected Behavior

Prior to the latest update an AdGuard context menu item was present.

Actual Behavior

No context menu item is present.

Screenshots

Screenshot 1

Additional Information

My User rules also disappeared with the latest update too, but I didn't have many so am not bothered.

MatzFan commented 2 months ago

Firefox right-click context menu attached:-

Menu_001

alexx7311 commented 2 months ago

@MatzFan, hello! We were able to reproduce the context menu issue, but we couldn't reproduce the user rules one. Can you help us out?

Please do the following: 1) Download 3 builds of the AdGuard browser extensions at: https://uploads.adguard.org/firefox_4.3.64.zip https://uploads.adguard.org/firefox_4.4.18.zip https://uploads.adguard.org/firefox_4.4.22.zip 2) Extract files from firefox_4.3.64.zip to any folder. 3) Go to about:debugging#/runtime/this-firefox in Firefox browser. 4) Click 'Load Temporary Add-on...' and choose to open manifest.json file from the firefox_4.3.64 folder. 5) After installation of the extension please add and save the following rules to the User rules:

||example.org^$script ||ads.example.org^$third-party ||example.org/ads/ ||example.org^$subdocument example.org##div#ad_banner example.org##.advertisement example.org##.social-buttons example.org##h2:has-text(ads) example.org##+js(set, open, noopFunc) example.org##+js(setTimeout-defuser.js) example.org##+js(set, location.href, '') example.org##+js(noeval.js) ||example.org^$media example.org##div:has-text(subscribe) ||example.org/tracking/$third-party

6) Replace files from firefox 4.3.64 folder with files from firefox_4.4.18.zip archive. 7) Go to about:debugging#/runtime/this-firefox and click 'Inspect' to display the console of the background page and 'Reload' on AdGuard AdBlocker tile to update the extension. 8) Right click on any entry in the console and click 'Save All Messages to File' (you can use this page for the reference) 9) Check whether user rules are present, if they're not please attach the logs to a comment in this issue. If they are, then follow the 6-8 steps but replace 4.4.18 extension with 4.4.22.

MatzFan commented 2 months ago

Hi @alexx7311, thanks for the quick feedback. I followed your steps and all user rules did disappear with upgrade to 4. 4.18. Logs attached. console-export-2024-9-6_11-40-22.txt