rem: notifyPolicyLocation : function (aLocation, aError) 
add: notifyPolicyLocation : function (aLocation, aError) 
context:   notifyPolicyLocation : function (aLocation, aError)   {    if (aError == nsIPolicyReference.POLICY_LOAD_SUCCESS) {     if (!this.mPolicyURL) {       this.mPolicyURL = gIOService.newURI(aLocation, null, null).QueryInterface(nsIURL);     }     else {       this.mPolicyURL.spec = aLocation;     }            // We have located the full p3p policy location from      // the policy reference file. Now let's try to load full p3p      // policy document.      if (!this.mXMLHttpRequest) {        this.mXMLHttpRequest = new XMLHttpRequest();      }            // If a fragment identifier is specified then we have to locate      // the POLICY with a name specified by the fragment.      // Ex. <POLICY name="one"> .... </POLICY> <POLICY name="two"> ...</POLICY>      // if the fragment identifier is "#two" then we should find the POLICY named "two"      this.mFragment = this.mPolicyURL.ref;      // If we've already loaded a full p3p policy then the policy       // document should be available ( note: Only for the same host's URIs ).      if (this.mFlag & nsIPolicyReference.IS_MAIN_URI) {        if (this.mDocument) {          if (this.mPolicyLocation.match(aLocation)) {            this.handleEvent(null);            return;          }          this.mFlag &= ~nsIPolicyReference.IS_MAIN_URI;        }        else {          if (this.mMainURI.spec.match(this.mSelectedURI.spec)) {            this.mPolicyLocation = aLocation;          }          else {            this.mFlag &= ~nsIPolicyReference.IS_MAIN_URI;          }        }      }      this.mXMLHttpRequest.onload = this;      // Override the mime type because without it XMLHttpRequest hangs       // on certain sites that serve HTML instead ofXML.      this.mXMLHttpRequest.overrideMimeType("text/xml");      this.mXMLHttpRequest.open("GET", aLocation);      this.mXMLHttpRequest.send(null);    }    else if (this.mFlag & nsIPolicyReference.IS_MAIN_URI) {      // Weren't able to locate the full p3p policy via PRF?      // Let's see if the policy location is referenced via the      // current document's link tag.      var links  = gTopDoc.getElementsByTagName("LINK");      var length = links.length;      for (index = 0; index < length; index++) {        var node = links[index];        if (node.getAttribute("rel") == "P3Pv1") {          try {            if (!this.mLinkedURI) {              this.mLinkedURI = gIOService.newURI(node.href, null, null);            }            else {              this.mLinkedURI.spec = node.href;            }            // Yay!, we have found the policy location no need to search the other link tags.            this.handleURI(this.mLinkedURI, this.mFlag = nsIPolicyReference.IS_LINKED_URI);            return;          }          catch (ex) {            // fall through to report error.          }        }      }      this.reportError(this.mAction);    }    else {         this.reportError(this.mAction);    }  },
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/55a5e5ddbf4a7e9103b995d808c4466085d2123f/nsPolicyViewer.js/buggy/extensions/p3p/resources/content/nsPolicyViewer.js