Moving files from browser/src to resources/content

Changed xul.css to chrome://global/skin


git-svn-id: svn://10.0.0.236/trunk@39218 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
matt%netscape.com 1999-07-14 00:03:57 +00:00
parent 7da7f44f03
commit 3928bbdfd9
19 changed files with 882 additions and 489 deletions

View File

@ -21,6 +21,7 @@
var appCoreName = "";
var defaultStatus = "default status text";
var debugSecurity = false; // Set this true to enable Security chrome testing.
var explicitURL = false;
function Startup()
{
@ -37,6 +38,15 @@
}
}
function Shutdown() {
// Close the app core.
if ( appCore ) {
appCore.close();
// Remove app core from app core manager.
XPAppCoresManager.Remove( appCore );
}
}
function onLoadWithArgs() {
// See if Startup has been run.
if ( appCore ) {
@ -50,59 +60,73 @@
} else {
// onLoad handler timing is not correct yet.
dump( "onLoadWithArgs not needed yet\n" );
// Remember that we want this url.
explicitURL = true;
}
}
function tryToSetContentWindow() {
if ( window.frames[0].frames[1] ) {
if ( window.content ) {
dump("Setting content window\n");
appCore.setContentWindow( window.frames[0].frames[1] );
appCore.setContentWindow( window.content );
// Have browser app core load appropriate initial page.
var pref = Components.classes['component://netscape/preferences'];
// if all else fails, use trusty "about:" as the start page
var startpage = "about:";
if (pref) {
pref = pref.getService();
if ( !explicitURL ) {
var pref = Components.classes['component://netscape/preferences'];
dump("Components = " + Components + "\n");
dump("Components.classes = " + Components.classes + "\n");
dump("Components.classes[component://netscape/preferences] = " + pref + "\n");
// if all else fails, use trusty "about:blank" as the start page
var startpage = "about:blank";
if (pref) {
pref = pref.getService();
}
else {
dump("failed to get component://netscape/preferences\n");
}
if (pref) {
pref = pref.QueryInterface(Components.interfaces.nsIPref);
}
else {
dump("failed to get pref service\n");
}
if (pref) {
// from mozilla/modules/libpref/src/init/all.js
// 0 = blank
// 1 = home (browser.startup.homepage)
// 2 = last
choice = pref.GetIntPref("browser.startup.page");
dump("browser.startup.page = " + choice + "\n");
switch (choice) {
case 0:
startpage = "about:blank";
break;
case 1:
startpage = pref.CopyCharPref("browser.startup.homepage");
break;
case 2:
var history = Components.classes['component://netscape/browser/global-history'];
if (history) {
history = history.getService();
}
if (history) {
history = history.QueryInterface(Components.interfaces.nsIGlobalHistory);
}
if (history) {
startpage = history.GetLastPageVisted();
}
break;
default:
startpage = "about:blank";
}
}
else {
dump("failed to QI pref service\n");
}
dump("startpage = " + startpage + "\n");
document.getElementById("args").setAttribute("value", startpage);
}
if (pref) {
pref = pref.QueryInterface(Components.interfaces.nsIPref);
}
if (pref) {
// from mozilla/modules/libpref/src/init/all.js
// 0 = blank
// 1 = home (browser.startup.homepage)
// 2 = last
// 3 = splash (browser.startup.splash)
choice = pref.GetIntPref("browser.startup.page");
switch (choice) {
case 0:
startpage = "about:blank";
break;
case 1:
startpage = pref.CopyCharPref("browser.startup.homepage");
break;
case 2:
var history = Components.classes['component://netscape/browser/global-history'];
if (history) {
history = history.getService();
}
if (history) {
history = history.QueryInterface(Components.interfaces.nsIGlobalHistory);
}
if (history) {
startpage = history.GetLastPageVisted();
}
break;
case 3:
startpage = pref.CopyCharPref("browser.startup.splash");
break;
default:
startpage = "about:";
}
}
document.getElementById("args").setAttribute("value", startpage);
appCore.loadInitialPage();
} else {
// Try again.
@ -117,16 +141,17 @@
service += "?AlisSourceLang=" + src;
service += "&AlisTargetLang=" + dest;
service += "&AlisMTEngine=SSI";
service += "&AlisTargetURI=" + window.frames[0].frames[1].location.href;
window.frames[0].frames[1].location.href = service;
service += "&AlisTargetURI=" + window.content.location.href;
window.content.location.href = service;
}
function RefreshUrlbar()
{
//Refresh the urlbar bar
document.getElementById('urlbar').value = window.frames[0].frames[1].location.href;
document.getElementById('urlbar').value = window.content.location.href;
}
function BrowserBack()
{
// Get a handle to the back-button
@ -143,6 +168,7 @@
}
}
function BrowserForward()
{
// Get a handle to the back-button
@ -159,20 +185,21 @@
}
}
function BrowserSetForward()
{
var forwardBElem = document.getElementById("canGoForward");
if (!forwardBElem) {
dump("Couldn't obtain handle to forward Broarcast element\n");
return;
}
dump("Couldn't obtain handle to forward Broarcast element\n");
return;
}
var canForward = forwardBElem.getAttribute("disabled");
var fb = document.getElementById("forward-button");
if (!fb) {
dump("Could not obtain handle to forward button\n");
return;
dump("Could not obtain handle to forward button\n");
return;
}
// Enable/Disable the Forward button
@ -195,10 +222,8 @@
fm.setAttribute("disabled", "true");
}
else {
dump("Setting forward menu item enabled\n");
fm.setAttribute("disabled", "");
}
}
}
function BrowserCanStop() {
@ -213,6 +238,15 @@
stopButton.setAttribute( "disabled", "" );
}
}
//Enable/disable the stop menu item
var stopMenu = document.getElementById( "menuitem-stop" );
if ( stopMenu ) {
if ( stopDisabled == "true") {
stopMenu.setAttribute( "disabled", "true" );
} else {
stopMenu.setAttribute( "disabled", "" );
}
}
}
}
@ -222,14 +256,14 @@
if (!stopBElem) {
dump("Couldn't obtain handle to stop Broadcast element\n");
return;
}
}
var canStop = stopBElem.getAttribute("disabled");
var sb = document.getElementById("stop-button");
if (!sb) {
dump("Could not obtain handle to stop button\n");
return;
dump("Could not obtain handle to stop button\n");
return;
}
// If the stop button is currently disabled, just return
@ -262,16 +296,16 @@
{
var backBElem = document.getElementById("canGoBack");
if (!backBElem) {
dump("Couldn't obtain handle to back Broadcast element\n");
return;
}
dump("Couldn't obtain handle to back Broadcast element\n");
return;
}
var canBack = backBElem.getAttribute("disabled");
var bb = document.getElementById("back-button");
if (!bb) {
dump("Could not obtain handle to back button\n");
return;
dump("Could not obtain handle to back button\n");
return;
}
// Enable/Disable the Back button
@ -294,16 +328,85 @@
bm.setAttribute("disabled", "true");
}
else {
dump("Setting Back menuitem to enabled\n");
bm.setAttribute("disabled", "");
}
}
}
function BrowserSetReload() {
var reload = document.getElementById("canReload");
if ( reload ) {
var reloadDisabled = reload.getAttribute("disabled");
//Enable/disable the reload button
var reloadButton = document.getElementById( "reload-button" );
if ( reloadButton ) {
if ( reloadDisabled == "true") {
reloadButton.setAttribute( "disabled", "true" );
} else {
reloadButton.setAttribute( "disabled", "" );
}
}
//Enable/disable the reload menu
var reloadMenu = document.getElementById("menuitem-reload");
if ( reloadMenu ) {
if ( reloadDisabled == "true") {
reloadMenu.setAttribute( "disabled", "true" );
} else {
reloadMenu.setAttribute( "disabled", "" );
}
}
}
}
function BrowserReallyReload(reloadType) {
// Get a handle to the "canReload" broadcast id
var reloadBElem = document.getElementById("canReload");
if (!reloadBElem) {
dump("Couldn't obtain handle to reload Broadcast element\n");
return;
}
var canreload = reloadBElem.getAttribute("disabled");
var sb = document.getElementById("reload-button");
if (!sb) {
dump("Could not obtain handle to reload button\n");
return;
}
// If the reload button is currently disabled, just return
if ((sb.getAttribute("disabled")) == "true") {
return;
}
//reload button has just been pressed. Disable it.
sb.setAttribute("disabled", "true");
// Get a handle to the reload menu item.
var sm = document.getElementById("menuitem-reload");
if (!sm) {
dump("Couldn't obtain menu item reload\n");
} else {
// Disable the reload menu-item.
sm.setAttribute("disabled", "true");
}
//Call in to BrowserAppcore to reload the current loading
if (appCore != null) {
dump("Going to reload\n");
appCore.reload(reloadType);
} else {
dump("BrowserAppCore has not been created!\n");
}
}
function BrowserHome()
{
window.frames[0].frames[1].home();
window.content.home();
RefreshUrlbar();
}
@ -319,7 +422,7 @@
return false;
}
window.frames[0].frames[1].location.href = url;
window.content.location.href = url;
RefreshUrlbar();
}
@ -343,7 +446,7 @@
}
}
if ( core ) {
core.ShowWindowWithArgs( "chrome://editor/content", window, "chrome://editor/content/EditorInitPage.html" );
core.ShowWindowWithArgs( "chrome://editor/content", window, "resource:/res/html/empty_doc.html" );
} else {
dump("Error; can't create toolkitCore\n");
}
@ -391,12 +494,12 @@
}
}
if ( core ) {
//core.ShowWindowWithArgs( "chrome:/navigator/content/openLocation.xul", window, appCoreName );
//core.ShowWindowWithArgs( "resource:/res/samples/openLocation.xul", window, appCoreName );
var name = appCoreName.replace( /\./, /\_/ );
// Note: Use width/height one less than actual so resizing occurs.
// This bypasses bug whereby dialog contents don't appear
// till the dialog is resized.
window.openDialog( "chrome:/navigator/chrome/openLocation.xul", name+"_openLocation", "chrome,width=419,height=189", appCoreName );
window.openDialog( "chrome://navigator/content/openLocation.xul", name+"_openLocation", "chrome,width=419,height=189", appCoreName );
} else {
dump("Error; can't create toolkitCore\n");
}
@ -490,7 +593,7 @@
{
if (appCore != null) {
appCore.SetDocumentCharset(aCharset);
window.frames[0].frames[1].location.reload();
window.content.location.reload();
} else {
dump("BrowserAppCore has not been created!\n");
}
@ -585,7 +688,7 @@
{
if (appCore != null) {
dump("Wallet Safe Fillin\n");
appCore.walletPreview(window, window.frames[0].frames[1]);
appCore.walletPreview(window, window.content);
} else {
dump("BrowserAppCore has not been created!\n");
}
@ -606,7 +709,7 @@
{
if (appCore != null) {
dump("Wallet Quick Fillin\n");
appCore.walletQuickFillin(window.frames[0].frames[1]);
appCore.walletQuickFillin(window.content);
} else {
dump("BrowserAppCore has not been created!\n");
}
@ -644,32 +747,12 @@
function OpenMessenger()
{
var toolkitCore = XPAppCoresManager.Find("ToolkitCore");
if (!toolkitCore) {
toolkitCore = new ToolkitCore();
if (toolkitCore) {
toolkitCore.Init("ToolkitCore");
}
}
if (toolkitCore) {
toolkitCore.ShowWindow("chrome://messenger/content/",
window);
}
window.open("chrome://messenger/content/", "_new", "chrome");
}
function OpenAddressbook()
{
var toolkitCore = XPAppCoresManager.Find("ToolkitCore");
if (!toolkitCore) {
toolkitCore = new ToolkitCore();
if (toolkitCore) {
toolkitCore.Init("ToolkitCore");
}
}
if (toolkitCore) {
toolkitCore.ShowWindow("chrome://addressbook/content/",
window);
}
window.open("chrome://addressbook/content/", "_new", "chrome");
}
function MsgNewMessage()
@ -682,8 +765,8 @@
}
}
if (toolkitCore) {
toolkitCore.ShowWindow("chrome://messengercompose/content/",
window);
// We need to use ShowWindowWithArgs because message compose depend on callback
toolkitCore.ShowWindowWithArgs("chrome://messengercompose/content/", window, "");
}
}
@ -706,9 +789,9 @@
}
}
if (toolkitCore) {
var url = window.frames[0].frames[1].location;
var url = window.content.location;
dump("Opening view of source for" + url + "\n");
toolkitCore.ShowWindowWithArgs("chrome:/navigator/content/viewSource.xul", window, url);
toolkitCore.ShowWindowWithArgs("chrome://navigator/content/viewSource.xul", window, url);
}
}
@ -783,16 +866,17 @@
var meter = document.getElementById("Browser:LoadingProgress");
if ( throbber && meter ) {
var busy = throbber.getAttribute("busy");
var wasBusy = meter.getAttribute("mode") == "undetermined" ? "true" : "false";
if ( busy == "true" ) {
mode = "undetermined";
if ( !startTime ) {
startTime = (new Date()).getTime();
}
} else {
mode = "normal";
}
meter.setAttribute("mode",mode);
if ( mode == "normal" ) {
if ( wasBusy == "false" ) {
// Remember when loading commenced.
startTime = (new Date()).getTime();
// Turn progress meter on.
meter.setAttribute("mode","undetermined");
}
// Update status bar.
} else if ( busy == "false" && wasBusy == "true" ) {
// Record page loading time.
var status = document.getElementById("Browser:Status");
if ( status ) {
var elapsed = ( (new Date()).getTime() - startTime ) / 1000;
@ -801,7 +885,8 @@
status.setAttribute("value",msg);
defaultStatus = msg;
}
startTime = 0;
// Turn progress meter off.
meter.setAttribute("mode","normal");
}
}
}

