Closed Bug 60946 Opened 24 years ago Closed 24 years ago

Page added several times to history due to document.write()

Categories

(Core :: DOM: Navigation, defect, P3)

x86
Linux
defect

Tracking

()

VERIFIED DUPLICATE of bug 35340
mozilla0.9

People

(Reporter: bugzilla-mozilla-20220926, Assigned: radha)

References

()

Details

(Whiteboard: nsbeta1+)

Attachments

(1 file)

From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux 2.2.16-22 i686; en-US; m18) Gecko/20001121 BuildID: 2000112108 When navigating to http://www.mozillazine.org/, the page is often added two or three times to the browser history. A similar occurrence happens when you navigate to the 'build comments' page. Reproducible: Sometimes Steps to Reproduce: 1. Go to http://www.mozillazine.org/ 2. Check the back button's drop-down history or the 'go' menu. 3. optional: If it's not duplicated, try reloading once or twice. Actual Results: Two instances of 'Daily News - MozillaZine!' in the back button and three in the 'go' menu. Expected Results: Should have seen a single instance of the page, and none in the button's drop-down menu (until navigating forward from the page, of course). This may be related to bug 48501. I'll mark it as depending on the bug, as suggested by bz in #mozillazine.
Depends on: 48501
That's odd. This is working for me, on the 2000112108 Linux build. Do you have to do anything else to reproduce it?
I just tried a fresh install of 2000112108 (from -sea.tar.gz), and it appears to only occur when I have JavaScript turned on ("Enable JavaScript for Navigator"). It must be the <script> tags for the banner ads. I'll attach a copy of the page with only the scripts (if I change them appreciably the problem disappears, so they're almost verbatim).
The problem is, the banner ad script has few document.write() which is not currently handled by mozilla. Eric Pollmann has a bug on this. Once that is fixed, this should get fixed automatically. This is not related to 48501, where the multiple entries are created due to pagfe refresh. Removing that dependency.
Depends on: 35340
No longer depends on: 48501
re-summarising
Summary: Page added several times to history → Page added several times to history due to document.write()
nav triage team: p3 for nsbeta1.
Keywords: nsbeta1
*** Bug 62438 has been marked as a duplicate of this bug. ***
How related is bug 65483 ?
*** Bug 64183 has been marked as a duplicate of this bug. ***
nav triage team: Marking nsbeta1+
Whiteboard: nsbeta1+
This does depend on 35340. Will look in to this once 35340 is fixed.
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla0.9
marking this dupe of 35340. Mozillazine doesn't have the ad anymore though. *** This bug has been marked as a duplicate of 35340 ***
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
VERIFIED Dupe
Status: RESOLVED → VERIFIED
Component: History: Session → Document Navigation
QA Contact: claudius → docshell
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: