fenix icon indicating copy to clipboard operation
fenix copied to clipboard

Install uBlock Origin

Open vesta0 opened this issue 7 years ago • 25 comments

User Story

As a user, I want to be able to install a popular Android WebExtension, such as uBlock Origin in Fenix, and be protected from unwanted ads and distractions.

Dependencies

A-C project board

Acceptance Criteria

  • I can choose to install uBlock Origin in Fenix
  • I can choose to un-install uBlock Origin in Fenix
  • I can see the # of blocked trackers and resources that have been blocked by uBlock origin

Design tasks

  • [ ] Add uBlock Origin as an install target under the Add-ons Manager page

┆Issue is synchronized with this Jira Task

vesta0 avatar Sep 27 '19 06:09 vesta0

Added design tasks.

brampitoyo avatar Oct 16 '19 20:10 brampitoyo

Updated design tasks to suit uBlock Origin.

brampitoyo avatar Oct 21 '19 01:10 brampitoyo

Progress report:

  • I’ve designed uBlock Origin as an installable target under Add-ons Settings
    • Add-ons like uBlock Origin has a “Disable” control, but other add-ons don’t have one (e.g. Video DownloadHelper)
    • Therefore, it seems like we want three different add-on states: not installed, installed (enabled) and installed (disabled) – so users can manually disable when the add-on doesn’t provide that control

brampitoyo avatar Oct 24 '19 05:10 brampitoyo

GeckoView meta-bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1582194

agi90 avatar Oct 28 '19 18:10 agi90

How will it be possible to import rules into uBlock Origin if local file opening is inexplicably going to be removed from Fenix?

https://github.com/mozilla-mobile/fenix/issues/4049

ghost avatar Nov 03 '19 07:11 ghost

@Kakitoru sync or copy/paste

andreicristianpetcu avatar Nov 03 '19 09:11 andreicristianpetcu

Hi @Kakitoru, importing rules into uBlock Origin isn’t something I’ve thought of in the design, so thanks heaps for bringing it up.

Do you know if there are other features I’ve overlooked?

brampitoyo avatar Nov 03 '19 23:11 brampitoyo

Progress report:

  • Through iterating on the design, we now know that adding uBlock Origin (or any other add-on) should be done using a button (can either be a “+” icon, or “+ Add to Firefox)
  • After installing, we provide a toggle to enable/disable this add-on
  • This may help migration
    • For example, if you have uBlock Origin installed on Desktop or Fennec, Fenix can add uBlock Origin automatically, after you sign into your Firefox Accounts. All you need to do is enable it.
    • For maximum convenience, Fenix may even choose to enable uBlock Origin for you. In this case, we definitely want to let you know that Fenix did this in the background.

brampitoyo avatar Nov 19 '19 04:11 brampitoyo

how can I test? config flags? special build? @brampitoyo

andreicristianpetcu avatar Nov 19 '19 16:11 andreicristianpetcu

Hi @andreicristianpetcu. As a UX designer in the team, my update talks about add-ons in terms of its experience and interface: user flow, mockups and design variations.

To my knowledge, our Engineering team is currently doing the groundwork to build it, and the actual support will only land in Fenix later this year.

We will definitely let you know when it’s available to test in the app!

brampitoyo avatar Nov 20 '19 01:11 brampitoyo

Please add it , we need ublock origin

ghost avatar Jan 05 '20 07:01 ghost

Having copied and pasted as well as synced uBO's settings into FFox for Android, sync doesn't work on Android Fennec. Even if it did work, the way uBlock Origin uses sync, it's per-device. I cannot sync one device to another. It also requires an initial upload before download works so the first step is to wipe out what is already in the sync storage. The only time it serves a purpose is if you uninstall uBlock and reinstall it in the same Firefox profile, in the same Firefox instance, on the same machine. Otherwise it just wipes itself out.

As for copy/paste, their built-in configuration editor is not too friendly. Sometimes it copies line numbers, adds extra line endings, won't let you delete lines easily when using touchscreen controls. The only thing that works reliably is exporting and importing from a file.

You'd also need the same for NoScript's export/import settings feature.

jawz101 avatar Jan 06 '20 14:01 jawz101

I'm not a Fenix dev but I would say uBO sync is a different story @jawz101

andreicristianpetcu avatar Jan 06 '20 15:01 andreicristianpetcu

On November 3rd you suggested using sync or copy/paste in lieu of importing & exporting a backup of the config file. I was giving reasons why that is not too possible on mobile

jawz101 avatar Jan 06 '20 21:01 jawz101

@gabrielluong how can I test this? is there a special build or it should land in Nightly?

andreicristianpetcu avatar Feb 04 '20 08:02 andreicristianpetcu

It will be in the next nightly, or you can probably download a build from the checks panel in #8064 (not sure which one).

lnicola avatar Feb 04 '20 08:02 lnicola

Looks like it's here: https://firefox-ci-tc.services.mozilla.com/tasks/b0F1rHGTSseQEfa2mamr-g#artifacts

cognition9144 avatar Feb 04 '20 08:02 cognition9144

But that's a debug build, right?

lnicola avatar Feb 04 '20 08:02 lnicola

But that's a debug build, right?

Sure. Nightly hasn't been built after that. It might be scheduled a few hours later. You can have a look at the debug build if you don't want to wait.

cognition9144 avatar Feb 04 '20 09:02 cognition9144

Tested, it works.

ghost avatar Feb 04 '20 09:02 ghost