View File

@ -1,5 +1,27 @@
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/xul.css" type="text/css"?>
<!-- The contents of this file are subject to the Netscape Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/NPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is Mozilla Communicator client code, released
March 31, 1998.
The Initial Developer of the Original Code is Netscape
Communications Corporation. Portions created by Netscape are
Copyright (C) 1998-1999 Netscape Communications Corporation. All
Rights Reserved.
Contributor(s): ______________________________________. -->
<?xml-stylesheet href="chrome:/global/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://navigator/skin/" type="text/css"?>
<!DOCTYPE window
@ -12,19 +34,18 @@
<!ENTITY browserCmd.label "New Browser Window">
<!ENTITY newMenu.label "New">
<!ENTITY newMailCmd.label "Mail Message">
<!ENTITY newChatCmd.label "Chat Window">
<!ENTITY newBlankPageCmd.label "Blank Window">
<!ENTITY newPageFromTemplateCmd.label "Page Using Template">
<!ENTITY newPageFromDraftCmd.label "Page using Draft">
<!ENTITY openCmd.label "Open">
<!ENTITY openCmd.label "Open File or Location...">
<!ENTITY sendPageCmd.label "Send Page">
<!ENTITY editPageCmd.label "Edit Page">
<!ENTITY offlineMenu.label "Offline">
<!ENTITY offlineGoOfflineCmd.label "Go Offline">
<!ENTITY offlineSynchronizeCmd.label "Synchronize">
<!ENTITY printSetupCmd.label "Print Setup">
<!ENTITY printSetupCmd.label "Print Setup...">
<!ENTITY printPreviewCmd.label "Print Preview">
<!ENTITY printCmd.label "Print">
<!ENTITY printCmd.label "Print...">
<!ENTITY closeCmd.label "Close">
<!ENTITY quitCmd.label "Quit">
<!ENTITY editMenu.label "Edit">
@ -43,7 +64,7 @@
<!ENTITY walletSamplesCmd.label "Samples">
<!ENTITY walletChangePasswordCmd.label "Change Password">
<!ENTITY selectAllCmd.label "Select All">
<!ENTITY preferences.label "Preferences">
<!ENTITY preferences.label "Preferences...">
<!ENTITY viewMenu.label "View">
<!ENTITY toolbarsCmd.label "Toolbars">
<!ENTITY sidebarCmd.label "Sidebar">
@ -150,8 +171,6 @@
<!ENTITY editorCmd.label "Editor">
<!ENTITY textEditorCmd.label "Plaintext Editor">
<!ENTITY manageHistoryCmd.label "Manage History">
<!ENTITY chatCmd.label "Chat">
<!ENTITY shoppingCartCmd.label "Shopping Cart">
<!ENTITY toolsMenu.label "Tools">
<!ENTITY toolsPluginsInfoCmd.label "Plugins Info">
<!ENTITY toolsJavaConsoleCmd.label "Java/JS Console">
@ -168,6 +187,10 @@
<!ENTITY aboutCommunicatorCmd.label "About Communicator Prototype">
<!ENTITY debugMenu.label "Debug">
<!ENTITY debugQA.label "QA Help">
<!ENTITY debugQABug.label "QA Help">
<!ENTITY debugQASmoke.label "Smoke Tests">
<!ENTITY debugQAKnowBug.label "Known Bugs">
<!ENTITY debugVerCmd.label "Verification">
<!ENTITY ver1Cmd.label "Mozilla">
<!ENTITY ver2Cmd.label "Yahoo">
@ -223,6 +246,13 @@
<!ENTITY xptk6Cmd.label "Tab">
<!ENTITY xptk7Cmd.label "Beep">
<!ENTITY QA.label "QA">
<!ENTITY QABugCmd.label "Bug Writing">
<!ENTITY QATempCmd.label "Bug Template">
<!ENTITY QASmokeCmd.label "Smoke Tests">
<!ENTITY QAKnownBugCmd.label "Known Bugs">
<!-- Toolbar items -->
<!ENTITY backButton.label "Back">
<!ENTITY forwardButton.label "Forward">
@ -239,13 +269,12 @@
<!-- Statusbar -->
<!ENTITY notifCom.label "[Notification Component]">
<!ENTITY statusText.label "Document: Done">
<!ENTITY buildId.label "Build ID: 1999061816">
<!ENTITY buildId.label "Build ID: 1999070614">
<!ENTITY security-button.label "Secure Conn">
<!-- taskbar -->
<!ENTITY webButton.label "Web">
<!ENTITY mailButton.label "Mail">
<!ENTITY chatButton.label "Chat">
<!ENTITY dayplannerButton.label "DayPlanner">
<!ENTITY shoppingButton.label "Shopping">
<!ENTITY myDeskButton.label "My Desk">
@ -257,15 +286,19 @@
]>
<window id="main-window" xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
onload="Startup()"
onunload="if (appCore) appCore.close()"
onunload="Shutdown()"
title="&mainWindow.title;" titlemodifier="&mainWindow.titlemodifier;"
titleseperator ="&mainWindow.titlemodifierseperator;" windowtype="navigator:browser">
titleseperator ="&mainWindow.titlemodifierseperator;" windowtype="navigator:browser"
align="vertical" width="640" height="480">
<html:script language="javascript" src="navigator.js">
</html:script>
<html:script language="javascript" src="tooltip.js">
</html:script>
<popup id="translationlist">
<menu>
@ -287,6 +320,14 @@
</menu>
</popup>
<!-- This needs to go into a xul fragment, but since those don't work now, this stays here !-->
<popup id="aTooltip" oncreate="return FillInTooltip(document.tooltipElement);">
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
width="200" height="20" style="border: thin solid black">
<titledbutton id = "replaceMe" align="left" class="borderless paneltitle" value="" />
</window>
</popup>
<broadcaster id="canGoBack" disabled="true"/>
<broadcaster id="canGoForward" disabled="true"/>
<broadcaster id="canReload"/>
@ -307,7 +348,6 @@
<menuitem name="&browserCmd.label;" onclick="BrowserNewWindow();"/>
<menu name="New">
<menuitem name="&newMailCmd.label;" onclick="MsgNewMessage();"/>
<menuitem name="&newChatCmd.label;" onclick=""/>
<separator />
<menuitem name="&newBlankPageCmd.label;" onclick="BrowserNewEditorWindow();"/>
<menuitem name="&newPageFromTemplateCmd.label;" onclick="BrowserNewWindow();"/>
@ -316,7 +356,7 @@
<menuitem name="&openCmd.label;" onclick="BrowserOpenWindow();"/>
<separator />
<menuitem name="&sendPageCmd.label;" onclick="BrowserReload();"/>
<menuitem name="&editPageCmd.label;" onclick="BrowserEditPage(window.frames[0].frames[1].location.href);" />
<menuitem name="&editPageCmd.label;" onclick="BrowserEditPage(window.content.location.href);" />
<separator />
<menu name="&offlineMenu.label;">
<menuitem name="&offlineGoOfflineCmd.label;" onclick="BrowserReload();"/>
@ -372,9 +412,11 @@
<menuitem name="&useStlyleSheetBizarreCmd.label;" onclick="BrowserReload();"/>
</menu>
<separator />
<menuitem name="&reloadCmd.label;" onclick="BrowserReload();"/>
<menuitem name="&reloadCmd.label;" id="menuitem-reload" onclick="BrowserReallyReload(0);"/>
<menuitem name="&showImagesCmd.label;" onclick="BrowserReload();"/>
<menuitem name="&stopCmd.label;" id="menuitem-stop" onclick="BrowserStop();"/>
<separator />
<menuitem name="&pageSourceCmd.label;" onclick="BrowserViewSource();"/>
<menuitem name="&pageInfoCmd.label;" onclick="BrowserReload();"/>
@ -500,7 +542,7 @@
</rule>
</template>
<menuitem name="&addCurPageCmd.label;" onclick="BrowserAddBookmark(window.frames[0].frames[1].location.href,window.frames[0].frames[1].document.title);"/>
<menuitem name="&addCurPageCmd.label;" onclick="BrowserAddBookmark(window.content.location.href,window.content.document.title);"/>
<menuitem name="&manBookmarksCmd.label;" onclick="BrowserEditBookmarks();"/>
<separator/>
</menu>
@ -510,8 +552,6 @@
<menuitem name="&editorCmd.label;" onclick="OpenEditor();" />
<menuitem name="&textEditorCmd.label;" onclick="BrowserNewTextEditorWindow();" />
<menuitem name="&manageHistoryCmd.label;" onclick="OpenHistoryView();" />
<menuitem name="&chatCmd.label;" onclick="BrowserReload();"/>
<menuitem name="&shoppingCartCmd.label;" onclick="BrowserReload();"/>
<separator />
<menu name="&toolsMenu.label;">
<menuitem name="&toolsPluginsInfoCmd.label;" onclick="BrowserReload();"/>
@ -526,7 +566,7 @@
</menu>
<menu name="&helpMenuCmd.label;">
<menuitem name="&helpContentsCmd.label;" onclick="window.frames[0].frames[1].location.href = 'http://www.mozilla.org/projects/user-docs/local/browserhelp/browsertop.html'"/>
<menuitem name="&helpContentsCmd.label;" onclick="window.content.location.href = 'http://www.mozilla.org/projects/user-docs/local/browserhelp/browsertop.html'"/>
<separator />
<menuitem name="&howTutorialCmd.label;" onclick="BrowserReload();"/>
<menuitem name="&helpChannelCmd.label;" onclick="BrowserReload();" />
@ -534,94 +574,103 @@
<menuitem name="&softwareUpdatesCmd.label;" onclick="BrowserReload();"/>
<menuitem name="&technicalSupportCmd.label;" onclick="BrowserReload();"/>
<menuitem name="&releaseNotesCmd.label;"
onclick="window.frames[0].frames[1].location.href='http://www.mozilla.org/projects/seamonkey/release-notes/index.html'"/>
onclick="window.content.location.href='http://www.mozilla.org/projects/seamonkey/release-notes/index.html'"/>
<separator />
<menuitem name="&aboutCommunicatorCmd.label;"
onclick="window.frames[0].frames[1].location.href='http://www.mozilla.org/projects/seamonkey/release-notes/index.html'"/>
onclick="window.content.location.href='http://www.mozilla.org/projects/seamonkey/release-notes/index.html'"/>
</menu>
// Menu for testing.
<menu name="&debugMenu.label;">
<menu name="&debugVerCmd.label;"> // Build verification sites.
<menuitem name="&ver1Cmd.label;" onclick="window.frames[0].frames[1].location.href='http://www.mozilla.org'"/>
<menuitem name="&ver2Cmd.label;" onclick="window.frames[0].frames[1].location.href='http://www.yahoo.com'"/>
<menuitem name="&ver3Cmd.label;" onclick="window.frames[0].frames[1].location.href='http://www.netscape.com'"/>
<menuitem name="&ver4Cmd.label;" onclick="window.frames[0].frames[1].location.href='http://www.excite.com'"/>
<menuitem name="&ver5Cmd.label;" onclick="window.frames[0].frames[1].location.href='http://www.microsoft.com'"/>
<menuitem name="&ver6Cmd.label;" onclick="window.frames[0].frames[1].location.href='http://www.city.net'"/>
<menuitem name="&ver7Cmd.label;" onclick="window.frames[0].frames[1].location.href='http://www.mirabilis.com'"/>
<menuitem name="&ver8Cmd.label;" onclick="window.frames[0].frames[1].location.href='http://www.pathfinder.com/welcome'"/>
<menuitem name="&ver9Cmd.label;" onclick="window.frames[0].frames[1].location.href='http://www.warnerbros.com/home_moz3_day.html'"/>
<menuitem name="&ver10Cmd.label;" onclick="window.frames[0].frames[1].location.href='http://www.cnn.com'"/>
<menuitem name="&ver11Cmd.label;" onclick="window.frames[0].frames[1].location.href='http://www.usatoday.com'"/>
<menuitem name="&ver12Cmd.label;" onclick="window.frames[0].frames[1].location.href='http://www.disney.go.com'"/>
<menuitem name="&ver13Cmd.label;" onclick="window.frames[0].frames[1].location.href='http://www.hotwired.com'"/>
<menuitem name="&ver14Cmd.label;" onclick="window.frames[0].frames[1].location.href='http://www.hotbot.com'"/>
<menuitem name="&ver1Cmd.label;" onclick="window.content.location.href='http://www.mozilla.org'"/>
<menuitem name="&ver2Cmd.label;" onclick="window.content.location.href='http://www.yahoo.com'"/>
<menuitem name="&ver3Cmd.label;" onclick="window.content.location.href='http://www.netscape.com'"/>
<menuitem name="&ver4Cmd.label;" onclick="window.content.location.href='http://www.excite.com'"/>
<menuitem name="&ver5Cmd.label;" onclick="window.content.location.href='http://www.microsoft.com'"/>
<menuitem name="&ver6Cmd.label;" onclick="window.content.location.href='http://www.city.net'"/>
<menuitem name="&ver7Cmd.label;" onclick="window.content.location.href='http://www.mirabilis.com'"/>
<menuitem name="&ver8Cmd.label;" onclick="window.content.location.href='http://www.pathfinder.com/welcome'"/>
<menuitem name="&ver9Cmd.label;" onclick="window.content.location.href='http://www.warnerbros.com/home_moz3_day.html'"/>
<menuitem name="&ver10Cmd.label;" onclick="window.content.location.href='http://www.cnn.com'"/>
<menuitem name="&ver11Cmd.label;" onclick="window.content.location.href='http://www.usatoday.com'"/>
<menuitem name="&ver12Cmd.label;" onclick="window.content.location.href='http://www.disney.go.com'"/>
<menuitem name="&ver13Cmd.label;" onclick="window.content.location.href='http://www.hotwired.com'"/>
<menuitem name="&ver14Cmd.label;" onclick="window.content.location.href='http://www.hotbot.com'"/>
<separator />
<menuitem name="&ver15Cmd.label;" onclick="window.frames[0].frames[1].location.href='http://slip/projects/marvin/bft/browser/bft_frame_index.html'"/>
<menuitem name="&ver16Cmd.label;" onclick="window.frames[0].frames[1].location.href='resource:/res/samples/test6.html'"/>
<menuitem name="&ver17Cmd.label;" onclick="window.frames[0].frames[1].location.href='http://slip/projects/marvin/bft/browser/bft_browser_applet.htm'"/>
<menuitem name="&ver18Cmd.label;" onclick="window.frames[0].frames[1].location.href='http://www.abcnews.com'"/>
<menuitem name="&ver19Cmd.label;" onclick="window.frames[0].frames[1].location.href='http://slip/projects/marvin/bft/browser/bft_browser_imagemap.html'"/>
<menuitem name="&ver20Cmd.label;" onclick="window.frames[0].frames[1].location.href='resource:/res/samples/test2.html'"/>
<menuitem name="&ver21Cmd.label;" onclick="window.frames[0].frames[1].location.href='http://www.cdrom.com/pub/png/png-MagnoliaAlpha.html'"/>
<menuitem name="&ver22Cmd.label;" onclick="window.frames[0].frames[1].location.href='resource:/res/samples/test13.html'"/>
<menuitem name="&ver23Cmd.label;" onclick="window.frames[0].frames[1].location.href='resource:/res/samples/test2.html'"/>
<menuitem name="&ver24Cmd.label;" onclick="window.frames[0].frames[1].location.href='http://slip/projects/marvin/bft/browser/bft_browser_html_mix3.html'"/>
<menuitem name="&ver25Cmd.label;" onclick="window.frames[0].frames[1].location.href='http://slip/projects/marvin/bft/browser/bft_browser_link.html'"/>
<menuitem name="&ver15Cmd.label;" onclick="window.content.location.href='http://slip/projects/marvin/bft/browser/bft_frame_index.html'"/>
<menuitem name="&ver16Cmd.label;" onclick="window.content.location.href='resource:/res/samples/test6.html'"/>
<menuitem name="&ver17Cmd.label;" onclick="window.content.location.href='http://slip/projects/marvin/bft/browser/bft_browser_applet.htm'"/>
<menuitem name="&ver18Cmd.label;" onclick="window.content.location.href='http://www.abcnews.com'"/>
<menuitem name="&ver19Cmd.label;" onclick="window.content.location.href='http://slip/projects/marvin/bft/browser/bft_browser_imagemap.html'"/>
<menuitem name="&ver20Cmd.label;" onclick="window.content.location.href='resource:/res/samples/test2.html'"/>
<menuitem name="&ver21Cmd.label;" onclick="window.content.location.href='http://www.cdrom.com/pub/png/png-MagnoliaAlpha.html'"/>
<menuitem name="&ver22Cmd.label;" onclick="window.content.location.href='resource:/res/samples/test13.html'"/>
<menuitem name="&ver23Cmd.label;" onclick="window.content.location.href='resource:/res/samples/test2.html'"/>
<menuitem name="&ver24Cmd.label;" onclick="window.content.location.href='http://slip/projects/marvin/bft/browser/bft_browser_html_mix3.html'"/>
<menuitem name="&ver25Cmd.label;" onclick="window.content.location.href='http://slip/projects/marvin/bft/browser/bft_browser_link.html'"/>
</menu>
<menu name="&viewDemoMenu.label;"> // Viewer tests.
<menuitem name="&demo0Cmd.label;" onclick="window.frames[0].frames[1].location.href='resource:/res/samples/test0.html'"/>
<menuitem name="&demo1Cmd.label;" onclick="window.frames[0].frames[1].location.href='resource:/res/samples/test1.html'"/>
<menuitem name="&demo2Cmd.label;" onclick="window.frames[0].frames[1].location.href='resource:/res/samples/test2.html'"/>
<menuitem name="&demo3Cmd.label;" onclick="window.frames[0].frames[1].location.href='resource:/res/samples/test3.html'"/>
<menuitem name="&demo4Cmd.label;" onclick="window.frames[0].frames[1].location.href='resource:/res/samples/test4.html'"/>
<menuitem name="&demo5Cmd.label;" onclick="window.frames[0].frames[1].location.href='resource:/res/samples/test5.html'"/>
<menuitem name="&demo6Cmd.label;" onclick="window.frames[0].frames[1].location.href='resource:/res/samples/test6.html'"/>
<menuitem name="&demo7Cmd.label;" onclick="window.frames[0].frames[1].location.href='resource:/res/samples/test7.html'"/>
<menuitem name="&demo8Cmd.label;" onclick="window.frames[0].frames[1].location.href='resource:/res/samples/test8.html'"/>
<menuitem name="&demo9Cmd.label;" onclick="window.frames[0].frames[1].location.href='resource:/res/samples/test9.html'"/>
<menuitem name="&demo10Cmd.label;" onclick="window.frames[0].frames[1].location.href='resource:/res/samples/test10.html'"/>
<menuitem name="&demo11Cmd.label;" onclick="window.frames[0].frames[1].location.href='resource:/res/samples/test11.html'"/>
<menuitem name="&demo12Cmd.label;" onclick="window.frames[0].frames[1].location.href='resource:/res/samples/test12.html'"/>
<menuitem name="&demo13Cmd.label;" onclick="window.frames[0].frames[1].location.href='resource:/res/samples/test13.html'"/>
<menuitem name="&demo14Cmd.label;" onclick="window.frames[0].frames[1].location.href='resource:/res/samples/test14.html'"/>
<menuitem name="&demo15Cmd.label;" onclick="window.frames[0].frames[1].location.href='resource:/res/samples/test15.html'"/>
<menuitem name="&demo16Cmd.label;" onclick="window.frames[0].frames[1].location.href='resource:/res/samples/test16.html'"/>
<menuitem name="&demo0Cmd.label;" onclick="window.content.location.href='resource:/res/samples/test0.html'"/>
<menuitem name="&demo1Cmd.label;" onclick="window.content.location.href='resource:/res/samples/test1.html'"/>
<menuitem name="&demo2Cmd.label;" onclick="window.content.location.href='resource:/res/samples/test2.html'"/>
<menuitem name="&demo3Cmd.label;" onclick="window.content.location.href='resource:/res/samples/test3.html'"/>
<menuitem name="&demo4Cmd.label;" onclick="window.content.location.href='resource:/res/samples/test4.html'"/>
<menuitem name="&demo5Cmd.label;" onclick="window.content.location.href='resource:/res/samples/test5.html'"/>
<menuitem name="&demo6Cmd.label;" onclick="window.content.location.href='resource:/res/samples/test6.html'"/>
<menuitem name="&demo7Cmd.label;" onclick="window.content.location.href='resource:/res/samples/test7.html'"/>
<menuitem name="&demo8Cmd.label;" onclick="window.content.location.href='resource:/res/samples/test8.html'"/>
<menuitem name="&demo9Cmd.label;" onclick="window.content.location.href='resource:/res/samples/test9.html'"/>
<menuitem name="&demo10Cmd.label;" onclick="window.content.location.href='resource:/res/samples/test10.html'"/>
<menuitem name="&demo11Cmd.label;" onclick="window.content.location.href='resource:/res/samples/test11.html'"/>
<menuitem name="&demo12Cmd.label;" onclick="window.content.location.href='resource:/res/samples/test12.html'"/>
<menuitem name="&demo13Cmd.label;" onclick="window.content.location.href='resource:/res/samples/test13.html'"/>
<menuitem name="&demo14Cmd.label;" onclick="window.content.location.href='resource:/res/samples/test14.html'"/>
<menuitem name="&demo15Cmd.label;" onclick="window.content.location.href='resource:/res/samples/test15.html'"/>
<menuitem name="&demo16Cmd.label;" onclick="window.content.location.href='resource:/res/samples/test16.html'"/>
</menu>
<menu name="&xptkMenu.label;"> // XPToolkit tests.
<menuitem name="&xptk1Cmd.label;" onclick="window.frames[0].frames[1].location.href='resource:/res/samples/checkboxTest.xul'"/>
<menuitem name="&xptk2Cmd.label;" onclick="window.frames[0].frames[1].location.href='resource:/res/samples/toolbarTest1.xul'"/>
<menuitem name="&xptk3Cmd.label;" onclick="window.frames[0].frames[1].location.href='resource:/res/samples/treeTest1.xul'"/>
<menuitem name="&xptk4Cmd.label;" onclick="window.frames[0].frames[1].location.href='resource:/res/samples/dexsimplemaster.xul'"/>
<menuitem name="&xptk5Cmd.label;" onclick="window.frames[0].frames[1].location.href='resource:/res/samples/dexanimmaster.xul'"/>
<menuitem name="&xptk6Cmd.label;" onclick="window.frames[0].frames[1].location.href='resource:/res/samples/tab.xul'"/>
<menuitem name="&xptk7Cmd.label;" onclick="window.frames[0].frames[1].location.href='resource:/res/samples/beeptest.html'"/>
<menuitem name="&xptk1Cmd.label;" onclick="window.content.location.href='resource:/res/samples/checkboxTest.xul'"/>
<menuitem name="&xptk2Cmd.label;" onclick="window.content.location.href='resource:/res/samples/toolbarTest1.xul'"/>
<menuitem name="&xptk3Cmd.label;" onclick="window.content.location.href='resource:/res/samples/treeTest1.xul'"/>
<menuitem name="&xptk4Cmd.label;" onclick="window.content.location.href='resource:/res/samples/dexsimplemaster.xul'"/>
<menuitem name="&xptk5Cmd.label;" onclick="window.content.location.href='resource:/res/samples/dexanimmaster.xul'"/>
<menuitem name="&xptk6Cmd.label;" onclick="window.content.location.href='resource:/res/samples/tab.xul'"/>
<menuitem name="&xptk7Cmd.label;" onclick="window.content.location.href='resource:/res/samples/beeptest.html'"/>
</menu>
</menu>
<menu name="&QA.label;"> // QA tests.
<menuitem name="&QABugCmd.label;" onclick="window.content.location.href='http://www.mozilla.org/quality/bug-writing-guidelines.html'"/>
<menuitem name="&QATempCmd.label;" onclick="window.content.location.href='http://www.mozilla.org/quality/bug-template.html'"/>
<menuitem name="&QASmokeCmd.label;" onclick="window.content.location.href='http://www.mozilla.org/quality/smoketests/'"/>
<menuitem name="&QAKnownBugCmd.label;" onclick="window.content.location.href='http://www.mozilla.org/quality/most-frequent-bugs/'"/>
</menu>
</menubar>
<box id="outer-box" align="vertical">
<toolbox>
<toolbar class="main-bar" chromeclass="toolbar">
<titledbutton id="back-button" align="bottom" value="&backButton.label;" onclick="BrowserBack()">
<observes element="canGoBack" attribute="disabled" onChange="BrowserSetBack()"/>
</titledbutton>
<titledbutton id="forward-button" align="bottom" value="&forwardButton.label;"
<titledbutton id="forward-button" align="bottom" value="&forwardButton.label;"
onclick="BrowserForward()">
<observes element="canGoForward" attribute="disabled" onChange="BrowserSetForward()"/>
</titledbutton>
<!-- Right now only regular reload is supported.
When the functionality is available, look for
'Shift' key pressed state and pass on appropriate
reload type. (The shift functionality is available. There's a shiftDown field
in the event object.) -->
<titledbutton id="reload-button" align="bottom" value="&reloadButton.label;"
onclick="window.frames[0].frames[1].location.reload()">
<observes element="canReload" attribute="disabled"/>
onclick="BrowserReallyReload(0)">
<observes element="canReload" attribute="disabled" onChange="BrowserSetReload()" />
</titledbutton>
<titledbutton id="stop-button" align="bottom" value="&stopButton.label;"
@ -644,7 +693,7 @@
<observes element="canPrint" attribute="disabled"/>
</titledbutton>
<titledbutton id="Throbber" onclick="window.frames[0].frames[1].location.href='&throbber.url;'">
<titledbutton id="Throbber" onclick="window.content.location.href='&throbber.url;'">
<observes element="Browser:Throbber" attribute="busy"/>
</titledbutton>
</toolbar>
@ -663,7 +712,7 @@
<titledbutton id="home-button" align="right" value="&homeButton.label;"
onclick="BrowserHome()"/>
<titledbutton id="netscape-button" align="right" value="&netscapeButton.label;"
onclick="window.frames[0].frames[1].location.href='http://home.netscape.com'"/>
onclick="window.content.location.href='http://home.netscape.com'"/>
<spring flex="100%"/>
</toolbar>
</toolbox>
@ -706,16 +755,14 @@
<menu><menuitem name="Sample Item One"/><menuitem name="Sample Item Two"/></menu>
</popup>
<box align="horizontal">
<titledbutton align="left" class="popup" popup="samplePopup"
<titledbutton align="left" class="button"
popupanchor="topleft" popupalign="bottomleft" value="&webButton.label;" />
<titledbutton align="left" class="popup" popup="samplePopup"
<titledbutton align="left" class="button"
popupanchor="topleft" popupalign="bottomleft" value="&mailButton.label;" />
<titledbutton align="left" class="popup" popup="samplePopup"
popupanchor="topleft" popupalign="bottomleft" value="&chatButton.label;" />
</box>
<spring flex="100%"/>
<box align="horizontal">
<titledbutton align="left" class="popup" popup="samplePopup"
<titledbutton align="left" class="popup" popup="samplePopup" tooltip="aTooltip" tooltiptext="This is a toolbar"
popupanchor="topleft" popupalign="bottomleft" value="&dayplannerButton.label;" />
<titledbutton align="left" class="popup" popup="samplePopup"
popupanchor="topleft" popupalign="bottomleft" value="&shoppingButton.label;" />
@ -733,5 +780,4 @@
</box>
</toolbar>
</toolbox>
</box>
</window>

