You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This bug caused by chrome.contextMenus.removeAll().
Seems like in incognito mode, the context menus are created after chrome.contextMenus.removeAll() will not work in the normal mode. But the chrome.contextMenus.removeAll() in incognito mode will remove normal mode's context menus.
This doesn't make sense. It might be a Chromium bug here.
To keep the same experience as before, I fixed it through duplicate create/remove. There is a better way to fix it by contextMenu.visible, but there will be a wrapper even if there is only a single menu. Will be switch to "contextMenu.visible" if the "duplicate create/remove" cause bugs.
In Chrome91~92, context menus will disappear in some case.
The text was updated successfully, but these errors were encountered: