Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uBlock use a MAX_DISK_USE setting not request "Unlimited storage" #490

Closed
4 tasks done
aplatypus opened this issue Mar 28, 2019 · 5 comments
Closed
4 tasks done

uBlock use a MAX_DISK_USE setting not request "Unlimited storage" #490

aplatypus opened this issue Mar 28, 2019 · 5 comments
Labels
invalid not a uBlock issue

Comments

@aplatypus
Copy link

Prerequisites

  • I verified that this is not a filter issue
  • This is not a support issue or a question
  • I performed a cursory search of the issue tracker to avoid opening a duplicate issue
  • I am running the latest version of uBlock Origin

Description

With the new firefox 67.0b5 (64-bit) the uBlock plugins asks for "Unlimited Storage" now that we have these NEW Permissions.

While it is good that apps check -- I feel strongly that this query should be a prompt for a finite number as the answer to this sort of question.

I have checked this PC's use of the disk = almost 8MB

It also should be something the plugin must put on an options page so that the number can be changed. And then you or firefox can ask if 10MB is OK for blocking storage.

This can be similar to the size of the cache firefox uses. I do not feel comfortable giving a blank cheque to any plugin. Thee can be bugs and discovering that a plugin has eaten up a disk-drive would be extremely difficult to identify. Plugins should decide how much disk they might/should allocate or allow for. And that can be changed by the customer.

A specific URL where the issue occurs

https://support.mozilla.org/en-US/kb/permission-request-messages-firefox-extensions?as=u&utm_source=inproduct

Steps to Reproduce

  1. Install uBlock in latest Firefox Developer build

Expected behavior:

Prompt for an actual number to store as an option MAX_DISK_USE

Actual behavior:

Requests unlimited storage

Your environment

  • uBlock Origin version: uBlock Origin v1.18.6
  • Browser Name and version: firefox 67.0b5 (64-bit)
  • Operating System and version: Ubuntu 18.10 64-bit
@gorhill
Copy link
Member

gorhill commented Mar 28, 2019

You control the disk usage of uBO through the number of filter lists you select. uBO informs you of the amount of storage in use in its Settings page in its dashboard --- use the information to make decision about your choice of filter lists, custom filters, rules.

@gorhill gorhill closed this as completed Mar 28, 2019
@gorhill gorhill added the invalid not a uBlock issue label Mar 28, 2019
@gorhill
Copy link
Member

gorhill commented Mar 28, 2019

By the way, if you really want Firefox to let you pick the maximum amount of storage an extension is allowed to use, you will have to open an issue for this with Firefox developers. Currently all extensions are free to use as much storage as they wish, even without declaring unlimitedStorage.

Even with the new permission, in its default state uBO is not allowed to use as much storage as it wishes, it's limited by the browser heuristic for indexedDB's which if I remember correctly is roughly 10% of available disk storage. This limit has caused issue in the past hence why LZ4 compression was integrated into uBO.

@uBlock-user
Copy link
Contributor

uBlock-user commented Mar 28, 2019

I do not feel comfortable giving a blank cheque to any plugin

Yet you feel comfortable using uBO on Chromium where this permission has existed since the beggining, this is the problem with today's users. Add one new permission that rectify another potential issue and everybody goes up in arms.

Prompt for an actual number to store as an option MAX_DISK_USE

There's no such option or an API like that in Chromium or in Firefox fyi.

@uBlock-user uBlock-user changed the title uBlock use a MAX_DISK_USE setting not request "Unlimited storage" under Firefox uBlock use a MAX_DISK_USE setting not request "Unlimited storage" Mar 28, 2019
@ghost
Copy link

ghost commented Apr 3, 2019

You control the disk usage of uBO through the number of filter lists you select. uBO informs you of the amount of storage in use in its Settings page in its dashboard --- use the information to make decision about your choice of filter lists, custom filters, rules.

What is the purpose of this new permissions request? What issue mandated its inclusion?

@gorhill
Copy link
Member

gorhill commented Apr 3, 2019

It's all explained in the Release Notes.

Locking due to pointlessly asking what is already explained in details.

@uBlockOrigin uBlockOrigin locked as resolved and limited conversation to collaborators Apr 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
invalid not a uBlock issue
Projects
None yet
Development

No branches or pull requests

3 participants