Closed Bug 454151 Opened 16 years ago Closed 14 years ago

Save Page As "HTML only" omits html that is saved with "complete" & was saved in Firefox 2

Categories

(Firefox :: File Handling, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: fergus, Unassigned)

References

()

Details

(Whiteboard: [CLOSEME 2010-11-15])

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9.0.1) Gecko/2008070206 Firefox/3.0.1
Build Identifier: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9.0.1) Gecko/2008070206 Firefox/3.0.1

On recently switching from Firefox 2 to 3, I discovered that some websites' HTML data is no longer properly downloaded by the "Save Page As..." command with the "Web Page, HTML only" option, even though it IS saved by using the "Web Page, complete" option and then simply throwing the unwanted contents of the "_files" directory into the trash. Sorry, I don't know enough HTML to know why.  It may be improperly read cookies or something, because the "HTML only" option produces a file that contains little other than a prompt for me to enter my zip code.

Reproducible: Always

Steps to Reproduce:
1. Click on File -> Save Page As...
2. Choose option "Web Page, HTML only"
3. Click on Save
4. Open resulting file ending in ".html"

compare to
1. Click on File -> Save Page As...
2. Choose option "Web Page, complete"
3. Click on Save
4. Delete extra folder created with suffix "_files"
5. Open resulting file ending in ".html"
Actual Results:  
	<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><title>Excite - TV</title><META name="description" content="Get the latest-breaking TV news, soap opera updates, Top TV picks & Pans, and Nielsen Top 10."><META name="keywords" content="TV, television, sitcoms, dramas, soaps, soap operas, TV listings, Nielsen, talk shows, daytime TV, abc, cbs, nbc, tv"><script src=http://docs1.excite.com/exUni.js></script><script>function readCookie(name) {
name += "=";
if(document.cookie == '') {
return false;
} else {
var firstChar, lastChar;
var theBigCookie = document.cookie;
firstChar = theBigCookie.indexOf(name);
var nameStartIdx =			theBigCookie.indexOf(name);
var preFirstCharInName = 	theBigCookie.substring(nameStartIdx-1,nameStartIdx);
if (preFirstCharInName != "" && preFirstCharInName != " ") {
name = ' '+name;
firstChar = theBigCookie.indexOf(name);
}
if (firstChar != -1) {
if (firstChar != -1) firstChar += name.length;
lastChar = theBigCookie.indexOf(';', firstChar);
if(lastChar == -1) lastChar = theBigCookie.length;
return unescape(theBigCookie.substring(firstChar, lastChar));
} else {
return false;
}
}
}
function setCookie (name, value, hours, path, domain, secure) {
var not_NN2 = (navigator && navigator.appName && (navigator.appName == 'Netscape') && navigator.appVersion && (parseInt(navigator.appVersion) == 2))?false:true;
if(hours && not_NN2) {
if ( (typeof(hours) == 'string') && Date.parse(hours) ) {
var numHours = hours;
} else if (typeof(hours) == 'number') {
var numHours = (new Date((new Date()).getTime() + hours*3600000)).toGMTString();
}
}
document.cookie = name + '=' + escape(value) + ((numHours)?(';expires=' + numHours):'') + ((path)?';path=' + path:'') + ((domain)?';domain=' + domain:'') + ((secure && (secure == true))?'; secure':'');
}
var UID = readCookie('UID');
var registered = readCookie('registered');
var user_num = readCookie('user_num');
var lcd = readCookie('lcd');
if (UID != false && registered != "no" && registered != "partial" && user_num == false && lcd == false) {
var documentLocation = escape(document.location);
setCookie('rd_url',documentLocation,'','/','.excite.com');
document.location.replace('http://activation.excite.com');
}</script><script language="JavaScript"><!--
// --></script><script>pageId=Math.round(Math.random() * 10000000000);
randomNum = Math.round(Math.random() * 10000000000) + 6;</script> <script language="JavaScript" src="http://utm.excite.com/u.js"></script></head><body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0" bgcolor="#ffffff" text="#000000" alink="#0033cc" link="#0033cc"  vlink="#0033cc"  ><basefont face="Verdana, Arial, Helvetica, Sans-Serif" Size=2><base target=_self>
<table border=0 cellspacing=6 cellpadding=0 width=100%><tr><td>
   <table border=0 cellspacing=0 cellpadding=0 width=100% height=45>
     <tr valign=top bgcolor="#000053">
	   <td align=left valign=top color=000000><a href=http://tv.entertainment.excite.com/index.html><img src=http://ak.imgfarm.com/ex/lg/tv_lg_320x45.gif width=320 height=45 alt="Excite TV" border=0></a></td>
	   <td valign=top>
	    <script>if((typeof globHtmlSearchBoxOnly)=='function')globHtmlSearchBoxOnly();</script> </td>
     </tr>
     <tr>
	   <td colspan=2>
	    <script>
