tag:blogger.com,1999:blog-62738186848314543062024-03-18T11:48:25.542+02:00cat **/*Akshaalhttp://www.blogger.com/profile/05677582369584740657noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-6273818684831454306.post-62216434609220577422009-11-26T14:27:00.003+02:002009-11-26T14:32:14.087+02:00Upgrade of FirefoxAfter apt-get dist-upgrade I got this "Could not initialize the browser's security component. The most likely cause is problems with files in your browser's profile directory. Please check that this directory has no read/write restrictions and your hard disk is not full or close to full. It is recommended that you exit the browser and fix the problem. If you continue to use this browser session, you might see incorrect browser behavior when accessing security features."<br /><br />I tried many possible solutions discovered in internet, but the only thing helped was removing of secmod.db file from my profile directory of firefox. I have no idea what this file is for, but it works. If you are having the same problem, backup your ~/.mozilla directory first before trying this or other solution which involves removing of files.Akshaalhttp://www.blogger.com/profile/05677582369584740657noreply@blogger.com0tag:blogger.com,1999:blog-6273818684831454306.post-45574568194997325712009-03-05T18:35:00.005+02:002009-03-05T18:50:16.141+02:00Cross-site requestIt is handy to test javascript snippets without uploading them on a production server. But it is hard to test AJAX request like that. The reason for it is that firefox doesn't allow a cross-site request for a sake of user's security.<pre>uncaught exception: Access to restricted URI denied (NS_ERROR_DOM_BAD_URI)</pre>But if you know what you are doing you can temporarley switch this behavior off. Open <b>about:config</b> page and set <b>signed.applets.codebase_principal_support</b> to <b>true</b>. Also your script must have the following line executed before any cross-site request:<pre>netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead");</pre><ad2></ad2>And don't forget to set <b>signed.applets.codebase_principal_support</b> to <b>false</b> value back and remove the line above from script when you have done with testing!!Akshaalhttp://www.blogger.com/profile/05677582369584740657noreply@blogger.com3