Bug 748299 - Can't run PassIFox extension with Fedora's compile of Firefox
Summary: Can't run PassIFox extension with Fedora's compile of Firefox
Keywords:
Status: CLOSED CANTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: firefox
Version: 15
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Martin Stransky
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-10-24 01:40 UTC by anthonysepa
Modified: 2012-05-07 12:29 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-05-07 12:29:28 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description anthonysepa 2011-10-24 01:40:52 UTC
Description of problem:


Version-Release number of selected component (if applicable):


How reproducible:
Everytime.

Steps to Reproduce:
1. Install extension
2. Start Firefox
  
Actual results:
Bookmarks disappear, unable to open the add-ons page, firefox becomes unstable and I have to start it with add-ons disabled to uninstal the extension.

Expected results:
Addon should run and firefox should behave properly

Additional info:
I have been forced to use the compiled version provided by Mozilla to get the extension to work correctly. But this leaves me with lots of integration problems. I have tested this with 32 bit and 64 bit Firefox. Versions 6, 7.0, 7.0.1. In all versions the Mozilla compile works perfectly and the Fedora compile breaks.

Comment 1 Jan Horak 2012-03-29 14:38:07 UTC
Do you still encounter this problem? I'm unable to reproduce with Firefox 11.

Comment 2 anthonysepa 2012-03-29 17:45:20 UTC
Yes, I do. Sometimes the bookmarks will show up, but you can't open any bookmarks items. Sometimes you can open the items but the extension doesn't work. But always I can't open the add-ons page and I need to open the Firefox version from Mozilla and disable the extension to get the Fedora compile of Firefox to work properly. I just tried it with 11.0.

Comment 3 anthonysepa 2012-04-05 20:41:05 UTC
In was setting up my sons computer with a fresh install of Fedora and it does the same thing. That was a 32bit version of Fedora 16

Comment 4 Jan Horak 2012-04-06 10:57:33 UTC
By further investigation I found out PassIFox behave strangely sometimes. After installation installed extensions list is empty. Root of this problem seems to be in extension itself. I also tried official mozilla release for linux: 
ftp://ftp.mozilla.org/pub/firefox/releases/11.0/
and I've encounter same problems. I'll try to look into in further but since this seems to be extension problem we can't do much about it.

Comment 5 Ernest 2012-04-15 09:12:26 UTC
I have the same problem. I have freshly installed 32bit version of Fedora 16 and Firefox 11 from fedora repos doesn't work correctly with PassIFox. Official Mozilla build extracted from firefox-11.0.tar.bz2 works flawlessly.
Extension crashes Firefox shipped with fedora then "Rememeber passwords for sites" is checked in preferences. Are there any differences in certificates or anoter encryption stuff?

Comment 6 Ernest 2012-04-15 19:15:34 UTC
P.S. In order to get extension working just remove .mozilla from home directory and allow Mozilla's build to recreate it.

Comment 7 anthonysepa 2012-05-04 11:42:32 UTC
I've updated everything to Firefox 12 and some of the issues have been resolved but the extension still doesn't work on the Fedora build, it only works on the Mozilla build. To simplify this I'll go through the steps and the results.

Here is what I did:
1) Remove .mozilla directory;
2) Start Mozilla build Firefox;
3) Select don't import anything;
4) Install https://passifox.appspot.com/passifox.xpi;
5) Restart Firefox;
Doing the above gets me a message from PassIFox to connect with KeePass and after this the addon works flawlessly.

Doing the same thing only with the Fedora build:
1) Remove .mozilla directory;
2) Start Fedora build Firefox;
3) Select don't import anything;
4) Install https://passifox.appspot.com/passifox.xpi;
5) Restart Firefox;
Firefox starts and seems to function correctly, except the addon doesn't function. The only thing that I can see that works is that the addon has added the context menu item "Fill User & Pass" when right clicking a login input but selecting the item does nothing. The old issues with the addon page not opening and the bookmarks menu not functioning have disappeared.

Thanks.

Comment 8 Martin Stransky 2012-05-04 13:35:48 UTC
Do you see any errors in debug console in the fedora build? (tools -> web developer -> error console)

Comment 9 anthonysepa 2012-05-04 13:55:11 UTC
Yes, there are. I redid the steps from 1 to 5 from above with the Fedora build and here are all the errors I get.

After step 3:
Timestamp: 04/05/12 10:50:25 AM
Error: profiles is null
Source File: resource:///components/FirefoxProfileMigrator.js
Line: 372

After step 5:
Timestamp: 04/05/12 10:51:59 AM
Error: 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 :: <TOP_LEVEL> :: line 95"  data: no]

Timestamp: 04/05/12 10:51:59 AM
Error: uncaught exception: [Exception... "Component returned failure code: 0x80520012 (NS_ERROR_FILE_NOT_FOUND) [nsIXPCComponents_Utils.import]"  nsresult: "0x80520012 (NS_ERROR_FILE_NOT_FOUND)"  location: "JS frame :: resource://passifox/modules/KeePassFox.jsm :: <TOP_LEVEL> :: line 7"  data: no]

After going to my financial login website:
Timestamp: 04/05/12 10:53:22 AM
Error: 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 :: <TOP_LEVEL> :: line 95"  data: no]

Timestamp: 04/05/12 10:53:22 AM
Error: tipElement is null
Source File: chrome://browser/content/browser.js
Line: 6508

Timestamp: 04/05/12 10:53:23 AM
Error: 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 :: <TOP_LEVEL> :: line 95"  data: no]

After selecting "Fill User & Pass" from context menu:
Timestamp: 04/05/12 10:54:39 AM
Error: uncaught exception: [Exception... "Component returned failure code: 0x80570016 (NS_ERROR_XPC_GS_RETURNED_FAILURE) [nsIJSCID.getService]"  nsresult: "0x80570016 (NS_ERROR_XPC_GS_RETURNED_FAILURE)"  location: "JS frame :: resource://gre/modules/XPCOMUtils.jsm :: XPCU_serviceLambda :: line 232"  data: no]

Comment 10 anthonysepa 2012-05-04 13:58:31 UTC
I just checked and with the Mozilla build there are NO errors in the error console when doing steps 1 to 5 from the post above.

Comment 11 Martin Stransky 2012-05-07 08:28:15 UTC
Yes, you're right, I can reproduce it.

Comment 12 Martin Stransky 2012-05-07 09:38:09 UTC
Looks like the firefox/xulrunner split is a problem here.

Comment 13 anthonysepa 2012-05-07 12:24:08 UTC
From the debug information you had me provide I was able to find the solution. It seems that the extensions uses:
resource://gre/modules/services-crypto/WeaveCrypto.js

By changing it to use:
resource://services-crypto/WeaveCrypto.js

The plugin now works.

Thanks.

Comment 14 Martin Stransky 2012-05-07 12:29:28 UTC
Ahh, I see. Please report that to the extension authors then. Thanks!


Note You need to log in before you can comment on or make changes to this bug.