rem: XPAppCoresManager.Find( coreName ).loadUrl(url); 
add: appCore.loadUrl(url); 
context:   function StartupViewSource() {    // Generate unique name.    coreName = "ViewSource." + ( new Date() ).getTime().toString();        // Create and initialize the browser app core.    appCore = new BrowserAppCore();    appCore.Init( coreName );    appCore.setContentWindow(window.frames[0]);    appCore.setWebShellWindow(window);    appCore.setToolbarWindow(window);        // Get url whose source to view.    var url = document.getElementById("args").getAttribute("value");    // Load the source (the app core will magically know what to do).    XPAppCoresManager.Find( coreName ).loadUrl(url);  }
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/dbcd4010aaabcca925992dd93ccd84c2b1a256b0/viewsource.js/buggy/xpfe/browser/src/viewsource.js