rem: var submission = ss.defaultEngine.getSubmission(searchTerm); 
add: var submission = ss.defaultEngine.getSubmission(searchTerm, null); 
context: function doSearch(searchTerm, cmdLine) {  var ss = Components.classes["@mozilla.org/browser/search-service;1"]                     .getService(nsIBrowserSearchService);  var submission = ss.defaultEngine.getSubmission(searchTerm);  // fill our nsISupportsArray with uri-as-wstring, null, null, postData  var sa = Components.classes["@mozilla.org/supports-array;1"]                     .createInstance(Components.interfaces.nsISupportsArray);  var wuri = Components.classes["@mozilla.org/supports-string;1"]                       .createInstance(Components.interfaces.nsISupportsString);  wuri.data = submission.uri.spec;  sa.AppendElement(wuri);  sa.AppendElement(null);  sa.AppendElement(null);  sa.AppendElement(submission.postData);  // XXXbsmedberg: use handURIToExistingBrowser to obey tabbed-browsing  // preferences, but need nsIBrowserDOMWindow extensions  var wwatch = Components.classes["@mozilla.org/embedcomp/window-watcher;1"]                         .getService(nsIWindowWatcher);  return wwatch.openWindow(null, nsBrowserContentHandler.chromeURL,                           "_blank",                           "chrome,dialog=no,all" +                             nsBrowserContentHandler.getFeatures(cmdLine),                           sa);}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/74b7c04bd273308d412387039dc82d6b79dfdd68/nsBrowserContentHandler.js/buggy/browser/components/nsBrowserContentHandler.js