The add-on clears some kinds of undo entries such Add Note when opening the browser

This is an interesting but minor issue.

How to reproduce

  1. Add a new note
  2. Confirm an undo entry is added by checking Edit > Undo.
  3. Open the browser then check Edit → Undo> quickly. You should notice it says “Undo Add Note” for a moment then flips back to a greyed out “Undo”. Interestingly, this doesn’t happen for review undo entries.

My guess is that this is caused by some DB queries.