Skip to content
This repository was archived by the owner on Nov 6, 2023. It is now read-only.
This repository was archived by the owner on Nov 6, 2023. It is now read-only.

Handling Firefox quota enforcement #19880

Closed

Description

@twolfson

Type: code issue

For the past couple weeks, I've been able to disable sites for a session but upon browser restart, the disabled sites were no longer registered

Steps:

  • Open a link in an email
  • Get prompted by HTTPS Everywhere to handle non-HTTPS site
  • Select "Open insecure page" (permanent)
  • Go to website without issue
  • Close browser
  • Open same link in email

Expected behavior:

  • No prompt from HTTPS Everywhere

Actual behavior:

  • Prompted again by HTTPS Everywhere to handle non-HTTPS site

Research:

Discussion:

  • Solutions to work around 8192 byte limitation will eventually run into same issues (i.e. total storage is 102400 bytes, gzipping saves maybe 50% of data)
  • Probably better to check usage via getBytesInUse then notify user they need to remove existing sites
  • Maybe Mozilla can be convinced to increase their quota (unsure if same issue exists in Chrome)
  • I'm sure y'all have better ideas than me around this =)

Workaround for now:

  • Open "Add-Ons"
  • Navigate to "HTTPS Everywhere" extension
  • Click on gear then "Debug Add-ons"
  • Clear existing disabled sites via: chrome.storage.sync.set({'disabledList': []}, console.log)
  • Restart browser
  • Wait for another couple months to run into limit
  • Rinse and repeat

Activity

  1. pipboy96 commented on Dec 30, 2020

    @pipboy96
    Contributor

    @zoracon Maybe we can move towards using local browser storage instead of the sync one, or allow the user to choose? As far as I know, local storage is almost unlimited in its size.

  2. twolfson commented on Dec 30, 2020

    @twolfson
    Author

    A few lines down from chrome.storage.sync settings is chrome.storage.local. The limitation there is 5MB instead of 100KB total, definitely more reasonable:

    https://searchfox.org/mozilla-central/rev/8d55e18875b89cdf2a22a7cba60dc40999c18356/toolkit/components/extensions/schemas/storage.json#341-351

  3. pinned this issue on Jan 5, 2021
  4. unpinned this issue on Sep 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions