org.symbian.tools.wrttools.previewer/src/org/symbian/tools/wrttools/previewer/preview/MozillaPreviewPage.java
changeset 88 aeba352033d2
parent 82 a11b7e8dc744
child 90 278f8e3868ff
equal deleted inserted replaced
85:c77287342938 88:aeba352033d2
    90 	private void bypassSameOriginPolicy() {
    90 	private void bypassSameOriginPolicy() {
    91 		WebAppInterface.getInstance();
    91 		WebAppInterface.getInstance();
    92 		try{
    92 		try{
    93 			nsIServiceManager servMgr = null;
    93 			nsIServiceManager servMgr = null;
    94 			try {
    94 			try {
    95 				Mozilla.getInstance().initialize(null);
       
    96 				servMgr = Mozilla.getInstance().getServiceManager();
    95 				servMgr = Mozilla.getInstance().getServiceManager();
    97 				if (servMgr == null) return;
    96 				if (servMgr == null) return;
    98 			} catch (Exception x) {
    97 			} catch (Exception x) {
    99 				PreviewerPlugin.log(x);
    98 				PreviewerPlugin.log(x);
   100 				// known to throw NullPointException on Mac OS when you're not using 
    99 				// known to throw NullPointException on Mac OS when you're not using