Custom about: URLs
Posted: 2018-08-18, 05:44
One of the extension forks I maintain, Palesomething, has a leftover easter egg from Firesomething - about:firesomething, an "extended edition" excerpt from the Book of Mozilla. It doesn't seem to be working on PM 28, though. The code that handles it is here. And the error message I'm getting is:
I've noticed a lot of nested function methods don't work on ES6, so maybe that's what's doing it. Once I find a good backward compatible methodology for faking modules, I'll probably switch all the extensions I've made or ported to use it, but that tends to get a "undefined" or "not a function" error, whereas this seems to be related to the component registrar? I'm not really sure...
Code: Select all
A promise chain failed to handle a rejection. Did you forget to '.catch', or did you forget to 'return'?
See https://developer.mozilla.org/Mozilla/JavaScript_code_modules/Promise.jsm/Promise
Date: Fri Aug 17 2018 22:33:11 GMT-0700 (Pacific Standard Time)
Full Message: Component returned failure code: 0x80570030 (NS_ERROR_XPC_JSOBJECT_HAS_NO_FUNCTION_NAMED) [nsIWebNavigation.loadURIWithOptions]
Full Stack: JS frame :: chrome://global/content/bindings/browser.xml :: loadURIWithFlags/< :: line 157
JS frame :: chrome://global/content/bindings/browser.xml :: _wrapURIChangeCall :: line 50
JS frame :: chrome://global/content/bindings/browser.xml :: loadURIWithFlags :: line 156
JS frame :: chrome://browser/content/tabbrowser.xml :: loadURIWithFlags :: line 2815
JS frame :: chrome://browser/content/urlbarBindings.xml :: loadCurrent :: line 315
JS frame :: chrome://browser/content/urlbarBindings.xml :: continueOperation :: line 350
JS frame :: chrome://browser/content/urlbarBindings.xml :: handleCommand/< :: line 286
JS frame :: chrome://browser/content/urlbarBindings.xml :: _canonizeURL/< :: line 415
JS frame :: resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js :: process :: line 932
JS frame :: resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js :: walkerLoop :: line 813
JS frame :: resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js :: scheduleWalkerLoop/< :: line 747