function StartUp() { dump("Doing Startup...\n"); appCore = XPAppCoresManager.Find("BrowserAppCore"); dump("Looking up BrowserAppCore...\n"); if (appCore == null) { dump("Creating BrowserAppCore...\n"); appCore = new BrowserAppCore(); if (appCore != null) { dump("BrowserAppCore has been created.\n"); appCore.Init("BrowserAppCore"); appCore.setToolbarWindow(window); appCore.setContentWindow(window.parent.frames[1]); appCore.setWebShellWindow(window.parent); appCore.setDisableCallback("DoDisableButtons();"); appCore.setEnableCallback("DoEnableButtons();"); dump("Adding BrowserAppCore to AppCoreManager...\n"); XPAppCoresManager.Add(appCore); } } else { dump("BrowserAppCore has already been created! Why?\n"); } } function DoDisableButtons() { // Find buttons in the UI and disable them dump("Browser disabling buttons\n"); } function DoEnableButtons() { // Find buttons in the UI and enable them dump("Browser enabling buttons\n"); } function BrowserBack() { appCore = XPAppCoresManager.Find("BrowserAppCore"); if (appCore != null) { dump("Going Back\n"); appCore.back(); } else { dump("BrowserAppCore has not been created!\n"); } } function BrowserForward() { appCore = XPAppCoresManager.Find("BrowserAppCore"); if (appCore != null) { dump("Going Forward\n"); appCore.forward(); } else { dump("BrowserAppCore has not been created!\n"); } } function BrowserNewWindow() { appCore = XPAppCoresManager.Find("BrowserAppCore"); if (appCore != null) { dump("Opening New Window\n"); appCore.newWindow(); } else { dump("BrowserAppCore has not been created!\n"); } } function BrowserPrintPreview() { dump("BrowserPrintPreview\n"); } function BrowserClose() { dump("BrowserClose\n"); } function BrowserExit() { appCore = XPAppCoresManager.Find("BrowserAppCore"); if (appCore != null) { dump("Exiting\n"); appCore.exit(); } else { dump("BrowserAppCore has not been created!\n"); } } Back Forward Reload Stop Home Print Bookmarks What's Related Mozilla.org Mozilla.org Mozilla.org