View File

@ -1,10 +1,13 @@
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/xul.css" type="text/css"?>
<?xml-stylesheet href="chrome:/global/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://navigator/skin/" type="text/css"?>
<!DOCTYPE window
[
<!ENTITY mainWindow.title "Mozilla">
<!ENTITY mainWindow.titlemodifier "Mozilla">
<!ENTITY mainWindow.titlemodifierseperator " - ">
<!ENTITY mainWindow.preface "Source for">
<!ENTITY fileMenu.label "File">
<!ENTITY browserCmd.label "New Browser Window">
<!ENTITY newMenu.label "New">
@ -105,11 +108,13 @@
<window id="main-window" xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
onunload="if (appCore) appCore.close()"
title="Mozilla">
onunload="Shutdown()"
title="&mainWindow.title;" titlemodifier="&mainWindow.titlemodifier;"
titleseperator ="&mainWindow.titlemodifierseperator;" windowtype="navigator:viewsource"
align="vertical" width="640" height="480">
<html:script src="navigator.js"></html:script>
<html:script src="viewsource.js"></html:script>
<html:script src="chrome://navigator/content/navigator.js"></html:script>
<html:script src="chrome://navigator/content/viewsource.js"></html:script>
<broadcaster id="args" value="http://www.mozilla.org/"/>
<broadcaster id="canPrint"/>
@ -254,10 +259,7 @@
</menu>
</menubar>
<box id="outer-box" align="vertical">
<html:iframe id="content-frame" type="content" html:name="content" html:src="about:blank" flex="100%"/>
<box align="horizontal" id="status-bar">
@ -281,5 +283,4 @@
</box>
</box>
</box>
</window>

View File

@ -27,6 +27,7 @@ include $(topsrcdir)/config/config.mk
include $(topsrcdir)/config/rules.mk
EXPORT_RESOURCE_CONTENT = \
$(srcdir)/tooltip.js \
$(srcdir)/contentframe.js \
$(srcdir)/openLocation.js \
$(srcdir)/viewsource.js \

View File

@ -10,4 +10,5 @@ NetSupportConfirm.xul
NetSupportAlert.xul
NetSupportConfirmCheck.xul
NetSupportPassword.xul
NetSupportUserPassword.xul
NetSupportUserPassword.xul
tooltip.js

View File

@ -1,5 +1,5 @@
<?xml version="1.0"?>
<?xml-stylesheet href="xul.css" type="text/css"?>
<?xml-stylesheet href="chrome:/global/skin/" type="text/css"?>
<window xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns:xul ="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"

View File

@ -1,5 +1,5 @@
<?xml version="1.0"?>
<?xml-stylesheet href="xul.css" type="text/css"?>
<?xml-stylesheet href="chrome:/global/skin/" type="text/css"?>
<window xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns:xul ="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"

View File

@ -1,5 +1,5 @@
<?xml version="1.0"?>
<?xml-stylesheet href="xul.css" type="text/css"?>
<?xml-stylesheet href="chrome:/global/skin/" type="text/css"?>
<!DOCTYPE window>
<window xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns:xul ="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"

View File

@ -1,5 +1,5 @@
<?xml version="1.0"?>
<?xml-stylesheet href="xul.css" type="text/css"?>
<?xml-stylesheet href="chrome:/global/skin/" type="text/css"?>
<!DOCTYPE window>
<window xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns:xul ="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"

View File

@ -1,5 +1,5 @@
<?xml version="1.0"?>
<?xml-stylesheet href="xul.css" type="text/css"?>
<?xml-stylesheet href="chrome:/global/skin/" type="text/css"?>
<!DOCTYPE window>
<window xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns:xul ="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"

View File

@ -1,5 +1,5 @@
<?xml version="1.0"?>
<?xml-stylesheet href="xul.css" type="text/css"?>
<?xml-stylesheet href="chrome:/global/skin/" type="text/css"?>
<window xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns:xul ="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"

View File

@ -1,89 +1,66 @@
// -*- Mode: Java -*-
var sidebarURI = 'resource:/res/rdf/sidebar-browser.xul';
var isSidebarOpen = false;
var sidebar_name = ''; // Name for preferences (e.g. 'sidebar.<name>.foo')
var sidebar_uri = ''; // Content to load in sidebar frame
var sidebar_width = 0; // Desired width of sidebar
var sidebar_pref = ''; // Base for preferences (e.g. 'sidebar.browser')
var is_sidebar_open = false;
var prefs = null; // Handle to preference interface
function Init() {
var pref = Components.classes['component://netscape/preferences'];
if (pref) {
pref = pref.getService();
function init_sidebar(name, uri, width) {
sidebar_name = name;
sidebar_uri = uri;
sidebar_width = width;
sidebar_pref = 'sidebar.' + name;
// Open/close sidebar based on saved pref.
// This may be replaced by another system by hyatt.
prefs = Components.classes['component://netscape/preferences'];
if (prefs) {
prefs = prefs.getService();
}
if (pref) {
pref = pref.QueryInterface(Components.interfaces.nsIPref);
if (prefs) {
prefs = prefs.QueryInterface(Components.interfaces.nsIPref);
}
if (pref) {
pref.SetDefaultIntPref('sidebar.width', 170);
// pref.SetIntPref(pref.GetIntPref('sidebar.width'));
pref.SetDefaultBoolPref('sidebar.open', false);
pref.SavePrefFile();
if (pref.GetBoolPref('sidebar.open')) {
toggleOpenClose();
if (prefs) {
prefs.SetDefaultBoolPref(sidebar_pref + '.open', false);
// The sidebar is closed by default, so open it only if the
// preference is set to true.
if (prefs.GetBoolPref(sidebar_pref + '.open')) {
toggle_open_close();
}
}
}
function toggleOpenClose() {
// Get the open width and update the pref state
var pref = Components.classes['component://netscape/preferences'];
if (pref) {
pref = pref.getService();
}
if (pref) {
pref = pref.QueryInterface(Components.interfaces.nsIPref);
}
var width = 0;
function toggle_open_close() {
if (pref) {
pref.SetBoolPref('sidebar.open', !isSidebarOpen);
width = pref.GetIntPref('sidebar.width');
pref.SavePrefFile();
}
var sidebar = document.getElementById('sidebarframe');
var grippy = document.getElementById('grippy');
if (isSidebarOpen)
if (is_sidebar_open)
{
// Close it
var container = document.getElementById('container');
var sidebar = container.firstChild;
sidebar.setAttribute('style','width:0px; visibility:hidden');
sidebar.setAttribute('style','width: 0px');
sidebar.setAttribute('src','about:blank');
//container.removeChild(container.firstChild);
var grippy = document.getElementById('grippy');
grippy.setAttribute('open','');
isSidebarOpen = false;
is_sidebar_open = false;
}
else
{
// Open it
var container = document.getElementById('container');
var sidebar = container.firstChild;
sidebar.setAttribute('style','width:' + width + 'px; visibility:visible');
sidebar.setAttribute('src',sidebarURI);
sidebar.setAttribute('style', 'width:' + sidebar_width + 'px');
sidebar.setAttribute('src', sidebar_uri);
//var sidebar = document.createElement('html:iframe');
//sidebar.setAttribute('src','resource:/res/rdf/sidebar-browser.xul');
//sidebar.setAttribute('class','sidebarframe');
//container.insertBefore(sidebar,container.firstChild);
//container.appendChild(sidebar);
var grippy = document.getElementById('grippy');
grippy.setAttribute('open','true');
isSidebarOpen = true;
is_sidebar_open = true;
}
}
// To get around "window.onload" not working in viewer.
function Boot()
{
var root = document.documentElement;
if (root == null) {
setTimeout(Boot, 0);
} else {
Init();
// Save new open/close state in prefs
if (prefs) {
prefs.SetBoolPref(sidebar_pref + '.open', is_sidebar_open);
}
}
setTimeout('Boot()', 0);

View File

@ -1,22 +1,22 @@
<?xml version="1.0"?>
<?xml-stylesheet href="resource:/res/samples/xul.css" type="text/css"?>
<?xml-stylesheet href="chrome://global/skin/contentframe.css" type="text/css"?>
<?xml-stylesheet href="chrome:/global/skin/" type="text/css"?>
<?xml-stylesheet href="chrome:/navigator/skin/contentframe.css" type="text/css"?>
<!DOCTYPE window>
<window style="height:100%;width:100%"
xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
onload="init_sidebar('browser', 'resource:/res/rdf/sidebar-browser.xul',
170);" align="horizontal">
<html:script src="contentframe.js" />
<box id="container" align="horizontal" style="height: 100%; width: 100%">
<html:iframe id="sidebarframe" class="sidebarframe"
src="about:blank" />
<box align="vertical" style="height: 100%;">
<titledbutton id="grippy" class="grippy" onclick="toggleOpenClose();"
flex="100%" />
</box>
<html:iframe type="content" id="content" src="about:blank" flex="100%" />
</box>
<html:iframe id="sidebarframe" class="sidebarframe" src="about:blank" />
<titledbutton id="grippy" class="grippy" onclick="toggle_open_close();"/>
<!-- type attribute is used by frame construction to locate iframes
intended to hold (html) content -->
<!-- id's use is a mystery -->
<html:iframe type="content-primary" id="content" src="about:blank" flex="100%" />
</window>

View File

@ -35,7 +35,21 @@ install::
$(MAKE_INSTALL) NetSupportConfirmCheck.xul $(DISTBROWSWER)
$(MAKE_INSTALL) NetSupportPassword.xul $(DISTBROWSWER)
$(MAKE_INSTALL) NetSupportUserPassword.xul $(DISTBROWSWER)
$(MAKE_INSTALL) tooltip.js $(DISTBROWSWER)
clobber::
rm -f $(DIST)\bin\chrome\navigator\content\default\*.*
rm -f $(DISTBROWSER)\contentframe.js
rm -f $(DISTBROWSER)\openLocation.js
rm -f $(DISTBROWSER)\openLocation.xul
rm -f $(DISTBROWSER)\viewsource.js
rm -f $(DISTBROWSER)\viewSource.xul
rm -f $(DISTBROWSER)\contentframe.xul
rm -f $(DISTBROWSER)\navigator.xul
rm -f $(DISTBROWSER)\navigator.js
rm -f $(DISTBROWSER)\NetSupportConfirm.xul
rm -f $(DISTBROWSER)\NetSupportAlert.xul
rm -f $(DISTBROWSER)\NetSupportConfirmCheck.xul
rm -f $(DISTBROWSER)\NetSupportPassword.xul
rm -f $(DISTBROWSER)\NetSupportUserPassword.xul
rm -f $(DISTBROWSER)\tooltip.js

View File

@ -21,6 +21,7 @@
var appCoreName = "";
var defaultStatus = "default status text";
var debugSecurity = false; // Set this true to enable Security chrome testing.
var explicitURL = false;
function Startup()
{
@ -37,6 +38,15 @@
}
}
function Shutdown() {
// Close the app core.
if ( appCore ) {
appCore.close();
// Remove app core from app core manager.
XPAppCoresManager.Remove( appCore );
}
}
function onLoadWithArgs() {
// See if Startup has been run.
if ( appCore ) {
@ -50,59 +60,73 @@
} else {
// onLoad handler timing is not correct yet.
dump( "onLoadWithArgs not needed yet\n" );
// Remember that we want this url.
explicitURL = true;
}
}
function tryToSetContentWindow() {
if ( window.frames[0].frames[1] ) {
if ( window.content ) {
dump("Setting content window\n");
appCore.setContentWindow( window.frames[0].frames[1] );
appCore.setContentWindow( window.content );
// Have browser app core load appropriate initial page.
var pref = Components.classes['component://netscape/preferences'];
// if all else fails, use trusty "about:" as the start page
var startpage = "about:";
if (pref) {
pref = pref.getService();
if ( !explicitURL ) {
var pref = Components.classes['component://netscape/preferences'];
dump("Components = " + Components + "\n");
dump("Components.classes = " + Components.classes + "\n");
dump("Components.classes[component://netscape/preferences] = " + pref + "\n");
// if all else fails, use trusty "about:blank" as the start page
var startpage = "about:blank";
if (pref) {
pref = pref.getService();
}
else {
dump("failed to get component://netscape/preferences\n");
}
if (pref) {
pref = pref.QueryInterface(Components.interfaces.nsIPref);
}
else {
dump("failed to get pref service\n");
}
if (pref) {
// from mozilla/modules/libpref/src/init/all.js
// 0 = blank
// 1 = home (browser.startup.homepage)
// 2 = last
choice = pref.GetIntPref("browser.startup.page");
dump("browser.startup.page = " + choice + "\n");
switch (choice) {
case 0:
startpage = "about:blank";
break;
case 1:
startpage = pref.CopyCharPref("browser.startup.homepage");
break;
case 2:
var history = Components.classes['component://netscape/browser/global-history'];
if (history) {
history = history.getService();
}
if (history) {
history = history.QueryInterface(Components.interfaces.nsIGlobalHistory);
}
if (history) {
startpage = history.GetLastPageVisted();
}
break;
default:
startpage = "about:blank";
}
}
else {
dump("failed to QI pref service\n");
}
dump("startpage = " + startpage + "\n");
document.getElementById("args").setAttribute("value", startpage);
}
if (pref) {
pref = pref.QueryInterface(Components.interfaces.nsIPref);
}
if (pref) {
// from mozilla/modules/libpref/src/init/all.js
// 0 = blank
// 1 = home (browser.startup.homepage)
// 2 = last
// 3 = splash (browser.startup.splash)
choice = pref.GetIntPref("browser.startup.page");
switch (choice) {
case 0:
startpage = "about:blank";
break;
case 1:
startpage = pref.CopyCharPref("browser.startup.homepage");
break;
case 2:
var history = Components.classes['component://netscape/browser/global-history'];
if (history) {
history = history.getService();
}
if (history) {
history = history.QueryInterface(Components.interfaces.nsIGlobalHistory);
}
if (history) {
startpage = history.GetLastPageVisted();
}
break;
case 3:
startpage = pref.CopyCharPref("browser.startup.splash");
break;
default:
startpage = "about:";
}
}
document.getElementById("args").setAttribute("value", startpage);
appCore.loadInitialPage();
} else {
// Try again.
@ -117,16 +141,17 @@
service += "?AlisSourceLang=" + src;
service += "&AlisTargetLang=" + dest;
service += "&AlisMTEngine=SSI";
service += "&AlisTargetURI=" + window.frames[0].frames[1].location.href;
window.frames[0].frames[1].location.href = service;
service += "&AlisTargetURI=" + window.content.location.href;
window.content.location.href = service;
}
function RefreshUrlbar()
{
//Refresh the urlbar bar
document.getElementById('urlbar').value = window.frames[0].frames[1].location.href;
document.getElementById('urlbar').value = window.content.location.href;
}
function BrowserBack()
{
// Get a handle to the back-button
@ -143,6 +168,7 @@
}
}
function BrowserForward()
{
// Get a handle to the back-button
@ -159,20 +185,21 @@
}
}
function BrowserSetForward()
{
var forwardBElem = document.getElementById("canGoForward");
if (!forwardBElem) {
dump("Couldn't obtain handle to forward Broarcast element\n");
return;
}
dump("Couldn't obtain handle to forward Broarcast element\n");
return;
}
var canForward = forwardBElem.getAttribute("disabled");
var fb = document.getElementById("forward-button");
if (!fb) {
dump("Could not obtain handle to forward button\n");
return;
dump("Could not obtain handle to forward button\n");
return;
}
// Enable/Disable the Forward button
@ -195,10 +222,8 @@
fm.setAttribute("disabled", "true");
}
else {
dump("Setting forward menu item enabled\n");
fm.setAttribute("disabled", "");
}
}
}
function BrowserCanStop() {
@ -213,6 +238,15 @@
stopButton.setAttribute( "disabled", "" );
}
}
//Enable/disable the stop menu item
var stopMenu = document.getElementById( "menuitem-stop" );
if ( stopMenu ) {
if ( stopDisabled == "true") {
stopMenu.setAttribute( "disabled", "true" );
} else {
stopMenu.setAttribute( "disabled", "" );
}
}
}
}
@ -222,14 +256,14 @@
if (!stopBElem) {
dump("Couldn't obtain handle to stop Broadcast element\n");
return;
}
}
var canStop = stopBElem.getAttribute("disabled");
var sb = document.getElementById("stop-button");
if (!sb) {
dump("Could not obtain handle to stop button\n");
return;
dump("Could not obtain handle to stop button\n");
return;
}
// If the stop button is currently disabled, just return
@ -262,16 +296,16 @@
{
var backBElem = document.getElementById("canGoBack");
if (!backBElem) {
dump("Couldn't obtain handle to back Broadcast element\n");
return;
}
dump("Couldn't obtain handle to back Broadcast element\n");
return;
}
var canBack = backBElem.getAttribute("disabled");
var bb = document.getElementById("back-button");
if (!bb) {
dump("Could not obtain handle to back button\n");
return;
dump("Could not obtain handle to back button\n");
return;
}
// Enable/Disable the Back button
@ -294,16 +328,85 @@
bm.setAttribute("disabled", "true");
}
else {
dump("Setting Back menuitem to enabled\n");
bm.setAttribute("disabled", "");
}
}
}
function BrowserSetReload() {
var reload = document.getElementById("canReload");
if ( reload ) {
var reloadDisabled = reload.getAttribute("disabled");
//Enable/disable the reload button
var reloadButton = document.getElementById( "reload-button" );
if ( reloadButton ) {
if ( reloadDisabled == "true") {
reloadButton.setAttribute( "disabled", "true" );
} else {
reloadButton.setAttribute( "disabled", "" );
}
}
//Enable/disable the reload menu
var reloadMenu = document.getElementById("menuitem-reload");
if ( reloadMenu ) {
if ( reloadDisabled == "true") {
reloadMenu.setAttribute( "disabled", "true" );
} else {
reloadMenu.setAttribute( "disabled", "" );
}
}
}
}
function BrowserReallyReload(reloadType) {
// Get a handle to the "canReload" broadcast id
var reloadBElem = document.getElementById("canReload");
if (!reloadBElem) {
dump("Couldn't obtain handle to reload Broadcast element\n");
return;
}
var canreload = reloadBElem.getAttribute("disabled");
var sb = document.getElementById("reload-button");
if (!sb) {
dump("Could not obtain handle to reload button\n");
return;
}
// If the reload button is currently disabled, just return
if ((sb.getAttribute("disabled")) == "true") {
return;
}
//reload button has just been pressed. Disable it.
sb.setAttribute("disabled", "true");
// Get a handle to the reload menu item.
var sm = document.getElementById("menuitem-reload");
if (!sm) {
dump("Couldn't obtain menu item reload\n");
} else {
// Disable the reload menu-item.
sm.setAttribute("disabled", "true");
}
//Call in to BrowserAppcore to reload the current loading
if (appCore != null) {
dump("Going to reload\n");
appCore.reload(reloadType);
} else {
dump("BrowserAppCore has not been created!\n");
}
}
function BrowserHome()
{
window.frames[0].frames[1].home();
window.content.home();
RefreshUrlbar();
}
@ -319,7 +422,7 @@
return false;
}
window.frames[0].frames[1].location.href = url;
window.content.location.href = url;
RefreshUrlbar();
}
@ -343,7 +446,7 @@
}
}
if ( core ) {
core.ShowWindowWithArgs( "chrome://editor/content", window, "chrome://editor/content/EditorInitPage.html" );
core.ShowWindowWithArgs( "chrome://editor/content", window, "resource:/res/html/empty_doc.html" );
} else {
dump("Error; can't create toolkitCore\n");
}
@ -391,12 +494,12 @@
}
}
if ( core ) {
//core.ShowWindowWithArgs( "chrome:/navigator/content/openLocation.xul", window, appCoreName );
//core.ShowWindowWithArgs( "resource:/res/samples/openLocation.xul", window, appCoreName );
var name = appCoreName.replace( /\./, /\_/ );
// Note: Use width/height one less than actual so resizing occurs.
// This bypasses bug whereby dialog contents don't appear
// till the dialog is resized.
window.openDialog( "chrome:/navigator/chrome/openLocation.xul", name+"_openLocation", "chrome,width=419,height=189", appCoreName );
window.openDialog( "chrome://navigator/content/openLocation.xul", name+"_openLocation", "chrome,width=419,height=189", appCoreName );
} else {
dump("Error; can't create toolkitCore\n");
}
@ -490,7 +593,7 @@
{
if (appCore != null) {
appCore.SetDocumentCharset(aCharset);
window.frames[0].frames[1].location.reload();
window.content.location.reload();
} else {
dump("BrowserAppCore has not been created!\n");
}
@ -585,7 +688,7 @@
{
if (appCore != null) {
dump("Wallet Safe Fillin\n");
appCore.walletPreview(window, window.frames[0].frames[1]);
appCore.walletPreview(window, window.content);
} else {
dump("BrowserAppCore has not been created!\n");
}
@ -606,7 +709,7 @@
{
if (appCore != null) {
dump("Wallet Quick Fillin\n");
appCore.walletQuickFillin(window.frames[0].frames[1]);
appCore.walletQuickFillin(window.content);
} else {
dump("BrowserAppCore has not been created!\n");
}
@ -644,32 +747,12 @@
function OpenMessenger()
{
var toolkitCore = XPAppCoresManager.Find("ToolkitCore");
if (!toolkitCore) {
toolkitCore = new ToolkitCore();
if (toolkitCore) {
toolkitCore.Init("ToolkitCore");
}
}
if (toolkitCore) {
toolkitCore.ShowWindow("chrome://messenger/content/",
window);
}
window.open("chrome://messenger/content/", "_new", "chrome");
}
function OpenAddressbook()
{
var toolkitCore = XPAppCoresManager.Find("ToolkitCore");
if (!toolkitCore) {
toolkitCore = new ToolkitCore();
if (toolkitCore) {
toolkitCore.Init("ToolkitCore");
}
}
if (toolkitCore) {
toolkitCore.ShowWindow("chrome://addressbook/content/",
window);
}
window.open("chrome://addressbook/content/", "_new", "chrome");
}
function MsgNewMessage()
@ -682,8 +765,8 @@
}
}
if (toolkitCore) {
toolkitCore.ShowWindow("chrome://messengercompose/content/",
window);
// We need to use ShowWindowWithArgs because message compose depend on callback
toolkitCore.ShowWindowWithArgs("chrome://messengercompose/content/", window, "");
}
}
@ -706,9 +789,9 @@
}
}
if (toolkitCore) {
var url = window.frames[0].frames[1].location;
var url = window.content.location;
dump("Opening view of source for" + url + "\n");
toolkitCore.ShowWindowWithArgs("chrome:/navigator/content/viewSource.xul", window, url);
toolkitCore.ShowWindowWithArgs("chrome://navigator/content/viewSource.xul", window, url);
}
}
@ -783,16 +866,17 @@
var meter = document.getElementById("Browser:LoadingProgress");
if ( throbber && meter ) {
var busy = throbber.getAttribute("busy");
var wasBusy = meter.getAttribute("mode") == "undetermined" ? "true" : "false";
if ( busy == "true" ) {
mode = "undetermined";
if ( !startTime ) {
startTime = (new Date()).getTime();
}
} else {
mode = "normal";
}
meter.setAttribute("mode",mode);
if ( mode == "normal" ) {
if ( wasBusy == "false" ) {
// Remember when loading commenced.
startTime = (new Date()).getTime();
// Turn progress meter on.
meter.setAttribute("mode","undetermined");
}
// Update status bar.
} else if ( busy == "false" && wasBusy == "true" ) {
// Record page loading time.
var status = document.getElementById("Browser:Status");
if ( status ) {
var elapsed = ( (new Date()).getTime() - startTime ) / 1000;
@ -801,7 +885,8 @@
status.setAttribute("value",msg);
defaultStatus = msg;
}
startTime = 0;
// Turn progress meter off.
meter.setAttribute("mode","normal");
}
}
}

