Trapping Permission denied to access property ondisplay in firefox

  Getting the error below with
  https://addons.mozilla.org/en-us/firefox/addon/html-notifications

  Error: Permission denied to access property 'ondisplay'
  https://rawgithub.com/jhthorsen/snippets/master/js/html5-notifications.html:24