зеркало из https://github.com/mozilla/pjs.git
backout matt fisher change to navigator.xul. it was causing a crash
on macintosh, a hang on win32, and a startup crash on Linux.
This commit is contained in:
Родитель
61a2afc325
Коммит
073f4b8209
|
@ -20,7 +20,7 @@
|
||||||
if (appCore != null) {
|
if (appCore != null) {
|
||||||
dump("BrowserAppCore has been created.\n");
|
dump("BrowserAppCore has been created.\n");
|
||||||
appCore.Init("BrowserAppCore");
|
appCore.Init("BrowserAppCore");
|
||||||
appCore.setContentWindow(window.frames[0].frames[1]);
|
appCore.setContentWindow(window.frames[0]);
|
||||||
appCore.setWebShellWindow(window);
|
appCore.setWebShellWindow(window);
|
||||||
appCore.setToolbarWindow(window);
|
appCore.setToolbarWindow(window);
|
||||||
appCore.setDisableCallback("DoDisableButtons();");
|
appCore.setDisableCallback("DoDisableButtons();");
|
||||||
|
@ -50,7 +50,7 @@
|
||||||
function RefreshUrlbar()
|
function RefreshUrlbar()
|
||||||
{
|
{
|
||||||
//Refresh the urlbar bar
|
//Refresh the urlbar bar
|
||||||
document.getElementById('urlbar').value = window.frames[0].frames[1].location.href;
|
document.getElementById('urlbar').value = window.frames[0].location.href;
|
||||||
}
|
}
|
||||||
|
|
||||||
function BrowserBack()
|
function BrowserBack()
|
||||||
|
@ -79,7 +79,7 @@
|
||||||
|
|
||||||
function BrowserHome()
|
function BrowserHome()
|
||||||
{
|
{
|
||||||
window.frames[0].frames[1].home();
|
window.frames[0].home();
|
||||||
RefreshUrlbar();
|
RefreshUrlbar();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -96,7 +96,7 @@
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
window.frames[0].frames[1].location.href = url;
|
window.frames[0].location.href = url;
|
||||||
RefreshUrlbar();
|
RefreshUrlbar();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -486,7 +486,7 @@
|
||||||
</menu>
|
</menu>
|
||||||
<menu name="Bookmarks" onclick="OpenBookmarkURL(event.target)"
|
<menu name="Bookmarks" onclick="OpenBookmarkURL(event.target)"
|
||||||
datasources="rdf:bookmarks" id="NC:BookmarksRoot" open="true">
|
datasources="rdf:bookmarks" id="NC:BookmarksRoot" open="true">
|
||||||
<menuitem name="Add Current Page" onclick="BrowserAddBookmark(window.frames[0].frames[1].location.href,window.frames[0].frames[1].document.title);"/>
|
<menuitem name="Add Current Page" onclick="BrowserAddBookmark(window.frames[0].location.href,window.frames[0].document.title);"/>
|
||||||
<menuitem name="Manage Bookmarks..." onclick="BrowserEditBookmarks();"/>
|
<menuitem name="Manage Bookmarks..." onclick="BrowserEditBookmarks();"/>
|
||||||
<separator/>
|
<separator/>
|
||||||
</menu>
|
</menu>
|
||||||
|
@ -525,42 +525,42 @@
|
||||||
<menuitem name="Software Updates" onclick="BrowserReload();"/>
|
<menuitem name="Software Updates" onclick="BrowserReload();"/>
|
||||||
<menuitem name="Technical Support" onclick="BrowserReload();"/>
|
<menuitem name="Technical Support" onclick="BrowserReload();"/>
|
||||||
<menuitem name="Release Notes"
|
<menuitem name="Release Notes"
|
||||||
onclick="window.frames[0].frames[1].location.href='http://www.mozilla.org/projects/seamonkey/release-notes/index.html'"/>
|
onclick="window.frames[0].location.href='http://www.mozilla.org/projects/seamonkey/release-notes/index.html'"/>
|
||||||
|
|
||||||
<separator />
|
<separator />
|
||||||
<menuitem name="About Communicator Prototype"
|
<menuitem name="About Communicator Prototype"
|
||||||
onclick="window.frames[0].frames[1].location.href='http://www.mozilla.org/projects/seamonkey/release-notes/index.html'"/>
|
onclick="window.frames[0].location.href='http://www.mozilla.org/projects/seamonkey/release-notes/index.html'"/>
|
||||||
</menu>
|
</menu>
|
||||||
|
|
||||||
// Menu for testing.
|
// Menu for testing.
|
||||||
<menu name="Debug">
|
<menu name="Debug">
|
||||||
|
|
||||||
<menu name="Verification"> // Build verification sites.
|
<menu name="Verification"> // Build verification sites.
|
||||||
<menuitem name="Mozilla" onclick="window.frames[0].frames[1].location.href='http://www.mozilla.org'"/>
|
<menuitem name="Mozilla" onclick="window.frames[0].location.href='http://www.mozilla.org'"/>
|
||||||
<menuitem name="Yahoo" onclick="window.frames[0].frames[1].location.href='http://www.yahoo.com'"/>
|
<menuitem name="Yahoo" onclick="window.frames[0].location.href='http://www.yahoo.com'"/>
|
||||||
<menuitem name="Netscape" onclick="window.frames[0].frames[1].location.href='http://www.netscape.com'"/>
|
<menuitem name="Netscape" onclick="window.frames[0].location.href='http://www.netscape.com'"/>
|
||||||
</menu>
|
</menu>
|
||||||
|
|
||||||
<menu name="Viewer"> // Viewer tests.
|
<menu name="Viewer"> // Viewer tests.
|
||||||
<menuitem name="Demo #0" onclick="window.frames[0].frames[1].location.href='resource:/res/samples/test0.html'"/>
|
<menuitem name="Demo #0" onclick="window.frames[0].location.href='resource:/res/samples/test0.html'"/>
|
||||||
<menuitem name="Demo #1" onclick="window.frames[0].frames[1].location.href='resource:/res/samples/test1.html'"/>
|
<menuitem name="Demo #1" onclick="window.frames[0].location.href='resource:/res/samples/test1.html'"/>
|
||||||
<menuitem name="Demo #2" onclick="window.frames[0].frames[1].location.href='resource:/res/samples/test2.html'"/>
|
<menuitem name="Demo #2" onclick="window.frames[0].location.href='resource:/res/samples/test2.html'"/>
|
||||||
<menuitem name="Demo #3" onclick="window.frames[0].frames[1].location.href='resource:/res/samples/test3.html'"/>
|
<menuitem name="Demo #3" onclick="window.frames[0].location.href='resource:/res/samples/test3.html'"/>
|
||||||
<menuitem name="Demo #4" onclick="window.frames[0].frames[1].location.href='resource:/res/samples/test4.html'"/>
|
<menuitem name="Demo #4" onclick="window.frames[0].location.href='resource:/res/samples/test4.html'"/>
|
||||||
<menuitem name="Demo #5" onclick="window.frames[0].frames[1].location.href='resource:/res/samples/test5.html'"/>
|
<menuitem name="Demo #5" onclick="window.frames[0].location.href='resource:/res/samples/test5.html'"/>
|
||||||
<menuitem name="Demo #6" onclick="window.frames[0].frames[1].location.href='resource:/res/samples/test6.html'"/>
|
<menuitem name="Demo #6" onclick="window.frames[0].location.href='resource:/res/samples/test6.html'"/>
|
||||||
<menuitem name="Demo #7" onclick="window.frames[0].frames[1].location.href='resource:/res/samples/test7.html'"/>
|
<menuitem name="Demo #7" onclick="window.frames[0].location.href='resource:/res/samples/test7.html'"/>
|
||||||
<menuitem name="Demo #8" onclick="window.frames[0].frames[1].location.href='resource:/res/samples/test8.html'"/>
|
<menuitem name="Demo #8" onclick="window.frames[0].location.href='resource:/res/samples/test8.html'"/>
|
||||||
<menuitem name="Demo #9" onclick="window.frames[0].frames[1].location.href='resource:/res/samples/test9.html'"/>
|
<menuitem name="Demo #9" onclick="window.frames[0].location.href='resource:/res/samples/test9.html'"/>
|
||||||
<menuitem name="Demo #10" onclick="window.frames[0].frames[1].location.href='resource:/res/samples/test10.html'"/>
|
<menuitem name="Demo #10" onclick="window.frames[0].location.href='resource:/res/samples/test10.html'"/>
|
||||||
<menuitem name="Demo #11" onclick="window.frames[0].frames[1].location.href='resource:/res/samples/test11.html'"/>
|
<menuitem name="Demo #11" onclick="window.frames[0].location.href='resource:/res/samples/test11.html'"/>
|
||||||
<menuitem name="Demo #12" onclick="window.frames[0].frames[1].location.href='resource:/res/samples/test12.html'"/>
|
<menuitem name="Demo #12" onclick="window.frames[0].location.href='resource:/res/samples/test12.html'"/>
|
||||||
<menuitem name="Demo #13" onclick="window.frames[0].frames[1].location.href='resource:/res/samples/test13.html'"/>
|
<menuitem name="Demo #13" onclick="window.frames[0].location.href='resource:/res/samples/test13.html'"/>
|
||||||
</menu>
|
</menu>
|
||||||
|
|
||||||
<menu name="XPToolkit"> // XPToolkit tests.
|
<menu name="XPToolkit"> // XPToolkit tests.
|
||||||
<menuitem name="Toolbar" onclick="window.frames[0].frames[1].location.href='resource:/res/samples/toolbarTest1.xul'"/>
|
<menuitem name="Toolbar" onclick="window.frames[0].location.href='resource:/res/samples/toolbarTest1.xul'"/>
|
||||||
<menuitem name="Tree" onclick="window.frames[0].frames[1].location.href='resource:/res/samples/treeTest1.xul'"/>
|
<menuitem name="Tree" onclick="window.frames[0].location.href='resource:/res/samples/treeTest1.xul'"/>
|
||||||
</menu>
|
</menu>
|
||||||
|
|
||||||
</menu>
|
</menu>
|
||||||
|
@ -580,12 +580,12 @@
|
||||||
</titledbutton>
|
</titledbutton>
|
||||||
|
|
||||||
<titledbutton id="reload-button" align="bottom" value="Reload"
|
<titledbutton id="reload-button" align="bottom" value="Reload"
|
||||||
onclick="window.frames[0].frames[1].location.reload()">
|
onclick="window.frames[0].location.reload()">
|
||||||
<observes element="canReload" attribute="disabled"/>
|
<observes element="canReload" attribute="disabled"/>
|
||||||
</titledbutton>
|
</titledbutton>
|
||||||
|
|
||||||
<titledbutton id="stop-button" align="bottom" value="Stop"
|
<titledbutton id="stop-button" align="bottom" value="Stop"
|
||||||
onclick="window.frames[0].frames[1].stop()">
|
onclick="window.frames[0].stop()">
|
||||||
<observes element="canStop" attribute="disabled"/>
|
<observes element="canStop" attribute="disabled"/>
|
||||||
</titledbutton>
|
</titledbutton>
|
||||||
|
|
||||||
|
@ -600,7 +600,7 @@
|
||||||
<observes element="canPrint" attribute="disabled"/>
|
<observes element="canPrint" attribute="disabled"/>
|
||||||
</titledbutton>
|
</titledbutton>
|
||||||
|
|
||||||
<titledbutton id="Throbber" onclick="window.frames[0].frames[1].home()">
|
<titledbutton id="Throbber" onclick="window.frames[0].home()">
|
||||||
<observes element="Browser:Throbber" attribute="busy"/>
|
<observes element="Browser:Throbber" attribute="busy"/>
|
||||||
</titledbutton>
|
</titledbutton>
|
||||||
</toolbar>
|
</toolbar>
|
||||||
|
@ -609,13 +609,13 @@
|
||||||
<titledbutton id="home-button" align="right" value="Home"
|
<titledbutton id="home-button" align="right" value="Home"
|
||||||
onclick="BrowserHome()"/>
|
onclick="BrowserHome()"/>
|
||||||
<titledbutton id="netscape-button" align="right" value="Netscape"
|
<titledbutton id="netscape-button" align="right" value="Netscape"
|
||||||
onclick="window.frames[0].frames[1].location.href='http://my.netscape.com'"/>
|
onclick="window.frames[0].location.href='http://my.netscape.com'"/>
|
||||||
<spring flex="100%"/>
|
<spring flex="100%"/>
|
||||||
</toolbar>
|
</toolbar>
|
||||||
</toolbox>
|
</toolbox>
|
||||||
|
|
||||||
|
|
||||||
<html:iframe id="content-frame" html:name="content" html:src="contentframe.html" flex="100%" />
|
<html:iframe id="content-frame" html:name="content" html:src="BrowserInitPage.html" flex="100%" />
|
||||||
|
|
||||||
|
|
||||||
<html:script>
|
<html:script>
|
||||||
|
|
Загрузка…
Ссылка в новой задаче