View File

@ -1,5 +1,27 @@
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/xul.css" type="text/css"?>
<!-- The contents of this file are subject to the Netscape Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/NPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is Mozilla Communicator client code, released
March 31, 1998.
The Initial Developer of the Original Code is Netscape
Communications Corporation. Portions created by Netscape are
Copyright (C) 1998-1999 Netscape Communications Corporation. All
Rights Reserved.
Contributor(s): ______________________________________. -->
<?xml-stylesheet href="chrome:/global/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://navigator/skin/" type="text/css"?>
<!DOCTYPE window
@ -12,19 +34,18 @@
<!ENTITY browserCmd.label "New Browser Window">
<!ENTITY newMenu.label "New">
<!ENTITY newMailCmd.label "Mail Message">
<!ENTITY newChatCmd.label "Chat Window">
<!ENTITY newBlankPageCmd.label "Blank Window">
<!ENTITY newPageFromTemplateCmd.label "Page Using Template">
<!ENTITY newPageFromDraftCmd.label "Page using Draft">
<!ENTITY openCmd.label "Open">
<!ENTITY openCmd.label "Open File or Location...">
<!ENTITY sendPageCmd.label "Send Page">
<!ENTITY editPageCmd.label "Edit Page">
<!ENTITY offlineMenu.label "Offline">
<!ENTITY offlineGoOfflineCmd.label "Go Offline">
<!ENTITY offlineSynchronizeCmd.label "Synchronize">
<!ENTITY printSetupCmd.label "Print Setup">
<!ENTITY printSetupCmd.label "Print Setup...">
<!ENTITY printPreviewCmd.label "Print Preview">
<!ENTITY printCmd.label "Print">
<!ENTITY printCmd.label "Print...">
<!ENTITY closeCmd.label "Close">
<!ENTITY quitCmd.label "Quit">
<!ENTITY editMenu.label "Edit">
@ -43,7 +64,7 @@
<!ENTITY walletSamplesCmd.label "Samples">
<!ENTITY walletChangePasswordCmd.label "Change Password">
<!ENTITY selectAllCmd.label "Select All">
<!ENTITY preferences.label "Preferences">
<!ENTITY preferences.label "Preferences...">
<!ENTITY viewMenu.label "View">
<!ENTITY toolbarsCmd.label "Toolbars">
<!ENTITY sidebarCmd.label "Sidebar">
@ -150,8 +171,6 @@
<!ENTITY editorCmd.label "Editor">
<!ENTITY textEditorCmd.label "Plaintext Editor">
<!ENTITY manageHistoryCmd.label "Manage History">
<!ENTITY chatCmd.label "Chat">
<!ENTITY shoppingCartCmd.label "Shopping Cart">
<!ENTITY toolsMenu.label "Tools">
<!ENTITY toolsPluginsInfoCmd.label "Plugins Info">
<!ENTITY toolsJavaConsoleCmd.label "Java/JS Console">
@ -168,6 +187,10 @@
<!ENTITY aboutCommunicatorCmd.label "About Communicator Prototype">
<!ENTITY debugMenu.label "Debug">
<!ENTITY debugQA.label "QA Help">
<!ENTITY debugQABug.label "QA Help">
<!ENTITY debugQASmoke.label "Smoke Tests">
<!ENTITY debugQAKnowBug.label "Known Bugs">
<!ENTITY debugVerCmd.label "Verification">
<!ENTITY ver1Cmd.label "Mozilla">
<!ENTITY ver2Cmd.label "Yahoo">
@ -223,6 +246,13 @@
<!ENTITY xptk6Cmd.label "Tab">
<!ENTITY xptk7Cmd.label "Beep">
<!ENTITY QA.label "QA">
<!ENTITY QABugCmd.label "Bug Writing">
<!ENTITY QATempCmd.label "Bug Template">
<!ENTITY QASmokeCmd.label "Smoke Tests">
<!ENTITY QAKnownBugCmd.label "Known Bugs">
<!-- Toolbar items -->
<!ENTITY backButton.label "Back">
<!ENTITY forwardButton.label "Forward">
@ -239,13 +269,12 @@
<!-- Statusbar -->
<!ENTITY notifCom.label "[Notification Component]">
<!ENTITY statusText.label "Document: Done">
<!ENTITY buildId.label "Build ID: 1999061816">
<!ENTITY buildId.label "Build ID: 1999070614">
<!ENTITY security-button.label "Secure Conn">
<!-- taskbar -->
<!ENTITY webButton.label "Web">
<!ENTITY mailButton.label "Mail">
<!ENTITY chatButton.label "Chat">
<!ENTITY dayplannerButton.label "DayPlanner">
<!ENTITY shoppingButton.label "Shopping">
<!ENTITY myDeskButton.label "My Desk">
@ -257,15 +286,19 @@
]>
<window id="main-window" xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
onload="Startup()"
onunload="if (appCore) appCore.close()"
onunload="Shutdown()"
title="&mainWindow.title;" titlemodifier="&mainWindow.titlemodifier;"
titleseperator ="&mainWindow.titlemodifierseperator;" windowtype="navigator:browser">
titleseperator ="&mainWindow.titlemodifierseperator;" windowtype="navigator:browser"
align="vertical" width="640" height="480">
<html:script language="javascript" src="navigator.js">
</html:script>
<html:script language="javascript" src="tooltip.js">
</html:script>
<popup id="translationlist">
<menu>
@ -287,6 +320,14 @@
</menu>
</popup>
<!-- This needs to go into a xul fragment, but since those don't work now, this stays here !-->
<popup id="aTooltip" oncreate="return FillInTooltip(document.tooltipElement);">
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
width="200" height="20" style="border: thin solid black">
<titledbutton id = "replaceMe" align="left" class="borderless paneltitle" value="" />
</window>
</popup>
<broadcaster id="canGoBack" disabled="true"/>
<broadcaster id="canGoForward" disabled="true"/>
<broadcaster id="canReload"/>
@ -307,7 +348,6 @@
<menuitem name="&browserCmd.label;" onclick="BrowserNewWindow();"/>
<menu name="New">
<menuitem name="&newMailCmd.label;" onclick="MsgNewMessage();"/>
<menuitem name="&newChatCmd.label;" onclick=""/>
<separator />
<menuitem name="&newBlankPageCmd.label;" onclick="BrowserNewEditorWindow();"/>
<menuitem name="&newPageFromTemplateCmd.label;" onclick="BrowserNewWindow();"/>
@ -316,7 +356,7 @@
<menuitem name="&openCmd.label;" onclick="BrowserOpenWindow();"/>
<separator />
<menuitem name="&sendPageCmd.label;" onclick="BrowserReload();"/>
<menuitem name="&editPageCmd.label;" onclick="BrowserEditPage(window.frames[0].frames[1].location.href);" />
<menuitem name="&editPageCmd.label;" onclick="BrowserEditPage(window.content.location.href);" />
<separator />
<menu name="&offlineMenu.label;">
<menuitem name="&offlineGoOfflineCmd.label;" onclick="BrowserReload();"/>
@ -372,9 +412,11 @@
<menuitem name="&useStlyleSheetBizarreCmd.label;" onclick="BrowserReload();"/>
</menu>
<separator />
<menuitem name="&reloadCmd.label;" onclick="BrowserReload();"/>
<menuitem name="&reloadCmd.label;" id="menuitem-reload" onclick="BrowserReallyReload(0);"/>
<menuitem name="&showImagesCmd.label;" onclick="BrowserReload();"/>
<menuitem name="&stopCmd.label;" id="menuitem-stop" onclick="BrowserStop();"/>
<separator />
<menuitem name="&pageSourceCmd.label;" onclick="BrowserViewSource();"/>
<menuitem name="&pageInfoCmd.label;" onclick="BrowserReload();"/>
@ -500,7 +542,7 @@
</rule>
</template>
<menuitem name="&addCurPageCmd.label;" onclick="BrowserAddBookmark(window.frames[0].frames[1].location.href,window.frames[0].frames[1].document.title);"/>
<menuitem name="&addCurPageCmd.label;" onclick="BrowserAddBookmark(window.content.location.href,window.content.document.title);"/>
<menuitem name="&manBookmarksCmd.label;" onclick="BrowserEditBookmarks();"/>
<separator/>
</menu>
@ -510,8 +552,6 @@
<menuitem name="&editorCmd.label;" onclick="OpenEditor();" />
<menuitem name="&textEditorCmd.label;" onclick="BrowserNewTextEditorWindow();" />
<menuitem name="&manageHistoryCmd.label;" onclick="OpenHistoryView();" />
<menuitem name="&chatCmd.label;" onclick="BrowserReload();"/>
<menuitem name="&shoppingCartCmd.label;" onclick="BrowserReload();"/>
<separator />
<menu name="&toolsMenu.label;">
<menuitem name="&toolsPluginsInfoCmd.label;" onclick="BrowserReload();"/>
@ -526,7 +566,7 @@
</menu>
<menu name="&helpMenuCmd.label;">
<menuitem name="&helpContentsCmd.label;" onclick="window.frames[0].frames[1].location.href = 'http://www.mozilla.org/projects/user-docs/local/browserhelp/browsertop.html'"/>
<menuitem name="&helpContentsCmd.label;" onclick="window.content.location.href = 'http://www.mozilla.org/projects/user-docs/local/browserhelp/browsertop.html'"/>
<separator />
<menuitem name="&howTutorialCmd.label;" onclick="BrowserReload();"/>
<menuitem name="&helpChannelCmd.label;" onclick="BrowserReload();" />
@ -534,94 +574,103 @@
<menuitem name="&softwareUpdatesCmd.label;" onclick="BrowserReload();"/>
<menuitem name="&technicalSupportCmd.label;" onclick="BrowserReload();"/>
<menuitem name="&releaseNotesCmd.label;"
onclick="window.frames[0].frames[1].location.href='http://www.mozilla.org/projects/seamonkey/release-notes/index.html'"/>
onclick="window.content.location.href='http://www.mozilla.org/projects/seamonkey/release-notes/index.html'"/>
<separator />
<menuitem name="&aboutCommunicatorCmd.label;"
onclick="window.frames[0].frames[1].location.href='http://www.mozilla.org/projects/seamonkey/release-notes/index.html'"/>
onclick="window.content.location.href='http://www.mozilla.org/projects/seamonkey/release-notes/index.html'"/>
</menu>
// Menu for testing.
<menu name="&debugMenu.label;">
<menu name="&debugVerCmd.label;"> // Build verification sites.
<menuitem name="&ver1Cmd.label;" onclick="window.frames[0].frames[1].location.href='http://www.mozilla.org'"/>
<menuitem name="&ver2Cmd.label;" onclick="window.frames[0].frames[1].location.href='http://www.yahoo.com'"/>
<menuitem name="&ver3Cmd.label;" onclick="window.frames[0].frames[1].location.href='http://www.netscape.com'"/>
<menuitem name="&ver4Cmd.label;" onclick="window.frames[0].frames[1].location.href='http://www.excite.com'"/>
<menuitem name="&ver5Cmd.label;" onclick="window.frames[0].frames[1].location.href='http://www.microsoft.com'"/>
<menuitem name="&ver6Cmd.label;" onclick="window.frames[0].frames[1].location.href='http://www.city.net'"/>
<menuitem name="&ver7Cmd.label;" onclick="window.frames[0].frames[1].location.href='http://www.mirabilis.com'"/>
<menuitem name="&ver8Cmd.label;" onclick="window.frames[0].frames[1].location.href='http://www.pathfinder.com/welcome'"/>
<menuitem name="&ver9Cmd.label;" onclick="window.frames[0].frames[1].location.href='http://www.warnerbros.com/home_moz3_day.html'"/>
<menuitem name="&ver10Cmd.label;" onclick="window.frames[0].frames[1].location.href='http://www.cnn.com'"/>
<menuitem name="&ver11Cmd.label;" onclick="window.frames[0].frames[1].location.href='http://www.usatoday.com'"/>
<menuitem name="&ver12Cmd.label;" onclick="window.frames[0].frames[1].location.href='http://www.disney.go.com'"/>
<menuitem name="&ver13Cmd.label;" onclick="window.frames[0].frames[1].location.href='http://www.hotwired.com'"/>
<menuitem name="&ver14Cmd.label;" onclick="window.frames[0].frames[1].location.href='http://www.hotbot.com'"/>
<menuitem name="&ver1Cmd.label;" onclick="window.content.location.href='http://www.mozilla.org'"/>
<menuitem name="&ver2Cmd.label;" onclick="window.content.location.href='http://www.yahoo.com'"/>
<menuitem name="&ver3Cmd.label;" onclick="window.content.location.href='http://www.netscape.com'"/>
<menuitem name="&ver4Cmd.label;" onclick="window.content.location.href='http://www.excite.com'"/>
<menuitem name="&ver5Cmd.label;" onclick="window.content.location.href='http://www.microsoft.com'"/>
<menuitem name="&ver6Cmd.label;" onclick="window.content.location.href='http://www.city.net'"/>
<menuitem name="&ver7Cmd.label;" onclick="window.content.location.href='http://www.mirabilis.com'"/>
<menuitem name="&ver8Cmd.label;" onclick="window.content.location.href='http://www.pathfinder.com/welcome'"/>
<menuitem name="&ver9Cmd.label;" onclick="window.content.location.href='http://www.warnerbros.com/home_moz3_day.html'"/>
<menuitem name="&ver10Cmd.label;" onclick="window.content.location.href='http://www.cnn.com'"/>
<menuitem name="&ver11Cmd.label;" onclick="window.content.location.href='http://www.usatoday.com'"/>
<menuitem name="&ver12Cmd.label;" onclick="window.content.location.href='http://www.disney.go.com'"/>
<menuitem name="&ver13Cmd.label;" onclick="window.content.location.href='http://www.hotwired.com'"/>
<menuitem name="&ver14Cmd.label;" onclick="window.content.location.href='http://www.hotbot.com'"/>
<separator />
<menuitem name="&ver15Cmd.label;" onclick="window.frames[0].frames[1].location.href='http://slip/projects/marvin/bft/browser/bft_frame_index.html'"/>
<menuitem name="&ver16Cmd.label;" onclick="window.frames[0].frames[1].location.href='resource:/res/samples/test6.html'"/>
<menuitem name="&ver17Cmd.label;" onclick="window.frames[0].frames[1].location.href='http://slip/projects/marvin/bft/browser/bft_browser_applet.htm'"/>
<menuitem name="&ver18Cmd.label;" onclick="window.frames[0].frames[1].location.href='http://www.abcnews.com'"/>
<menuitem name="&ver19Cmd.label;" onclick="window.frames[0].frames[1].location.href='http://slip/projects/marvin/bft/browser/bft_browser_imagemap.html'"/>
<menuitem name="&ver20Cmd.label;" onclick="window.frames[0].frames[1].location.href='resource:/res/samples/test2.html'"/>
<menuitem name="&ver21Cmd.label;" onclick="window.frames[0].frames[1].location.href='http://www.cdrom.com/pub/png/png-MagnoliaAlpha.html'"/>
<menuitem name="&ver22Cmd.label;" onclick="window.frames[0].frames[1].location.href='resource:/res/samples/test13.html'"/>
<menuitem name="&ver23Cmd.label;" onclick="window.frames[0].frames[1].location.href='resource:/res/samples/test2.html'"/>
<menuitem name="&ver24Cmd.label;" onclick="window.frames[0].frames[1].location.href='http://slip/projects/marvin/bft/browser/bft_browser_html_mix3.html'"/>
<menuitem name="&ver25Cmd.label;" onclick="window.frames[0].frames[1].location.href='http://slip/projects/marvin/bft/browser/bft_browser_link.html'"/>
<menuitem name="&ver15Cmd.label;" onclick="window.content.location.href='http://slip/projects/marvin/bft/browser/bft_frame_index.html'"/>
<menuitem name="&ver16Cmd.label;" onclick="window.content.location.href='resource:/res/samples/test6.html'"/>
<menuitem name="&ver17Cmd.label;" onclick="window.content.location.href='http://slip/projects/marvin/bft/browser/bft_browser_applet.htm'"/>
<menuitem name="&ver18Cmd.label;" onclick="window.content.location.href='http://www.abcnews.com'"/>
<menuitem name="&ver19Cmd.label;" onclick="window.content.location.href='http://slip/projects/marvin/bft/browser/bft_browser_imagemap.html'"/>
<menuitem name="&ver20Cmd.label;" onclick="window.content.location.href='resource:/res/samples/test2.html'"/>
<menuitem name="&ver21Cmd.label;" onclick="window.content.location.href='http://www.cdrom.com/pub/png/png-MagnoliaAlpha.html'"/>
<menuitem name="&ver22Cmd.label;" onclick="window.content.location.href='resource:/res/samples/test13.html'"/>
<menuitem name="&ver23Cmd.label;" onclick="window.content.location.href='resource:/res/samples/test2.html'"/>
<menuitem name="&ver24Cmd.label;" onclick="window.content.location.href='http://slip/projects/marvin/bft/browser/bft_browser_html_mix3.html'"/>
<menuitem name="&ver25Cmd.label;" onclick="window.content.location.href='http://slip/projects/marvin/bft/browser/bft_browser_link.html'"/>
</menu>
<menu name="&viewDemoMenu.label;"> // Viewer tests.
<menuitem name="&demo0Cmd.label;" onclick="window.frames[0].frames[1].location.href='resource:/res/samples/test0.html'"/>
<menuitem name="&demo1Cmd.label;" onclick="window.frames[0].frames[1].location.href='resource:/res/samples/test1.html'"/>
<menuitem name="&demo2Cmd.label;" onclick="window.frames[0].frames[1].location.href='resource:/res/samples/test2.html'"/>
<menuitem name="&demo3Cmd.label;" onclick="window.frames[0].frames[1].location.href='resource:/res/samples/test3.html'"/>
<menuitem name="&demo4Cmd.label;" onclick="window.frames[0].frames[1].location.href='resource:/res/samples/test4.html'"/>
<menuitem name="&demo5Cmd.label;" onclick="window.frames[0].frames[1].location.href='resource:/res/samples/test5.html'"/>
<menuitem name="&demo6Cmd.label;" onclick="window.frames[0].frames[1].location.href='resource:/res/samples/test6.html'"/>
<menuitem name="&demo7Cmd.label;" onclick="window.frames[0].frames[1].location.href='resource:/res/samples/test7.html'"/>
<menuitem name="&demo8Cmd.label;" onclick="window.frames[0].frames[1].location.href='resource:/res/samples/test8.html'"/>
<menuitem name="&demo9Cmd.label;" onclick="window.frames[0].frames[1].location.href='resource:/res/samples/test9.html'"/>
<menuitem name="&demo10Cmd.label;" onclick="window.frames[0].frames[1].location.href='resource:/res/samples/test10.html'"/>
<menuitem name="&demo11Cmd.label;" onclick="window.frames[0].frames[1].location.href='resource:/res/samples/test11.html'"/>
<menuitem name="&demo12Cmd.label;" onclick="window.frames[0].frames[1].location.href='resource:/res/samples/test12.html'"/>
<menuitem name="&demo13Cmd.label;" onclick="window.frames[0].frames[1].location.href='resource:/res/samples/test13.html'"/>
<menuitem name="&demo14Cmd.label;" onclick="window.frames[0].frames[1].location.href='resource:/res/samples/test14.html'"/>
<menuitem name="&demo15Cmd.label;" onclick="window.frames[0].frames[1].location.href='resource:/res/samples/test15.html'"/>
<menuitem name="&demo16Cmd.label;" onclick="window.frames[0].frames[1].location.href='resource:/res/samples/test16.html'"/>
<menuitem name="&demo0Cmd.label;" onclick="window.content.location.href='resource:/res/samples/test0.html'"/>
<menuitem name="&demo1Cmd.label;" onclick="window.content.location.href='resource:/res/samples/test1.html'"/>
<menuitem name="&demo2Cmd.label;" onclick="window.content.location.href='resource:/res/samples/test2.html'"/>
<menuitem name="&demo3Cmd.label;" onclick="window.content.location.href='resource:/res/samples/test3.html'"/>
<menuitem name="&demo4Cmd.label;" onclick="window.content.location.href='resource:/res/samples/test4.html'"/>
<menuitem name="&demo5Cmd.label;" onclick="window.content.location.href='resource:/res/samples/test5.html'"/>
<menuitem name="&demo6Cmd.label;" onclick="window.content.location.href='resource:/res/samples/test6.html'"/>
<menuitem name="&demo7Cmd.label;" onclick="window.content.location.href='resource:/res/samples/test7.html'"/>
<menuitem name="&demo8Cmd.label;" onclick="window.content.location.href='resource:/res/samples/test8.html'"/>
<menuitem name="&demo9Cmd.label;" onclick="window.content.location.href='resource:/res/samples/test9.html'"/>
<menuitem name="&demo10Cmd.label;" onclick="window.content.location.href='resource:/res/samples/test10.html'"/>
<menuitem name="&demo11Cmd.label;" onclick="window.content.location.href='resource:/res/samples/test11.html'"/>
<menuitem name="&demo12Cmd.label;" onclick="window.content.location.href='resource:/res/samples/test12.html'"/>
<menuitem name="&demo13Cmd.label;" onclick="window.content.location.href='resource:/res/samples/test13.html'"/>
<menuitem name="&demo14Cmd.label;" onclick="window.content.location.href='resource:/res/samples/test14.html'"/>
<menuitem name="&demo15Cmd.label;" onclick="window.content.location.href='resource:/res/samples/test15.html'"/>
<menuitem name="&demo16Cmd.label;" onclick="window.content.location.href='resource:/res/samples/test16.html'"/>
</menu>
<menu name="&xptkMenu.label;"> // XPToolkit tests.
<menuitem name="&xptk1Cmd.label;" onclick="window.frames[0].frames[1].location.href='resource:/res/samples/checkboxTest.xul'"/>
<menuitem name="&xptk2Cmd.label;" onclick="window.frames[0].frames[1].location.href='resource:/res/samples/toolbarTest1.xul'"/>
<menuitem name="&xptk3Cmd.label;" onclick="window.frames[0].frames[1].location.href='resource:/res/samples/treeTest1.xul'"/>
<menuitem name="&xptk4Cmd.label;" onclick="window.frames[0].frames[1].location.href='resource:/res/samples/dexsimplemaster.xul'"/>
<menuitem name="&xptk5Cmd.label;" onclick="window.frames[0].frames[1].location.href='resource:/res/samples/dexanimmaster.xul'"/>
<menuitem name="&xptk6Cmd.label;" onclick="window.frames[0].frames[1].location.href='resource:/res/samples/tab.xul'"/>
<menuitem name="&xptk7Cmd.label;" onclick="window.frames[0].frames[1].location.href='resource:/res/samples/beeptest.html'"/>
<menuitem name="&xptk1Cmd.label;" onclick="window.content.location.href='resource:/res/samples/checkboxTest.xul'"/>
<menuitem name="&xptk2Cmd.label;" onclick="window.content.location.href='resource:/res/samples/toolbarTest1.xul'"/>
<menuitem name="&xptk3Cmd.label;" onclick="window.content.location.href='resource:/res/samples/treeTest1.xul'"/>
<menuitem name="&xptk4Cmd.label;" onclick="window.content.location.href='resource:/res/samples/dexsimplemaster.xul'"/>
<menuitem name="&xptk5Cmd.label;" onclick="window.content.location.href='resource:/res/samples/dexanimmaster.xul'"/>
<menuitem name="&xptk6Cmd.label;" onclick="window.content.location.href='resource:/res/samples/tab.xul'"/>
<menuitem name="&xptk7Cmd.label;" onclick="window.content.location.href='resource:/res/samples/beeptest.html'"/>
</menu>
</menu>
<menu name="&QA.label;"> // QA tests.
<menuitem name="&QABugCmd.label;" onclick="window.content.location.href='http://www.mozilla.org/quality/bug-writing-guidelines.html'"/>
<menuitem name="&QATempCmd.label;" onclick="window.content.location.href='http://www.mozilla.org/quality/bug-template.html'"/>
<menuitem name="&QASmokeCmd.label;" onclick="window.content.location.href='http://www.mozilla.org/quality/smoketests/'"/>
<menuitem name="&QAKnownBugCmd.label;" onclick="window.content.location.href='http://www.mozilla.org/quality/most-frequent-bugs/'"/>
</menu>
</menubar>
<box id="outer-box" align="vertical">
<toolbox>
<toolbar class="main-bar" chromeclass="toolbar">
<titledbutton id="back-button" align="bottom" value="&backButton.label;" onclick="BrowserBack()">
<observes element="canGoBack" attribute="disabled" onChange="BrowserSetBack()"/>
</titledbutton>
<titledbutton id="forward-button" align="bottom" value="&forwardButton.label;"
<titledbutton id="forward-button" align="bottom" value="&forwardButton.label;"
onclick="BrowserForward()">
<observes element="canGoForward" attribute="disabled" onChange="BrowserSetForward()"/>
</titledbutton>
<!-- Right now only regular reload is supported.
When the functionality is available, look for
'Shift' key pressed state and pass on appropriate
reload type. (The shift functionality is available. There's a shiftDown field
in the event object.) -->
<titledbutton id="reload-button" align="bottom" value="&reloadButton.label;"
onclick="window.frames[0].frames[1].location.reload()">
<observes element="canReload" attribute="disabled"/>
onclick="BrowserReallyReload(0)">
<observes element="canReload" attribute="disabled" onChange="BrowserSetReload()" />
</titledbutton>
<titledbutton id="stop-button" align="bottom" value="&stopButton.label;"
@ -644,7 +693,7 @@
<observes element="canPrint" attribute="disabled"/>
</titledbutton>
<titledbutton id="Throbber" onclick="window.frames[0].frames[1].location.href='&throbber.url;'">
<titledbutton id="Throbber" onclick="window.content.location.href='&throbber.url;'">
<observes element="Browser:Throbber" attribute="busy"/>
</titledbutton>
</toolbar>
@ -663,7 +712,7 @@
<titledbutton id="home-button" align="right" value="&homeButton.label;"
onclick="BrowserHome()"/>
<titledbutton id="netscape-button" align="right" value="&netscapeButton.label;"
onclick="window.frames[0].frames[1].location.href='http://home.netscape.com'"/>
onclick="window.content.location.href='http://home.netscape.com'"/>
<spring flex="100%"/>
</toolbar>
</toolbox>
@ -706,16 +755,14 @@
<menu><menuitem name="Sample Item One"/><menuitem name="Sample Item Two"/></menu>
</popup>
<box align="horizontal">
<titledbutton align="left" class="popup" popup="samplePopup"
<titledbutton align="left" class="button"
popupanchor="topleft" popupalign="bottomleft" value="&webButton.label;" />
<titledbutton align="left" class="popup" popup="samplePopup"
<titledbutton align="left" class="button"
popupanchor="topleft" popupalign="bottomleft" value="&mailButton.label;" />
<titledbutton align="left" class="popup" popup="samplePopup"
popupanchor="topleft" popupalign="bottomleft" value="&chatButton.label;" />
</box>
<spring flex="100%"/>
<box align="horizontal">
<titledbutton align="left" class="popup" popup="samplePopup"
<titledbutton align="left" class="popup" popup="samplePopup" tooltip="aTooltip" tooltiptext="This is a toolbar"
popupanchor="topleft" popupalign="bottomleft" value="&dayplannerButton.label;" />
<titledbutton align="left" class="popup" popup="samplePopup"
popupanchor="topleft" popupalign="bottomleft" value="&shoppingButton.label;" />
@ -733,5 +780,4 @@
</box>
</toolbar>
</toolbox>
</box>
</window>

