If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

JavaScript history object reloads all frames when history.go(0) is used in one of the frames

UNCONFIRMED
Unassigned

Status

()

Core
Document Navigation
--
minor
UNCONFIRMED
8 years ago
8 years ago

People

(Reporter: Jiri Hovorka, Unassigned)

Tracking

({helpwanted})

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(3 attachments)

(Reporter)

Description

8 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; cs; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; cs; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729)

Hello.

  I have filled this bug to 'Bookmarks & History' because there is no 'JavaScript' category.

  This report concerns JavaScript history object when using page with frames displayed by Firefox 3.5.3.
  Every time JS called history.go(0) function to reload page which resides in a frame, it reloaded ALL the frames (like clicking on refresh button). See attached example.
  There is not trivial, but simple workaround - change document.location (also included in attached files).

  I'm not sure if it is a real bug or just a feature:). I took a look on several JS references and there were no mentions of how history.* functions should behave when used in document in frames. Tt is unclear for me how this SHOULD work.
 The fact is that IE (8) and Opera (9.6, 10) reload ONLY the frame in which history.go(0) was invoked. I find their behaviour more logical than reload ALL the frames, but that's just my personal taste.

  What is the correct behaviour (if there is such a thing)?

Thank you,
J.Hovorka

Reproducible: Always

Steps to Reproduce:
1. build FRAMESET page
2. use history.go(0) in one of the frames in JavaScript

(see attached files)
Actual Results:  
reloads ALL the frames

Expected Results:  
Probably reload just the frame in which history.go(0) was called - i'm not sure, specifications are not clear:)
(Reporter)

Comment 1

8 years ago
Created attachment 405661 [details]
Main file (index)
(Reporter)

Comment 2

8 years ago
Created attachment 405662 [details]
top frame
(Reporter)

Comment 3

8 years ago
Created attachment 405663 [details]
Bottom frame (with workaround)
Component: Bookmarks & History → Document Navigation
Product: Firefox → Core
QA Contact: bookmarks → docshell
Keywords: helpwanted
You need to log in before you can comment on or make changes to this bug.