[Project_owners] Error reading preferences

eric.jung at yahoo.com eric.jung at yahoo.com
Wed Apr 25 18:13:17 PDT 2007


I threw together a quick mirror of it here:
http://developer.mozilla.org/en/docs/Code_snippets:Signing_a_XPI



----- Original Message ----
From: "eric.jung at yahoo.com" <eric.jung at yahoo.com>
To: Mozdev Project Owners List <project_owners at mozdev.org>
Sent: Wednesday, April 25, 2007 7:13:13 PM
Subject: Re: [Project_owners] Error reading preferences

You can see a cached version of the page here:
http://web.archive.org/web/20060529005859/forums.tjworld.net/viewtopic.php?p=210
I'll see if I can mirror this at developer.mozilla.org so it doesn't get lost in the ether.



----- Original Message ----
From: Onno Ekker <o.e.ekker at gmail.com>
To: Mozdev Project Owners List <project_owners at mozdev.org>
Sent: Wednesday, April 25, 2007 3:49:54 PM
Subject: Re: [Project_owners] Error reading preferences

Yes, the code is running inside an extension.
Too bad the specifications for windows
 didn't work for you and the site forums.tjworld.net doesn't respond at the moment.

Let's hope the first how-to also works for cygwin.
And that I can test drive the whole thing before having to buy a real certificate from a CA.
Otherwise I think I'll drop the whole plan of making the extension configurable...

Could someone please tell me what NSS stand for? 

On 4/25/07, eric.jung at yahoo.com <
eric.jung at yahoo.com> wrote:
Is this code running inside an extension? If so, you'll have to sign the entire extension--not just a piece of javascript. The best "how to" on extension signing is by Pete:


https://www.mozdevgroup.com/docs/pete/Signing-an-XPI.html
with more detail, especially for Windows at:

http://forums.tjworld.net/viewtopic.php?p=210

I've been through the latter directions and never was able to get it work, even after getting a code-signing cert from 
Unizeto Certum.



----- Original Message ----
From: Onno Ekker <o.e.ekker at gmail.com>

To: Mozdev Project Owners List <project_owners at mozdev.org>
Sent: Wednesday, April 25, 2007 11:27:36 AM

Subject: Re: [Project_owners] Error reading preferences

Yup, I noticed that too... That's because I typed in the mail without
having the source at hand, so no copy/paste.
In the source there is a " after errorfox..


I think the problem is cause by the way error pages are handled: the
original uri stays in the location bar, so Firefox will probably think
that the javascript is executed from that location and therefore won't

allow access to user preferences.
If that's the case it might help to sign the javacode, because signed
javacode should always be able to read preferences. I think.
Haven't ever signed java code before, so have to see if I can figure out

how to do that (probably not with my pgp-key),
 how I can test it, and
how I can package and distribute it when it's final...


On 25-4-2007 11:57, Arturo 'Buanzo' Busleiman wrote:
> Onno Ekker wrote:
> >     .getService(Components.interfaces.nsIPrefService
)|
> >     |                      .getBranch("extensions.errorfox.);|
>
> there's a " missing after errorfox..
>











_______________________________________________
Project_owners mailing list
Project_owners at mozdev.org
http://mozdev.org/mailman/listinfo/project_owners





_______________________________________________
Project_owners mailing list
Project_owners at mozdev.org
http://mozdev.org/mailman/listinfo/project_owners




-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mozdev.org/pipermail/project_owners/attachments/20070425/647c6e09/attachment.html 


More information about the Project_owners mailing list