var globHtmlFeaturesLineObj=new Object();if((typeof globHtmlFeaturesLine)=='function')globHtmlFeaturesLine(globHtmlFeaturesLineObj);</script> </td>
     </tr>
     <tr>
	   <td colspan=2>
		<script language="Javascript">
		<!--
		globHtmlHeaderLine();
		//-->
		</script>
	   </td>
     </tr>

     <tr>
	   <td colspan=2 align=center>
      			 <div id="adHeader" style="position:relative; width: 728px; height:90px; margin: 3px 3px;"></div>
				<div style="text-align: center; font-size: 10px;">Advertisement</div>
	   </td>
     </tr>

     <tr>
	   <td colspan=2>
	<script language="Javascript">
	<!--
	globHtmlHeaderLine();
	//-->
	</script>
	   </td>
     </tr>
  </table></td></tr>
</table> 
<div id="adOverlay"></div> <center>
<table width=100% cellpadding=4 cellspacing=0 border=0 bgcolor=ffffff><tr><td>

<table width=100% cellpadding=0 cellspacing=2 border=0 bgcolor=ffffff>
<tr align=center>
	<td height=20 width=11% bgcolor=e2e2e2><a href='http://entertainment.excite.com/index.html'><B><font color=00008A face=Verdana,Sans-Serif size=1>Entertainment</font></B></a></td><td height=20 width=11% bgcolor=e2e2e2><a href='http://fashion.excite.com/index.html'><B><font color=00008A face=Verdana,Sans-Serif size=1>Fashion</font></B></a></td><td height=20 width=11% bgcolor=e2e2e2><a href='http://movies.excite.com'><B><font color=00008A face=Verdana,Sans-Serif size=1>Movies</font></B></a></td><td width=7% bgcolor=9CCFCE><a href='http://tv.entertainment.excite.com/index.html'><B><font color=000000 face=Verdana,Sans-Serif size=1>TV</font></B></a></td><td width=7% bgcolor=e2e2e2><a href='http://entertainment.excite.com/music/index.html'><B><font color=00008A face=Verdana,Sans-Serif size=1>Music</font></B></a></td><td height=20 width=11% bgcolor=e2e2e2><a href='http://entertainment.excite.com/celebgossip/index.html'><B><font color=00008A face=Verdana,Sans-Serif size=1>Celeb Gossip</font></B></a></td><td height=20 width=11% bgcolor=e2e2e2><a href='http://games.excite.com/index.html'><B><font color=00008A face=Verdana,Sans-Serif size=1>Games</font></B></a></td><td height=20 width=11% bgcolor=e2e2e2><a href='http://games.excite.com/casino/index.html'><B><font color=00008A face=Verdana,Sans-Serif size=1>Casino</font></B></a></td></tr>
<tr>
	<td colspan=9 bgcolor="9CCFCE"><img src="http://ak.imgfarm.com/images/spacer.gif" height=2 width=1></td>
