auto-tab-discard icon indicating copy to clipboard operation
auto-tab-discard copied to clipboard

☑ Display "Open Link in New Discarded Tab" item in the "link" context menu – not displayed

Open grahamperrin opened this issue 4 years ago • 11 comments
trafficstars

https://github.com/rNeomy/auto-tab-discard/issues/226#issuecomment-824725758

… we already have a context menu item for links to open a tab in the discarded state. …

The menu item is not apparent with Firefox 88:

https://user-images.githubusercontent.com/192271/115836417-5dcb4780-a40f-11eb-9122-5f1b27fbd73c.mp4

Workaround

Open link in new discarded tab (extension)

grahamperrin avatar Apr 23 '21 07:04 grahamperrin

Also, the wording of the preference might be more concise. Instead of:

☑ Display "Open Link in New Discarded Tab" item in the "link" context menu

– this should suffice:

☑ Display "Open Link in New Discarded Tab" in the context menu

– or even:

☑ Offer to "Open Link in New Discarded Tab"


Personally, I think that the menu item could be more simply Open in New Discarded Tab because (unless I'm missing something) there's no context other than link.

grahamperrin avatar Apr 23 '21 08:04 grahamperrin

The menu item is not apparent with Firefox 88:

Can you confirm on a new Profile?

– this should suffice:

I am a fan of simplifying things. However, the user needs to know where the context menu is expected. So we somehow need to point to the link context in the description.

rNeomy avatar Apr 24 '21 06:04 rNeomy

Personally, I think that the menu item could be more simply Open in New Discarded Tab because (unless I'm missing something) there's no context other than link.

Done!

rNeomy avatar Apr 24 '21 06:04 rNeomy

Can you confirm on a new Profile?

Interesting! I seem to have at least two profiles bugged, but can not reproduce the issue with a new profile.

I wondered whether there's a conflict with Open link in new discarded tab by def00111. As far as I can tell, no conflict:

image

– and the Open Link in New Discarded Tab menu option of Auto Tab Discard remains visible after Open link in new discarded tab (the extension) is disabled.

For https://github.com/rNeomy/auto-tab-discard/commit/b2333c94a5266b337a6f32a788b0139d9da515de did you make the issue reproducible?

grahamperrin avatar Apr 24 '21 11:04 grahamperrin

remains visible after Open link in new discarded tab (the extension) is disabled.

Your FF profile is probably damaged! Migrate to a new one

did you make the issue reproducible?

I haven't tried.

rNeomy avatar Apr 24 '21 12:04 rNeomy

… Migrate to a new one

No problem for the test profile, which I used for the screen recording in the opening post, however my everyday default profile has years' worth of preferences for umpteen extensions and so on.

I should find for myself an explanation for the problem …

grahamperrin avatar Apr 24 '21 13:04 grahamperrin

my everyday default profile

  • 0.4.7, the context menu item appears
  • down to 0.4.6, it disappears
  • up again to 0.4.7, it reappears
  • down again to 0.4.6, it disappears
  • up again to 0.4.7, it reappears.

grahamperrin avatar Apr 28 '21 23:04 grahamperrin

From opening post https://github.com/rNeomy/auto-tab-discard/issues/227#issue-865841164:

The menu item is not apparent with Firefox 88:

A few minutes ago I found the test profile, which was bugged at the time of the screen recording, not bugged with outdated 0.4.6. Then bugged, then not bugged, then bugged, then not bugged whilst I tested in various ways. A sense of randomness, until …


… I think I made the bug (or symptoms of the bug) reproducible with outdated 0.4.6 with a new profile. Steps, as far as I can tell:

  1. add 0.4.6 https://addons.mozilla.org/firefox/downloads/file/3764231/auto_tab_discard-0.4.6-an+fx.xpi and do not allow in private windows
  2. the link context menu appears ☑
  3. allow in private windows
  4. ⚠ the link context menu disappears.

I have a screen recording of this, however it's a horribly long recording with the (short) interesting bit at the tail end, so I'll not share it unless you want to see it.

Please, does something in https://github.com/rNeomy/auto-tab-discard/commit/b2333c94a5266b337a6f32a788b0139d9da515de fix the four-step case above?


(I'm very interested, because there's a comparable sense of randomness with occasional non-appearance of the page context menu item for Mozilla's Multi-Account Containers extension.)

grahamperrin avatar Apr 28 '21 23:04 grahamperrin

This profile (named clean) was refreshed a few hours ago:

https://user-images.githubusercontent.com/192271/116594115-c8055000-a919-11eb-853e-59c84a5ea17e.mp4

  • menu item missing from the link context menu.

grahamperrin avatar Apr 29 '21 17:04 grahamperrin

I can reproduce this. Seems like FF does not call any of the initialization event listeners once you enable the extension on the private mode. If you do a restart the menu will appear though.

rNeomy avatar May 01 '21 06:05 rNeomy