rem: gLinksBeingChecked[gNumLinksToCheck].asyncCheckURI(uri, gRequestObserver, null, Components.interfaces.nsIRequest.LOAD_NORMAL); 
add:  gLinksBeingChecked[gNumLinksToCheck].init(GetIOService().newURI(uri, null, null)); gLinksBeingChecked[gNumLinksToCheck].asyncCheck(gRequestObserver, null); 
context: function Startup(){  var editor = GetCurrentEditor();  if (!editor)  {    window.close();    return;  }  // Get all objects that refer to other locations  var objects;  try {    objects = editor.getLinkedObjects();  } catch (e) {}  if (!objects || objects.Count() == 0)  {    AlertWithTitle(GetString("Alert"), GetString("NoLinksToCheck"));    window.close();    return;  }  gDialog.LinksList = document.getElementById("LinksList");  gDialog.Close     = document.documentElement.getButton("cancel");  // Set window location relative to parent window (based on persisted attributes)  SetWindowLocation();  // Loop over the nodes that have links:  for (var i = 0; i < objects.Count(); i++)  {    var refobj = objects.GetElementAt(gNumLinksToCheck).QueryInterface(Components.interfaces.nsIURIRefObject);    // Loop over the links in this node:    if (refobj)    {      try {        var uri;        while ((uri = refobj.GetNextURI()))        {          // Use the real class in netlib:          // Note that there may be more than one link per refobj          gURIRefObjects[gNumLinksToCheck] = refobj;          // Make a new nsIURIChecker          gLinksBeingChecked[gNumLinksToCheck]            = Components.classes["@mozilla.org/network/urichecker;1"]                .createInstance()                  .QueryInterface(Components.interfaces.nsIURIChecker);          gLinksBeingChecked[gNumLinksToCheck].asyncCheckURI(uri, gRequestObserver, null,							     Components.interfaces.nsIRequest.LOAD_NORMAL);          // Add item            var linkChecker = gLinksBeingChecked[gNumLinksToCheck].QueryInterface(Components.interfaces.nsIURIChecker);          SetItemStatus(linkChecker.name, "busy");dump(" *** Linkcount = "+gNumLinksToCheck+"\n");          gNumLinksToCheck++;        };      } catch (e) { dump (" *** EXCEPTION\n");}    }  }  // Done with the loop, now we can be prepared for the finish:  gStartedAllChecks = true;  // Start timer to limit how long we wait for link checking  gLinkCheckTimerID = setTimeout("LinkCheckTimeOut()", 5000);  window.sizeToContent();}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/582bc3f22cb265ad001b3bfed757187347849f02/EdLinkChecker.js/clean/editor/ui/dialogs/content/EdLinkChecker.js