uBlock icon indicating copy to clipboard operation
uBlock copied to clipboard

Are you planning on releasing a Firefox port?

Open skudo12 opened this issue 12 years ago • 234 comments

First of all, I saw that you have started another project (based on your first which is so awesome) and would like to congratulate you for yet another successful project. :D

Is there any plan on releasing a Firefox port for µblock? I tried it in Chromium and impressed in how light it is. It would be nice to see it running in Firefox. I have yet to find a blocker similar to µblock in Firefox.

skudo12 avatar Jun 28 '14 08:06 skudo12

Yes that would be nice, it seems people like it, more than I expected (given that it doesn't do all what ABP currently does -- like manually blocking elements, or entering URL to lists). I am currently quite loaded, and there are still important issues in need of fixing with HTTPSB.

Learning a whole new API is very time consuming. Even with the chrome API I can spend a while trying to figure why something unexpected is happening (as happened yesterday), so let alone a new one.

What would be nice is an angel developer doing some leg works to port to Firefox, and I could do my part in splitting more the platform specific stuff out of the core code as per feedback, etc. Eventually both projects could be merged.

gorhill avatar Jun 28 '14 14:06 gorhill

I'd generally second this request, even though I can't be of great help for a port since I unfortunately know close to nothing about extension development. Would love to have this great extension in Firefox nevertheless.

entepe85 avatar Jul 27 '14 11:07 entepe85

I wonder if it'd be helpful to split out various "bite-size" chunks of work and add them as specially tagged issues in here.

ghost avatar Jul 30 '14 07:07 ghost

  • [x] Skeleton framework
    • [x] Where to hook net request handling?
    • [x] Where to hook initialisation?
    • [x] Where to save/restore data?
    • [x] Are core, content scripts, popup and dashboard page all in separate contexts? If yes:
      • [x] What messaging infrastructure FF provides?
  • [x] Initialization of the core
    • [x] Reading user settings (which lists are selected etc.)
    • [x] Loading, parsing the lists, storing the filters
  • [x] Intercepting net request and potentially cancel them as per filters
  • [x] Local mirroring
  • [x] Pop-up blocking
  • [x] Content-scripts
    • [x] Element picker
    • [x] Cosmetic filtering
  • [x] Infrastructure to update updatable assets
  • [x] Popup menu
  • [x] Dashboard

gorhill avatar Jul 30 '14 12:07 gorhill

+1

robsalasco avatar Aug 22 '14 21:08 robsalasco

+1 for a FF version sorry I can´t help with it, i´m a Cisco guy not a programmer

maikelswe avatar Oct 22 '14 09:10 maikelswe

Please make a version for FF :D thanks!

Ahriman avatar Oct 24 '14 21:10 Ahriman

This would be great indeed, I'm using Bluhell Firefox on Firefox currently but it has limited functions.

If anyone wants to start, here's the list of relevant hooks https://developer.mozilla.org/en/docs/Observer_Notifications#HTTP_requests to use with https://developer.mozilla.org/en-US/Add-ons/SDK/Low-Level_APIs/system_events

ghost avatar Oct 28 '14 09:10 ghost

+1

alekksander avatar Dec 10 '14 21:12 alekksander

Yes please do a firefox version there isn't one good adblocker on firefox Please :'(

Kyuzial avatar Dec 15 '14 18:12 Kyuzial

uBlock.xpi

Update: Newer builds can be downloaded from the releases section.

Deathamns avatar Dec 17 '14 11:12 Deathamns

Cool. Testing it out.

When I restore from a file the options in the "Settings" and "Statistics" tabs doesn't restore. Same happens when you try resetting to default.

my-password-is-password avatar Dec 17 '14 11:12 my-password-is-password

@Deathamns Wow, this is awesome.

gorhill avatar Dec 17 '14 12:12 gorhill

Among first thing I tried, the VIM Color Scheme Test (which originally is why I decided to start uBlock):

From Mozilla dev re. VIM test vs. ABP:

According to about:memory, window-objects->layout->style-sets is the epicenter of the usage (jumping about 1 GB)

So I just looked:

  • uBlock + default filter lists [1]: window-objects->layout->style-sets = 49 MB.
  • ABP + filter lists in [1]: window-objects->layout->style-sets = 1,565 MB.
  • No blocker: window-objects->layout->style-sets = 49 MB.

  • [1] Default filter lists:
    • EasyList
    • Peter Lowe's Ad server list
    • EasyPrivacy
    • Fanboy's Social Blocking List
    • Malware domain lists

gorhill avatar Dec 17 '14 12:12 gorhill

"Show the number of blocked requests on the icon" is not remembered upon restart. 0.8.2.0 is the version shown in add-ons manager, and 0.7.2.0 is shown in addon menu. beside that, after several minutes of testing - brilliant! thank You again Deathamns!

alekksander avatar Dec 17 '14 13:12 alekksander

Another thing to look into, is that blocking inline javascript specifically does not seem to work: Test page. ~~Is it a limitation of Firefox re. Content Security Policy?~~ Never mind, I see onHeaderReceived has not been implemented yet.

gorhill avatar Dec 17 '14 13:12 gorhill

This is just an early preview, still implementing the basics. I'm not even sure if reporting issues at this point is necessary. I just wanted to show what I was working on, and what can be expected for Firefox, but it's definitely not ready.

@my-password-is-password @alekksander You're probably talking about the same problem, which I was aware of.

@gorhill For me, ABP freezes the whole browser with 1GB+ RAM usage on the VIM page, I have to kill the process. However, there's no problem with µBlock, so my testing stopped here. (By the way, your links to both the VIM Color Scheme Test (wrong link) and why (extra slash) are broken.)

As I said, some things are still missing, for example blocking inline scripts or pop-ups, experimental features, context menu, and there are bugs too, like the pop-up doesn't hide when a link is opened from it, or settings don't save in some cases (above mentioned)...

Deathamns avatar Dec 17 '14 14:12 Deathamns

@Deathamns

This is just an early preview, still implementing the basics.

Understood. Issues should be filed once you decide it's ready for this. It works pretty well overall already. One thing is for sure: this is a huge milestone. Such a nice thing to see first thing this morning. Thank you very much for your work on portability and now the Firefox port a whole lot of people are waiting for.

gorhill avatar Dec 17 '14 15:12 gorhill

I'm curious about one thing though. There is a constant crash in e10s enabled Nightly. After the extension is installed, restart the browser and all tabs will crash because of the extension. However, if I disable the extension, and enable it (via the Add-ons Manger, without restarting the browser), then It will work normally. Can someone confirm this?

Deathamns avatar Dec 17 '14 17:12 Deathamns

Maybe file a bug at bugzilla? e10s are not working for me with yesterday's build. Getting a black page. Will update tonight and see if I can test this in e10s. Congratulations for huge milestone. Soon I will be start using Firefox again.:)

harshanvn avatar Dec 18 '14 05:12 harshanvn