rem: var docshell  = getBrowser().docShell.QueryInterface(nsIDocShell); var service   = Components.classes["@mozilla.org/p3p/p3pservice;1"].getService(nsIP3PService); 
add: var docshell  = getSummaryBrowser().docShell.QueryInterface(nsIDocShell); 
context: function renderMachineReadable(){  var xsltp     = window.arguments[0];  var source    = window.arguments[1];  var style     = window.arguments[2];  var policyuri = window.arguments[3];  var result    = getBrowser().contentDocument;  try {    var docshell  = getBrowser().docShell.QueryInterface(nsIDocShell);    var service   = Components.classes["@mozilla.org/p3p/p3pservice;1"].getService(nsIP3PService);        // For browser security do not allow javascript on the transformed document.    docshell.allowJavascript = false;         // Set the policy url on the result document ( fabricated ) where    // the transformation would result. Also, set the policy uri on the    // docshell for named anchors to work correctly.    docshell.setCurrentURI(policyuri);    service.setDocumentURL(result, policyuri);        xsltp.transformDocument(source, style, result, null);    window.title = result.getElementById("topic").firstChild.nodeValue;  }  catch (ex) {    alertMessage(getBundle().GetStringFromName("InternalError"));  }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/2355d9abb89b054186ee4455cc602ed87803fea8/p3pSummary.js/clean/extensions/p3p/resources/content/p3pSummary.js