injecting javascript

2008-05-05 Thread Grant Gayed
Hi, To execute a javascript string in a displayed .html page our embedding app uses nsIWebNavigation.LoadURI(...) to navigate to "javascript://;void(0);". This works generally well, but has problems with javascript strings that are read from a multi-line source and therefore may contain content l

Preferences Ignored by WindowWatcher.openWindow?

2008-05-05 Thread Christopher Rued
Hi All, Using the JavaXPCOM interfaces, I'm getting preferences using the following: nsIServiceManager sm = moz.getServiceManager(); nsIPrefService ps = (nsIPrefService)sm.getServiceByContractID( "@mozilla.org/preferences-service;1",