</tr>
</table>
</td></tr></table>
</center><script language=javascript>
var styleTags = '<style>' +
	'body, layer { color: 000000; background-color:ffffff; }' +
	'body, td, center, p, div { font-family: arial; font-size: 10pt; color:000000 }' +
	'b { font-family: arial }' +
	'.sp { line-height: 2pt; }' +
	'.bold { font-weight: bold; font-family: arial; font-size: 10pt }' +
	'.small { font-size: 8pt; font-family: verdana }' +
	'.smallbold { font-weight: bold; font-size: 8pt; font-family: verdana; }' +
	'.welcome { font-size: 12pt; font-family: arial; color: 000099 }' +
	'.large { font-size: 12pt; }' +
	'.margin { margin-top: 2px; margin-bottom: 2px; }' +
	'.exc { padding-bottom: 3; padding-left: 3; padding-right: 3; padding-top: 5; }' +
	'</style>' ;
document.write(styleTags);
</script>

  <form method=post action="http://www.excite.com/tv/data.jsp">
 
   <table width=100%>  <tr><td align=center><font face=Verdana,Sans-Serif size=2 color=black><b>Enter your zip code</b></td></tr>
<tr><td align=center><input type=text name=zip maxlength=5></td></tr>
<tr><td align=center><input type=submit value="Submit"></td></tr>
</table>
</form> 
 
 <br> 

	
		  <BR>	
		 <table border=0 cellspacing=0 cellpadding=0 width=100%>
		<tr>
		<td align=center>
		  <div id="adFooter"></div>	
		</td>
		</tr>
		</table>
	    <script>
	var globHtmlFooterObj=new Object(); if((typeof globHtmlFooter)=='function')globHtmlFooter(globHtmlFooterObj);
	</script>
<script>
function isSecure() {var sec=0;if(parent.frames.length!=0){for(var i=0;i<eval(parent.frames);i++){var url=parent.frames[i].location.href;if (url.substring(0,5)=='https')var sec=1;}}else{var url=parent.location.href;if(url.substring(0,5)=='https')var sec=1;}if (sec==1)return true;else return false;}</script>

<script>
if (typeof(isSecure) == 'function' && !isSecure()) {
	document.write('<scr'+'ipt src=http://bfc.excite.com/dm/dm_client_iac.js></scr'+'ipt>');
}
</script>
<script>
if (typeof(isSecure) == 'function' && !isSecure()) {
	if (typeof(DM_addToLoc) == 'function' && typeof(DM_tag) == 'function') {
		DM_addToLoc("site", ("Excite"));
		DM_addToLoc("area", ("ENTERTAINMENT.TV"));
		DM_tag();
	}
}
</script>
<script>
if (typeof(isSecure) == 'function' && !isSecure()) {
	document.write('<scr'+'ipt src="http://js.revsci.net/gateway/gw.js?csid=I05529"></scr'+'ipt>');
}
</script>

<!--AdRevolver Selective Inventory Pixel code begin-->

<SCRIPT language='JavaScript'>
<!--
var rnd = Math.round(Math.random()*10000000);
var https = false; try {https = document.location.href.indexOf('https')==0}catch(e){}
document.writeln('<IFRAME src="http'+(https?'s':'')+'://media.adrevolver.com/adrevolver/trace?sip=51&cpy='+rnd+'" width="0" height="0" frameborder="0"></IFRAME>');
//-->
</SCRIPT>
<!--AdRevolver Selective Inventory Pixel code end-->

<script>
if ((typeof(rsinetsegs) != "undefined") && (typeof(updateCookieSC) == "function")) {
		updateCookieSC('BS',rsinetsegs.join(","));
}
</script>
<!-- ###SITE:excite#### -->
<script type="text/javascript">
var uNum2 = readCookie('user_num');
//alert('UIDvalEx = '+uNum2);
var UIDvalEx = "";
if(uNum2 != null && uNum2 != false) {
 UIDvalEx= uNum2;
} 

var AAMB1 = "";
var AAMB2 = "";
var AAMB3 = "";
var AAMB4 = "";


var aamRnd = Math.round(Math.random() * 100000000);
adsite = "excite.com";
areaValEx = "ENTERTAINMENT.TV";
// Adserver URL
adserver = "http://iacas.adbureau.net/bserver";
// Ad tag targeting values which will be appended to each ad request section in the bserver ad call
allAdTags = "/AAMALL/acc_random=" + aamRnd + "/pageid=" + aamRnd;
// Individual tags for each ad request - increment the adx variable name and the AAMBx parameter.
ad1 = "/AAMB1/site="+adsite+"/area="+areaValEx+"/aamsz=728x90/UID="+UIDvalEx;


