Closed
Bug 137784
Opened 23 years ago
Closed 23 years ago
"Save As" of a Javascript generated page does not save the original source.
Categories
(Core Graveyard :: File Handling, defect)
Tracking
(Not tracked)
VERIFIED
DUPLICATE
of bug 115328
People
(Reporter: jmdesp, Assigned: law)
References
()
Details
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:0.9.9+) Gecko/20020415
BuildID: 2002041503
Usually it seems that what Mozilla saves with "save page as" is the original
page, not the page as modified by Javascript, but at least for this page, it is
beaten and does save a modified page.
I could reproduce this under Linux, with 2002041521.
Reproducible: Always
Steps to Reproduce:
1. Open and save the linked page on disk
2. Open the saved page
3. At the top of the page, the advertissement picture appears twice.
It was there just once in the original page.
Actual Results:
View source on the server will show your this inside the page
<td valign="middle">
<script language="javascript">
function affichepub(){
var str="";
str+="<a href=banners.php?op=click&bid=46 target=_blank><img
src=http://www.cibleclick.com/cibles/banniere/symp.cfm?site_id=66209739&friend_id=502907710&banniere_id=3003
border=0></a>";
document.write(str);
document.close();
}
</script>
<table border="0" cellpadding="1" cellspacing="0" bgcolor="#cbb673"
height="62"><tbody><tr>
<td bgcolor="#cbb673"><script language="javascript">affichepub();</script></td>
</tr></tbody></table>
</td>
If you watch the save page, you find this instead inside the source :
<td valign="middle">
<script language="javascript">
function affichepub(){
var str="";
str+="<a href=banners.php?op=click&bid=46 target=_blank><img
src=http://www.cibleclick.com/cibles/banniere/symp.cfm?site_id=66209739&friend_id=502907710&banniere_id=3003
border=0></a>";
document.write(str);
document.close();
}
</script>
<table border="0" cellpadding="1" cellspacing="0" bgcolor="#cbb673"
height="62"><tbody><tr>
<td bgcolor="#cbb673"><script language="javascript">affichepub();</script><a
href="http://dico.fj.free.fr/mozilla/bugbar/banners.php?op=click&bid=46"
target="_blank"><img src="critiqueview.good2_files/symp.gif" border="0"></a></td>
</tr></tbody></table>
</td>
What as been saved on the disk is the page after the execution of
affichepub().
When the page is loaded affichepub() is executed again, so the image will appear
twice.
Expected Results: The page should be saved as it was before the firts execution
of affichepub().
As bug 120457 shows, some user want exactly the opposite of that.
They want the page saved to have the current content, not the original provided
by the server.
Maybe there should be a choice for the user about what to save.
Comment 1•23 years ago
|
||
Are you saving "html only" or "complete"?
| Reporter | ||
Comment 2•23 years ago
|
||
"complete", even if it's not that complete as some of the background images are
not saved, but this is another bug.
Comment 3•23 years ago
|
||
Ah, in that case this is a duplicate of "Dirty DOM being fed to
webbrowserpersist - need to parse a fresh one from cache"
*** This bug has been marked as a duplicate of 115328 ***
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
Comment 4•23 years ago
|
||
marking verified as a duplicate.
if you decide to reopen this bug, please clarify why.
search string for bugspam removal: SalviaGuaranitica
Status: RESOLVED → VERIFIED
Updated•9 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•