Re: [xul-interop] Error when opening the extensions manager from Xul app
Evgeny <[email protected]> Thu, 21 Oct 2010 20:00:19 +0400
| Newsgroups | gmane.comp.lang.xul.general |
|---|---|
| Message-ID | <[email protected]> |
--===============8292774186101264220== Content-Type: multipart/alternative; boundary=001485f7730e685a3a0493229f10 --001485f7730e685a3a0493229f10 Content-Type: text/plain; charset=ISO-8859-1 You can open file extensions.js and see line 2388 Find file toolkit.jar under your mozilla/chrome folder, unpack it and find file /content/mozapps/extensions/extensions.js I think the error occures on line if (!gInstalling && (gPendingActions || gPref.getBoolPref(PREF_EXTENSIONS_DSS_SWITCHPENDING))) where const PREF_EXTENSIONS_DSS_SWITCHPENDING = "extensions.dss.switchPending"; So, i think in your case gInstalling is false, so it checks by some reason an absent preference. Try to find out how this variable being set. On Thu, Oct 21, 2010 at 4:29 PM, Tom Brito <[email protected]> wrote: > When I open the extensions manager in my Xul app using: > > > app = "chrome://mozapps/content/extensions/extensions.xul"; > window.open(app,'Test','chrome, width=640, height=480').moveTo(0,0); > > I get the following error in the javascript console: > > Error: uncaught exception: [Exception... "Component returned failure code: > 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIPrefBranch2.getBoolPref]" nsresult: > "0x8000ffff (NS_ERROR_UNEXPECTED)" location: "JS frame :: > chrome://mozapps/content/extensions/extensions.js :: updateGlobalCommands :: > line 2388" data: no] > > Any idea what's this? > > ps. The extensions manager opens and works well, but I'm worried with this > error message. > > > * > Wellington B. de Carvalho > * > > > ------------------------------------------------------------------------------ > Nokia and AT&T present the 2010 Calling All Innovators-North America > contest > Create new apps & games for the Nokia N8 for consumers in U.S. and Canada > $10 million total in prizes - $4M cash, 500 devices, nearly $6M in > marketing > Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store > http://p.sf.net/sfu/nokia-dev2dev > _______________________________________________ > XUL News Wire - http://xulnews.com > XUL Job Postings - http://xuljobs.com > Open XUL Alliance - http://xulalliance.org > _______________________________________________ > xul-talk mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/xul-talk > > --001485f7730e685a3a0493229f10 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable <div>You can open file=A0<font face=3D"'courier new', monospace">ex= tensions.js and see line=A0</font><font face=3D"'courier new', mono= space">2388</font><br></div><div><font face=3D"'courier new', monos= pace">Find file toolkit.jar under your mozilla/chrome folder, unpack it and= find file<br> </font></div><div><font face=3D"'courier new', monospace">/content/= mozapps/extensions/extensions.js<br></font></div><div><font face=3D"'co= urier new', monospace">I think the error occures on line<br></font></di= v> <div><font face=3D"'courier new', monospace">if (!gInstalling &= & (gPendingActions || gPref.getBoolPref(PREF_EXTENSIONS_DSS_SWITCHPEND= ING)))</font><font face=3D"'courier new', monospace"><br></font></d= iv> <div><font face=3D"'courier new', monospace">where<br></font></div>= <div><font face=3D"'courier new', monospace">const PREF_EXTENSIONS_= DSS_SWITCHPENDING =3D "extensions.dss.switchPending";<br></fo= nt></div> <div><font face=3D"'courier new', monospace"><br></font></div><div>= <font face=3D"'courier new', monospace">So, i think in your case gI= nstalling is false, so it checks by some reason an absent preference.<br></= font></div> <div><font face=3D"'courier new', monospace">Try to find out how th= is variable being set.<br></font></div><div><font face=3D"'courier new&= #39;, monospace"><br></font></div><br><div class=3D"gmail_quote">On Thu, Oc= t 21, 2010 at 4:29 PM, Tom Brito <span dir=3D"ltr"><<a href=3D"http://br= ito.pro">brito.pro</a>@<a href=3D"http://gmail.com">gmail.com</a>></span= > wrote:<br> <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p= x #ccc solid;padding-left:1ex;">When I open the extensions manager in my Xu= l app using:<br><blockquote style=3D"margin:0 0 0 40px;border:none;padding:= 0px"> <span style=3D"font-size:14px;border-collapse:collapse;line-height:18px"><s= pan style=3D"border-collapse:separate;line-height:normal;font-size:small"><= font face=3D"'courier new', monospace"><br> app =3D "chrome://mozapps/content/extensions/extensions.xul";<br>= </font></span></span><font face=3D"'courier new', monospace">window= .open(app,'Test','chrome, width=3D640, height=3D480').moveT= o(0,0);<br> <br></font></blockquote>I get the following error in the javascript console= :<div><br><blockquote style=3D"margin:0 0 0 40px;border:none;padding:0px"><= font face=3D"'courier new', monospace">Error: uncaught exception: [= Exception... "Component returned failure code: 0x8000ffff (NS_ERROR_UN= EXPECTED) [nsIPrefBranch2.getBoolPref]" nsresult: "0x8000ffff (NS= _ERROR_UNEXPECTED)" location: "JS frame :: chrome://mozapps/conte= nt/extensions/extensions.js :: updateGlobalCommands :: line 2388" data= : no]<br> <br></font></blockquote>Any idea what's this?<br><br>ps. The extensions= manager opens and works well, but I'm worried with this error message.= <br><div><br></div><div><br></div><i><div style=3D"text-align:left"><span s= tyle=3D"font-style:normal"><i>Wellington B. de Carvalho</i></span></div> </i><br> </div> <br>-----------------------------------------------------------------------= -------<br> Nokia and AT&T present the 2010 Calling All Innovators-North America co= ntest<br> Create new apps & games for the Nokia N8 for consumers in =A0U.S. and C= anada<br> $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketin= g<br> Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store<br= > <a href=3D"http://p.sf.net/sfu/nokia-dev2dev" target=3D"_blank">http://p.sf= .net/sfu/nokia-dev2dev</a><br>_____________________________________________= __<br> XUL News Wire =A0 =A0 =A0- <a href=3D"http://xulnews.com" target=3D"_blank"= >http://xulnews.com</a><br> XUL Job Postings =A0 - <a href=3D"http://xuljobs.com" target=3D"_blank">htt= p://xuljobs.com</a><br> Open XUL Alliance - <a href=3D"http://xulalliance.org" target=3D"_blank">ht= tp://xulalliance.org</a><br> _______________________________________________<br> xul-talk mailing list<br> <a href=3D"mailto:[email protected]">[email protected]= e.net</a><br> <a href=3D"https://lists.sourceforge.net/lists/listinfo/xul-talk" target=3D= "_blank">https://lists.sourceforge.net/lists/listinfo/xul-talk</a><br> <br></blockquote></div><br> --001485f7730e685a3a0493229f10-- --===============8292774186101264220== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev --===============8292774186101264220== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ XUL News Wire - http://xulnews.com XUL Job Postings - http://xuljobs.com Open XUL Alliance - http://xulalliance.org _______________________________________________ xul-talk mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/xul-talk --===============8292774186101264220==--