sailfishos/sailfish-browser

JavaScript error TypeError: XPCOMUtils.generateNSGetFactory is not a function

Closed this issue · 1 comments

Running the browser the following error can be seen in the debug output when running with EMBED_CONSOLE=1:

JavaScript Error: "TypeError: XPCOMUtils.generateNSGetFactory is not a function"
    {file: "file:///usr/lib64/mozembedlite/components/EmbedLiteGlobalHelper.js" line: 108}

Fixed by the following commit: llewelld/embedlite-components@0bf2601

This makes three changes:

  1. Use ComponentUtils.generateNSGetFactory() instead of XPCOMUtils.generateNSGetFactory().
  2. Remove call to ActorManagerParent.flush(). See upstream change D95206.
  3. Use L10nRegistry.registerSources() instead of L10nRegistry.registerSource(). See upstream change D81243.