Closed Bug 34028 Opened 26 years ago Closed 26 years ago

Page does not display properly

Categories

(Core :: JavaScript Engine, defect, P3)

PowerPC
Mac System 8.6
defect

Tracking

()

RESOLVED INVALID

People

(Reporter: pbergsag, Assigned: rogerl)

References

()

Details

From Bugzilla Helper: User-Agent: Mozilla/4.72 (Macintosh; U; PPC) BuildID: 200003308 The ulr for this page loads the @Home Home page for Winnipeg, Manitoba, Canada. The first attempt to load this page is the most successful although the page only partially loads. The progress bar shows the browers has finished. There is a java script error message at the bottom of the page. Subsequent attempts to load this page causes less information to load. To confirm this bug you may need someone using the @Home cable internet service since this page may only be accessible by subscribers. Reproducible: Always Steps to Reproduce: 1. Click on the @Home homepage ulr http://www.carltn1.mb.wave.home.com/ 2. Page partially loads. Actual Results: 1. This page is partially loaded. 2. There is a java script error message at the bottom of the page. Expected Results: The page should load correctly. Mozilla seems to have difficulty with some of the javascrip @Home uses for their home page. This page loads correctly using Netscape 4.72.
I can't get that URL to go anywhere at all (even under 4.72) - is it correct?
I believe that unless you are an @Home subscriber you may not be allowed access to this page as it is for members only. Is there anyone using @Home who can test this page?
Most likely a dup of bug 28351. pbergsag, the problem is probably that the @Home page uses <LAYER> tags or other non-standards-compliant tags and JavaScript features which will not be supported in Mozilla. I'm confident that Excite@Home will modify their pages eventually to load in Mozilla. You could save the page to disk and then attach it to this bug report using the "Create an attachment link", and we'll have a look at it.
I think it may be a java script problem, but I am not sure. I also wonder if Netscape 6 doesn't like to redirected to a 4.x page? Here is the Page Source for this page: <!-- Final N4/IE4 version. Context aware (/ vs /V3 vs development). Mirror this to development directories as needed. 4/22/98 TMC --> <HTML> <HEAD> <TITLE> Browser </TITLE> <SCRIPT language="JavaScript"> <!-- // $Id: index.htm,v 1.48 1999/04/01 22:04:40 terence Exp terence $ // // legacy code -- biggest change we'll have to make is that instead of // redirecting to netscape4/index.htm, I redirect to spawnindex.htm // though some day it will be just netscape4/index.htm again // // NEVER EDIT THE FOLLOWING LINE: var strMasterSiteVer = "62"; // GLOBALS var strConfig; var strMsoId = ""; var strTZ = ""; var strPlatform = ""; var strWeight = ""; var strMaybePrompt = ""; var strWelcome = ""; // "f" for next time, or "t" for already seen it var strApp = navigator.appName; var strAppVer = navigator.appVersion.substring( 0, 1 ); var strSiteMode = ""; // maybe this will be Buford modes too f=3.0 b B g G var strSiteVer = ""; var strBetaVer = ""; // newchip (empty) var strUserName = ""; // note -- need more helper variables as in autoconfig.htm var bV2Enabled = false; var strAppMinorVer = navigator.appVersion.substring( 2, 4 ); // // can see V2 if: // Netscape 5 (Mozilla) or // Netscape 4 (4.01 to 4.05 not 4.04) // if( ( strApp == "Netscape" ) && ((strAppVer == "5") || (( strAppVer == "4" ) && ( strAppMinorVer > "01" ) && ( strAppMinorVer != "04" ))) ) { bV2Enabled = true; } else { bV2Enabled = false; } var spawnindex = ""; // //alert( "Pardon me -- I'm debugging! " + strAppVer ) // // spawnindex now set later... to customize for development, search for // "development version" and edit spawnindex value // var bRedirecting = false; function redirect( strURL ) { if( strApp == "Netscape" ) { location.replace( strURL ); } else { location.href = strURL; } bRedirecting = true; } function GetToken( strSource, strName, cSep ) { var strRet = ""; var iOffset; var iEnd; if( strSource.length > 0 ){ iOffset = strSource.indexOf( strName ); if( iOffset != -1 ){ iOffset += strName.length + 1; iEnd = strSource.indexOf( cSep, iOffset ); if( iEnd == -1 ) { iEnd = strSource.length; } strRet = strSource.substring( iOffset, iEnd ); } } return( strRet ); } function SaveSetup() { document.cookie = "NETSCAPE_LIVEWIRE.CONFIG=" + "sv=" + strSiteVer + "&" + "sm=" + strSiteMode + "&" + "mso=" + strMsoId + "&" + "tz=" + strTZ + "&" + "pf=" + strPlatform + "&" + "cw=" + strWeight + "&" + "mp=" + strMaybePrompt + "&" + "app=" + strApp + "&" + "appver=" + strAppVer + "&" + "we=" + strWelcome + "&" + "bv=" + strBetaVer + "&" + // newchip (save) "un=" + strUserName + ";" + "path=/;" + "expires=" + ( new Date( 2010, 1, 1 ) ).toGMTString( ); } // Store the search param in a temp cookie var strSearch = ""; // IE4 now supports the location.search.substring property, so allow any // browser with a version of 4 or more to use it: // this actually causes an error with Netscape 2, but oh well // if( ( navigator.appName == "Netscape" ) || ( parseInt( strAppVer ) >= 4 ) ) { strSearch = document.location.search.substring( 1, document.location.search.length ); } else { var iQoffset = document.location.indexOf( "?", 0 ); if( iQoffset > 0 ) { strSearch = document.location.substring( iQoffset + 1, document.location.length ); } } var strConfig = GetToken( document.cookie, "NETSCAPE_LIVEWIRE.CONFIG", ";" ); if( strSearch.length > 0 ) { document.cookie = "NETSCAPE_LIVEWIRE.SEARCH=" + strSearch + "; path=/"; } if( ( strConfig == null ) || ( strConfig == "" ) || // No config cookie ( parseInt( strMasterSiteVer ) > parseInt( GetToken( strConfig, "sv", "&" ) ) ) || // old site ver ( GetToken( strConfig, "sv", "&" ) == "" ) || ( ( strSearch.length > 0 ) && ( ( strSearch.indexOf( "LOCALE" ) != -1 ) || ( strSearch.indexOf( "NOCHECK" ) != -1 ) ) ) // locale or nocheck params ) { // go to autoconfig if( strSearch.length > 0 ) { strSearch = "?" + strSearch; } document.cookie = "NETSCAPE_LIVEWIRE.FRONTDOOR=t; path=/"; //location.href = "autoconfig.htm" + strSearch; redirect( "autoconfig.htm" + strSearch ); // was /autoconfig.htm } else { // regular path strSiteVer = GetToken( strConfig, "sv", "&" ); strSiteMode = GetToken( strConfig, "sm", "&" ); strMsoId = GetToken( strConfig, "mso", "&" ); strPlatform = GetToken( strConfig, "pf", "&" ); strWeight = GetToken( strConfig, "cw", "&" ); strApp = GetToken( strConfig, "app", "&" ); // strAppVer = GetToken( strConfig, "appver", "&" ); strWelcome = GetToken( strConfig, "we", "&" ); strBetaVer = GetToken( strConfig, "bv", "&" ); // newchip (read) strUserName = GetToken( strConfig, "un", "&" ); if( strMsoId == "" ) { // missing msoId // We don't know what city they are in! // location.href = "setlocale.htm"; redirect( "setlocale.htm" ); // was /setlocale.htm } else { // bail out on LOAD document.cookie = "NETSCAPE_LIVEWIRE.FRONTDOOR=t; path=/"; if( strSearch.length > 0 ) { if( strSearch.length > 0 ) { strSearch = "?" + strSearch; } var strLoad = GetToken( strSearch, "LOAD", "," ); if( strLoad != "" ) { redirect( strLoad ); } } } if( ! bRedirecting ) { // MAIN CODE // welcome experience if( ( strWelcome == "f" ) && ( GetToken( document.cookie, "NETSCAPE_LIVEWIRE.SKIPWELCOME", ";" ) != "t" ) ) { strWelcome = "t"; SaveSetup(); redirect( "/welcome/" ); // shrug, not sure //redirect( "/mso/" + strMsoId + "/welcome/" ); } else { // regular path if( strApp == "Netscape" ) { if(( strAppVer.substring( 0, 1 ) == "4" ) || ( strAppVer.substring( 0, 1 ) == "5" )) { if( ( strSiteMode == 'f' ) || ( bV2Enabled == false ) ) { // this is n4 -> legacy location.replace( "/netscape4/" + strSearch ); } else { // always go to bingo, forget buford/V2 // if ((strSiteMode == 'G') || (strSiteMode == 'g') || // (location.href.indexOf("/V3/") != -1) || // (location.href.indexOf("/layers/bingo/") != -1) // ) { // xxx new case for Bingo if( location.href.indexOf( "/bingo/" ) != -1 ) { spawnindex = "/layers/bingo/spawnindex.html"; alert("Development version: "+spawnindex); } else { spawnindex = "/V3/spawnindex.htm"; } goChromeless(); } // else { // this is buford // if( location.href.indexOf( "layers/A" ) != -1 ) { // spawnindex = "/layers/A/spawnindex.htm"; // alert("Development version: "+spawnindex); // } else { // spawnindex = "/V2/spawnindex.htm"; // NB leaving this here just in case, but the whole buford case is pretty much moot 9/11/98 TC // } // goChromeless(); // launch interface if nec. // } } else if( strAppVer.substring( 0, 1 ) == "3" ) { location.replace( "/netscape3/" + strSearch ); } else { // Netscape 2? doesn't exist anyway // prior javascript error nullifies this // location.href = "/lite/" + strSearch; } } else if( strApp == "Microsoft Internet Explorer" ) { if( strAppVer.substring( 0, 1 ) == "4" ) { if ((strSiteMode == 'G') || (strSiteMode == 'g')) { // xxx new case if( location.href.indexOf( "bingo" ) != -1 ) { spawnindex = "/layers/bingo/spawnindex.html"; alert("Development version: "+spawnindex); } else { spawnindex = "/V3/spawnindex.htm"; } goChromeless(); } else { // non-Bingo ie4 location.replace( "/ie4/" + strSearch ); } } else { // ie 3 location.href = "/ie3/" + strSearch; } } else { // not sure, non-Netscape and non-IE location.href = "/netscape3/" + strSearch; } } } } // Cookie functions function GetCookie( Doc, Name ) { var search = "NETSCAPE_LIVEWIRE." + Name + "="; var RetStr = ""; var offset = 0; var end = 0; if (Doc.cookie.length > 0) { offset = Doc.cookie.indexOf(search); if (offset != -1) { offset += search.length; end = Doc.cookie.indexOf(";", offset); if (end == -1) { end = Doc.cookie.length; } RetStr = Doc.cookie.substring(offset, end); } } return (RetStr); } function SetCookie ( Doc, Name, Value, Path, Expire) { if( Path == null ) { default_path = "; path=/"; } else { default_path = "; path=" + Path; } //var default_path = ((Path == null) ? "; path=/" : "; path=" + Path); if( ( Expire == null ) || ( Expire == 0 ) ) { default_expire = ""; } else { default_expire = "; expires=" + Expire.toGMTString(); } //var default_expire = ((Expire == null) ? "" : "; expires=" + Expire.toGMTString()); Doc.cookie = "NETSCAPE_LIVEWIRE." + Name + "=" + Value + default_expire + default_path; } // sample SetCookie(document, "AT_HOME_BEENTHERE", "false", // "/", new Date(2010, 1, 1)); // val = GetCookie( document, "AT_HOME_BEENTHERE" ); // // New look stuff // function Zap() { SetCookie(document, "AT_HOME_CHROMELESS", "0", "/"); } function goChromeless() { // alert("goChromeless"); window.name = "homegateway"; // For development we will want to be able to choose a different // spawnindex.htm -- so we can do this by specifying SPAWN // ( DEFAULT SHOULD BE CHANGED BEFORE LAUNCH!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!) if( strSearch != "" ) { strParam = GetToken( strSearch, "SPAWN", "," ) if( strParam != "" ) { spawnindex = strParam; } } url = spawnindex; child = 0; // no child (that we know of) as of yet // // normalize to our two sizes // var x,y,w,h; w = screen.width; // override width with query string of ?640 if (strSearch.indexOf("640") != -1) { w = 640; } if (strSearch.length > 0) { url = url + strSearch; } // if (strSearch.length > 0) { url = url + "?" + strSearch; } // // pick the window dimensions // xxx need Mac-specific geometries // if( navigator.appVersion.indexOf( "Mac" ) != -1 ) { if (w >= 800) { w = 800+11; h = 600-18; } else { w = 640+11; h = 480 -18; } // bug fix: need to normalize to screen if it won't fit :( if (w > screen.width) { w = screen.width; } if (h > screen.height) { h = screen.height; } } else { // assume it's win95 or ... what else, unix? if (w >= 800) { w = 800; h = 600-28; } // win95 taskbar else { w = 640; h = 480-28; } } // // to the best of our knowledge, is there a chromeless window open yet? // var val = GetCookie(document, "AT_HOME_CHROMELESS"); // // assume we need to open a new window // unless we can successfully refocus // var toTheBatmobile = true; if (val == "1") { // yes, so refocus if we can win = window.open("", 'homecontent'); // make sure this is really the right window if ((typeof win.mainWidth) == "undefined") { // oops, it's not win.close(); // to the batmobile! } else { win.focus(); if( strSearch != "" ) { strSearch = strSearch.substring( 1, strSearch.length ); win.LoadFromGateway( strSearch ); } // // okay, we're all done. call off the dogs. // toTheBatmobile = false; } } // no, so open if (toTheBatmobile) { // silly mac... starts java if x and y are offscreen if ( navigator.appVersion.indexOf( "Mac" ) != -1 ) { x = (screen.width - w)/2; y = (screen.height -14 - h)/2; // Mac menubar? if (y < 0) { y = 0; } } else { x = (screen.width - w)/2; y = (screen.height -28 - h )/2; // win95 taskbar // alert("screen.height: "+screen.height+" h: "+h+" y: "+y); } // make the window name must be relatively unique amongst // the www universe! // xxx bingo: IE4 only supports inner width/height (width/height) // options. *IF* we assume standard window border thicknesses, // then we only need to substract 12 from width and 49 from height // for N4, the outers will override. child = window.open(url,'homecontent','top='+y+',left='+x+',screenX='+x+ ',screenY='+y+',width='+(w-12)+',height='+(h-49)+',outerWidth='+w+',outerHeight= '+h+',menubar=no,toolbar=no,location=no,directories=no,status=yes,scrollbars= no,hotkeys=yes'); //alert(strSiteMode); if ((strSiteMode != 'b') && (strSiteMode != 'g')) { // let 'f' and 'B' both mean focus if (child) { child.focus(); } } else { // keep me on top after that pesky open top.focus(); } } } function dump(d) { s = ""; for (foo in d) { s += foo+" = "+d[foo]+"; "; } alert(s); } // --> </SCRIPT> </HEAD> <BODY bgcolor=white link=red vlink=blue> <img src="/V3/placeholders/contentgateway.gif"> <BR> <BR> <!-- <a href="" onClick="Zap(); return false;">.</a> --> <noscript> <br> The @Home site requires a JavaScript-enabled browser.<br> Click <a href=/download/install-15/><b>here</b></a> to download the latest @Home browser. </noscript> </BODY> </HTML>
I tried out this html, and got a bunch of JS errors that had to do with the fact that many lines were wrapped - so line comments and string literals were broken across a line break. Fixing those gave me a page that runs fine, but does nothing. The original bug report said that a javascript error was reported - could it be these same line break issues or was that just a problem with pasting into Bugzilla?
Can we go anywhere further with this bug? Or do we close it? pbergsag@home.com? rogerl? Gerv
INVALIDating; probably bad HTML, and no way of checking now. Gerv
Status: UNCONFIRMED → RESOLVED
Closed: 26 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.