added private browsing permissions for RES in Firefox / XPI mode.
added a check to ensure the user is not in private browsing mode before adding to history.