pfn/passifox — Issue #74: PassIFox does not work on Iceweasel
Author: leonardo0014
Created: 2012-02-12 08:32:00+00:00
State: open

I tried to use PassIFox on Debian 7.0 (Wheezy)
PassIFox 1.1.2 and 1.1.4 does not show the initial connect button on iceweasel 9.0.1. The Errorconsole (CTRL+SHIFT+J) shows the Error: Fehler: uncaught exception: [Exception... "Component returned failure code: 0x80570015 (NS_ERROR_XPC_CI_RETURNED_FAILURE) [nsIJSCID.createInstance]" nsresult: "0x80570015 (NS_ERROR_XPC_CI_RETURNED_FAILURE)" location: "JS frame :: resource:///components/nsLoginManager.js :: :: line 95" data: no]

I tried an fork from http://us.generation-nt.com/answer/bug-637827-iceweasel-exceptions-nsloginmanager-js-help-204443051.html
---------------------------------------------------------------------------------------------------------
...
It very much seems that error message is not entirely the cause, and that it happens when the extension is registered before sync or something like that, and more importantly, stays when switching from iceweasel to firefox.

Anyways, the real problem is that modules/KeePassFox.jsm imports an uri that somehow works on firefox, but is not meant to be used:
resource://gre/modules/services-cry...eCrypto.js
It must use:
resource://services-crypto/WeaveCrypto.js
instead.
...
---------------------------------------------------------------------------------------------------------

The Plugin works properly with "Cu.import("resource://services-crypto/WeaveCrypto.js");" in the KeePassFox.jsm.
Please correct the ressource String in your Plugin also.

Thanks