yorkxin / copy-as-markdown

A browser extension to copy tabs and links as Markdown
MIT License
529 stars 81 forks source link

Hack: Periodically re-create context menus in Firefox #127

Closed yorkxin closed 5 months ago

yorkxin commented 5 months ago

Summary

In Firefox, when context menus were created in MV3, they may disappear unintentionally, even after restart. This is due to a bug in Firefox 1.

This patch introduces a hack which removes and re-creates all the menus every 30 seconds.

Related: #109

Tests

Optional:

yorkxin commented 5 months ago

The menus have once disappeared in some tabs without appearing again. Refreshing the tab and the menus are back, but only in that specific tab.