ad2 = "/AAMB2/site="+adsite+"/area="+areaValEx+"/aamsz=160x600/UID="+UIDvalEx;

ad3 = "/AAMB3/site="+adsite+"/area="+areaValEx+"/aamsz=728x90_FOOTER/UID="+UIDvalEx;

// bserver ad call insert the adx variables
document.write('<SCR' + 'IPT SRC="' + adserver + allAdTags + ad1 + ad2 + ad3 +'?" type="text/JavaScript" language="JavaScript">');
document.write('</SCR' + 'IPT>');
</script>

<script language="javascript" type="text/javascript">

function renderAd(divName, aambTag)
{
var invObj = 'INV' + divName;
try {
var code = eval(aambTag);
} catch(aamErr){ }
if (typeof(code) != 'undefined') {
if(navigator.userAgent.indexOf('MSIE') > -1) {
document.getElementById(divName).innerHTML +=
'<div id="TMP' + divName + '" style="display:none">' +
escape('<body><div id="adDiv">' + code + '</div>') +
'</div><iframe name="' + invObj + '" width="0" height="0" frameborder="0" ' +
'onload="javascript:try { document.getElementById(\'' + divName + '\').' +
'insertAdjacentElement(\'beforeEnd\', window.frames[\'' + invObj + '\'].' +
'document.getElementById(\'adDiv\')) } catch(aamErr) { }"></iframe>';
window.frames[invObj].document.location =
'javascript:unescape(parent.document.getElementById(\'TMP' +
divName + '\').innerHTML)';
} else document.writeln('<div id="' + invObj + '" style="display:none">' +
code + '<script type="text/javascript" defer="true">' +
'document.getElementById(\'' + divName + '\').innerHTML = ' +
'document.getElementById(\'' + invObj + '\').innerHTML;' +
'document.getElementById(\'' + invObj +
'\').innerHTML = \'\';</scr' + 'ipt></div>');
}
}
adserver2 = "http://iacas.adbureau.net/jserver";
target = "/site=excite.com/area=ENTERTAINMENT.TV/aamsz=720x300/UID="+UIDvalEx;
// Cache-busting and pageid values
random = Math.round(Math.random() * 100000000);
if (!pageNum) var pageNum = Math.round(Math.random() * 100000000);
document.write('<SCR');
document.write('IPT SRC="' + adserver2 + '/acc_random=' + random + target + "/pageid=" + pageNum + '">');
document.write('</SCR');
document.write('IPT>');
// End Hide -->
</script>	


<script language="javascript" type="text/javascript">
	var adCount = 3;
	// DIV tag names in order
	
	
	var divNames = new Array('adHeader', 'adSkyscraper', 'adFooter');
		
	
	// AAMB variable names in order
	var aambTags = new Array('AAMB1', 'AAMB2', 'AAMB3');
	for (a = 0; a < adCount; a++) {
	if (document.getElementById(divNames[a]) != null) {
		renderAd(divNames[a], aambTags[a]);
		}
	}
 </script> </body>
</html>