View File

@ -0,0 +1,32 @@
/* -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
function FillInTooltip ( tipElement )
{
var retVal = false;
var button = document.getElementById('replaceMe');
if ( button ) {
var tipText = tipElement.getAttribute('tooltiptext');
if ( tipText != "" ) {
button.setAttribute('value', tipText);
retVal = true;
}
}
return retVal;
}

View File

@ -0,0 +1,104 @@
<?xml version="1.0"?>
<?xml-stylesheet href="chrome:/global/skin/" type="text/css"?>
<!DOCTYPE window>
<window xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
title="Unknown File Type"
width="425"
height="180"
onload="onLoad()">
<data>
<broadcaster id="data.location" type="url" value="url...to be replaced"/>
<broadcaster id="data.contentType" type="string" value="content-type...to be replaced"/>
<!-- Commands: more/pick/save/close -->
<broadcaster id="data.execute" command=""/>
</data>
<html:script>
var data;
var dialog;
function initData() {
// Create data object and initialize.
data = new Object;
data.location = document.getElementById("data.location");
data.contentType = document.getElementById("data.contentType");
data.execute = document.getElementById("data.execute");
}
function initDialog() {
// Create dialog object and initialize.
dialog = new Object;
dialog.contentType = document.getElementById("dialog.contentType");
dialog.more = document.getElementById("dialog.more");
dialog.pick = document.getElementById("dialog.pick");
dialog.save = document.getElementById("dialog.save");
dialog.cancel = document.getElementById("dialog.cancel");
}
function loadDialog() {
// Set initial dialog field contents.
dialog.contentType.childNodes[0].nodeValue = " " + data.contentType.getAttribute( "value" );
}
function onLoad() {
// Init data.
initData();
// Init dialog.
initDialog();
// Fill dialog.
loadDialog();
}
function more() {
dump( "unknownContent::more not implemented\n" );
}
function pick() {
dump( "unknownContent::pick not implemented\n" );
}
function save() {
// Execute "save to disk" logic.
data.execute.setAttribute("command","save");
}
function cancel() {
// Close the window.
data.execute.setAttribute("command","close");
}
</html:script>
<html:table style="width:100%;">
<html:tr>
<html:td colspan="4">
You have started to download a file of type
<html:div id="dialog.contentType" style="display:inline">
contentType goes here
</html:div>
</html:td>
</html:tr>
<html:tr>
<html:td style="width:25%">
<html:button id="dialog.more" onclick="more()" disabled="">More Info...</html:button>
</html:td>
<html:td style="width:25%">
<html:button id="dialog.pick" onclick="pick()" disabled="">Pick App...</html:button>
</html:td>
<html:td style="width:25%">
<html:button id="dialog.save" onclick="save()">Save File...</html:button>
</html:td>
<html:td style="width:25%">
<html:button id="dialog.cancel" onclick="cancel()">Cancel</html:button>
</html:td>
</html:tr>
</html:table>
</window>

View File

@ -1,10 +1,13 @@
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/xul.css" type="text/css"?>
<?xml-stylesheet href="chrome:/global/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://navigator/skin/" type="text/css"?>
<!DOCTYPE window
[
<!ENTITY mainWindow.title "Mozilla">
<!ENTITY mainWindow.titlemodifier "Mozilla">
<!ENTITY mainWindow.titlemodifierseperator " - ">
<!ENTITY mainWindow.preface "Source for">
<!ENTITY fileMenu.label "File">
<!ENTITY browserCmd.label "New Browser Window">
<!ENTITY newMenu.label "New">
@ -105,11 +108,13 @@
<window id="main-window" xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
onunload="if (appCore) appCore.close()"
title="Mozilla">
onunload="Shutdown()"
title="&mainWindow.title;" titlemodifier="&mainWindow.titlemodifier;"
titleseperator ="&mainWindow.titlemodifierseperator;" windowtype="navigator:viewsource"
align="vertical" width="640" height="480">
<html:script src="navigator.js"></html:script>
<html:script src="viewsource.js"></html:script>
<html:script src="chrome://navigator/content/navigator.js"></html:script>
<html:script src="chrome://navigator/content/viewsource.js"></html:script>
<broadcaster id="args" value="http://www.mozilla.org/"/>
<broadcaster id="canPrint"/>
@ -254,10 +259,7 @@
</menu>
</menubar>
<box id="outer-box" align="vertical">
<html:iframe id="content-frame" type="content" html:name="content" html:src="about:blank" flex="100%"/>
<box align="horizontal" id="status-bar">
@ -281,5 +283,4 @@
</box>
</box>
</box>
</window>