rNeomy / auto-tab-discard

Use native tab discarding method to automatically reduce memory usage of inactive tabs
https://webextension.org/listing/tab-discard.html
Mozilla Public License 2.0
906 stars 79 forks source link

Context menu item missing when extension is disabled then re-enabled #268

Closed Lej77 closed 1 month ago

Lej77 commented 2 years ago

Short description

When the addon is disabled and then later enabled the context menu items won't show up. Note that they do show up after the browser is restarted, when the addon is installed or when the settings are saved.

The issue is likely because the once function in the background.js file isn't called when the addon is enabled.

Steps to reproduce

  1. Start Firefox with clean profile.
  2. Install Auto Tab Discard.
  3. Disable the addon.
  4. Enable the addon again.
  5. Right click on a tab in the tab bar.

Expected result

The context menu should include the Auto Tab Discard item.

Actual result

The Auto Tab Discard context menu item is not there.

Environment

Chealer commented 1 month ago

@Lej77 if this persists in the current version, could you retitle this as an issue report (rather than as a task)? For example:

Context menu item missing when extension is disabled then re-enabled

Lej77 commented 1 month ago

I checked Auto Tab Discard version 0.6.7 on Firefox Nightly version 130.0a1 (2024-07-20) and this issue seems to have been fixed!