Expected Results:  
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"> 
  




 
 

 
	<title>Excite - TV</title><meta name="description" content="Get the latest-breaking TV news, soap opera updates, Top TV picks &amp; Pans, and Nielsen Top 10."><meta name="keywords" content="TV, television, sitcoms, dramas, soaps, soap operas, TV listings, Nielsen, talk shows, daytime TV, abc, cbs, nbc, tv"><script src="9-07_files/exUni.js"></script><script>function readCookie(name) {
name += "=";
if(document.cookie == '') {
return false;
} else {
var firstChar, lastChar;
var theBigCookie = document.cookie;
firstChar = theBigCookie.indexOf(name);
var nameStartIdx =			theBigCookie.indexOf(name);
var preFirstCharInName = 	theBigCookie.substring(nameStartIdx-1,nameStartIdx);
if (preFirstCharInName != "" && preFirstCharInName != " ") {
name = ' '+name;
firstChar = theBigCookie.indexOf(name);
}
if (firstChar != -1) {
if (firstChar != -1) firstChar += name.length;
lastChar = theBigCookie.indexOf(';', firstChar);
if(lastChar == -1) lastChar = theBigCookie.length;
return unescape(theBigCookie.substring(firstChar, lastChar));
} else {
return false;
}
}
}
function setCookie (name, value, hours, path, domain, secure) {
var not_NN2 = (navigator && navigator.appName && (navigator.appName == 'Netscape') && navigator.appVersion && (parseInt(navigator.appVersion) == 2))?false:true;
if(hours && not_NN2) {
if ( (typeof(hours) == 'string') && Date.parse(hours) ) {
var numHours = hours;
} else if (typeof(hours) == 'number') {
var numHours = (new Date((new Date()).getTime() + hours*3600000)).toGMTString();
}
}
document.cookie = name + '=' + escape(value) + ((numHours)?(';expires=' + numHours):'') + ((path)?';path=' + path:'') + ((domain)?';domain=' + domain:'') + ((secure && (secure == true))?'; secure':'');
}
var UID = readCookie('UID');
var registered = readCookie('registered');
var user_num = readCookie('user_num');
var lcd = readCookie('lcd');
if (UID != false && registered != "no" && registered != "partial" && user_num == false && lcd == false) {
var documentLocation = escape(document.location);
setCookie('rd_url',documentLocation,'','/','.excite.com');
document.location.replace('http://activation.excite.com');
}</script><script language="JavaScript"><!--
// --></script><script>pageId=Math.round(Math.random() * 10000000000);
randomNum = Math.round(Math.random() * 10000000000) + 6;</script> <script language="JavaScript" src="9-07_files/u.js"></script><script language="JavaScript1.5">_ujv='1.5';</script><!-- base --></head><body topmargin="0" leftmargin="0" alink="#0033cc" bgcolor="#ffffff" link="#0033cc" marginheight="0" marginwidth="0" text="#000000" vlink="#0033cc"><basefont face="Verdana, Arial, Helvetica, Sans-Serif" size="2">
<table border="0" cellpadding="0" cellspacing="6" width="100%"><tbody><tr><td>
   <table border="0" cellpadding="0" cellspacing="0" height="45" width="100%">
     <tbody><tr bgcolor="#000053" valign="top">
	   <td color="000000" align="left" valign="top"><a href="http://tv.entertainment.excite.com/index.html"><img src="9-07_files/tv_lg_320x45.gif" alt="Excite TV" border="0" height="45" width="320"></a></td>

	// DIV tag names in order
	
	
	var divNames = new Array('adHeader', 'adSkyscraper', 'adFooter');
		
	
	// AAMB variable names in order
	var aambTags = new Array('AAMB1', 'AAMB2', 'AAMB3');
	for (a = 0; a < adCount; a++) {
	if (document.getElementById(divNames[a]) != null) {
		renderAd(divNames[a], aambTags[a]);
		}
	}
 </script><div id="INVadHeader" style="display: none;"></div>
<div id="INVadFooter" style="display: none;"></div>
 </body></html>

Actual results produced a .html file of size 12 KB

Expected results produced a .html file of size 156 KB, too long for me to include fully here.
This bug was reported using Firefox 3.0 or older, which is no longer supported. The bug has also not been changed in over 500 days and is still in UNCO.
Reporter, please retest this bug in Firefox 3.6.10 or later using a fresh profile, http://support.mozilla.com/en-US/kb/managing+profiles. If you still see this problem, please update the bug. If you no longer see the bug, please set the resolution to RESOLVED, WORKSFORME.

This is a mass search of unconfirmed bugs that have no activity on them, so if you feel a bug was marked in error, just remove the CLOSEME comment in the whiteboard within the next month.
Whiteboard: [CLOSEME 2010-11-15]
No reply, INCOMPLETE. Please retest with Firefox 3.6.12 or later and a new profile (http://support.mozilla.com/kb/Managing+profiles). If you continue to see this issue with the newest firefox and a new profile, then please comment on this bug.
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: