DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 11th May 2019
victorvas's Avatar
victorvas victorvas is offline
Real Name: Victor
Port Guard
 
Join Date: May 2019
Posts: 22
Default Adblock Plus issue in Firefox

Hello!
If I login directly as root, then Adblock Plus works perfectly fine with all it's settings working and all it's blocking capabilities.
But if I login as regular user, then Adblock Plus is not blocking anything and it's settings are impossible to change through GUI or otherwise.

This is not related to Mozilla May 5th certificate issue.

Any suggestions?
Reply With Quote
  #2   (View Single Post)  
Old 11th May 2019
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 6,745
Default

Hello, and welcome!

I will have to guess that if you check your user's Mozilla profile directory structure, you will find files owned by root. Best practice is to only use root for local system administrative tasks.
Reply With Quote
  #3   (View Single Post)  
Old 11th May 2019
victorvas's Avatar
victorvas victorvas is offline
Real Name: Victor
Port Guard
 
Join Date: May 2019
Posts: 22
Default

Hello!
The contents of my ~/.mozilla directory are all belong to user (victor:victor) and I never use root directly, I use doas when it need to perform as root. However in this particular case when all firefox add-ons work well and Adblock Plus refuses to work, I decided to login directly as root, launch firefox, add Adblock Plus from official mozilla add-ons menu and Adblock Plus worked fine. Then I loged back into my regular user and tried different things like removing Adblock Plus and adding it directly from their website, but nothing works.
I searched on the Internet for this issue, but the only thing I was able to find that another ad blocker Ublock Origin also not working properly under OpenBSD, failing to block ads.
I should mention, I use OpenBSD 6.5
Reply With Quote
  #4   (View Single Post)  
Old 11th May 2019
albator albator is offline
Shell Scout
 
Join Date: Jul 2011
Posts: 85
Default

I'd suggest to move ~/.mozilla to ~/.mozilla_old and start firefox from a X terminal.
Reinstall the extensions and if the problem reappears check the output from the terminal to get a clue of what is happening.

You can also check that your home directory isn't full and that you still have writing rights.
I have been using Ublock Origin for a while without any issue.
Reply With Quote
  #5   (View Single Post)  
Old 11th May 2019
victorvas's Avatar
victorvas victorvas is offline
Real Name: Victor
Port Guard
 
Join Date: May 2019
Posts: 22
Default

I checked home directory and .mozilla for writing rights and everything is fine. Then I moved .mozilla to .mozilla_old and started firefox from terminal, as you suggested. Then I added Adblock Plus and it wasn't working. If I click on Adblock Plus icon on the toolbar, nothing happens; if I go to add-ons menu and click "Preferences" next to Adblock Plus, it loads options.html, where I am unable to activate any checkboxes and change any settings. As a result it's not blocking any ads.
Terminal don't output any errors.
Reply With Quote
  #6   (View Single Post)  
Old 11th May 2019
albator albator is offline
Shell Scout
 
Join Date: Jul 2011
Posts: 85
Default

Do you have any other add-ons, and if so, do you notice the same problem?
What version of Firefox and Adblock Plus are you running?
Reply With Quote
  #7   (View Single Post)  
Old 11th May 2019
victorvas's Avatar
victorvas victorvas is offline
Real Name: Victor
Port Guard
 
Join Date: May 2019
Posts: 22
Default

Other add-ons work without problems.
firefox-esr-60.6.1 from https://cdn.openbsd.org/pub/OpenBSD/6.5/packages/amd64/
Adblock Plus 3.5.2
Reply With Quote
  #8   (View Single Post)  
Old 11th May 2019
albator albator is offline
Shell Scout
 
Join Date: Jul 2011
Posts: 85
Default

You said the matter was not related to the recent Mozilla certificate issue but this problem, AFAIK, was fixed on 60.6.2esr.
When was Adblock Plus working for the last time (if ever) and how did you make your Add-ons work again ?

If you are running Release/Stable you can upgrade Firefox-esr through the ports collection and via packages if you are using Current.
Reply With Quote
  #9   (View Single Post)  
Old 11th May 2019
victorvas's Avatar
victorvas victorvas is offline
Real Name: Victor
Port Guard
 
Join Date: May 2019
Posts: 22
Default

No, the certificate issue was about an expired certificate, which automatically marked all addons as non-compatible.
Mozilla pushed new certificate through it's "studies" feature - it's a file cert9.db, I have that file copied into new profile.
Adblock Plus never worked for me. It is listed in add-ons as installed, it shows in the menu bar, but I can't change any of it's options on a preferences page and therefore it's not blocking anything. I've been using OpenBSD since release of 6.5 (I'm trying to move away from Linux), and the first thing I notice, that Adblock Plus is not working in Firefox, but every other add-on is working fine.
Reply With Quote
Old 11th May 2019
albator albator is offline
Shell Scout
 
Join Date: Jul 2011
Posts: 85
Default

I can reproduce the problem on Firefox 60.6.2esr. Have you tried ABP with the main Firefox version?
Until a solution is found you can install uBlock Origin.

Last edited by albator; 11th May 2019 at 09:33 PM. Reason: typo
Reply With Quote
Old 11th May 2019
victorvas's Avatar
victorvas victorvas is offline
Real Name: Victor
Port Guard
 
Join Date: May 2019
Posts: 22
Default

I just tried Adblock Plus on Firefox 66 and it's not working.
uBlock Origin is working fine, thanks.
I think I'll use uBlock Origin as a temporary solution.

EDIT:

I've been thinking about this problem and this is what comes to my mind:
When I click add-ons and then Preferences for Adblock Plus, it opens a file
moz-extension://....../options.html
It's either 1) the regular user don't have permissions to write to options.html or
2) options.html don't have permisions to store it's data somewhere else.
The question is: where exactly options.html is located?
doas find / -name "options.html" returned no results.

Last edited by victorvas; 12th May 2019 at 12:43 PM.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Publisher Sues AdBlock Plus For Copyright Infringement e1-531g News 0 11th April 2019 11:02 AM
issue firefox philo_neo71 NetBSD Package System (pkgsrc) 3 16th May 2016 06:49 PM
issue compilation firefox philo_neo71 NetBSD Package System (pkgsrc) 4 10th October 2015 10:49 PM
Firefox 4 classicmanpro General software and network 14 3rd April 2011 01:50 PM
Upgrading firefox to firefox 3 -keeping plugins+bookmarks kasse FreeBSD Ports and Packages 11 5th July 2008 01:34 PM


All times are GMT. The time now is 01:08 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick