Open Bug 345026 Opened 19 years ago Updated 3 years ago

Iframe content goes away while new page is loading

Categories

(Core :: DOM: Navigation, defect)

x86
Windows XP
defect

Tracking

()

REOPENED

People

(Reporter: martijn.martijn, Unassigned)

References

Details

(Keywords: testcase)

Attachments

(1 file)

See upcoming testcase. To reproduce: Disable bfcache by setting browser.sessionhistory.max_total_viewers to 0 in about:config Then click on the link to slow loading site Result: The frame contentdisappears just before the new page is loaded, while the rest of the page content is still there for a split second. Expected result: The frame content should disappear at the same time as the rest of the page content. With bfcache on, you don't see the bug and you get to see the expected result. This is not a recent regression, I can see the bug even with Mozilla1.7.12.
Attached file testcase
Ah, I see what's going on here. nsDocument::Destroy unbinds the iframe, which kills the docshell inside it, but doesn't tear down the outer document presentation... This probably depends on subshells surviving unbind, and maybe on nuking nsDocument::Destroy (both already covered by bugs). :(
Depends on: 348156
This should be fixed on trunk with the patch from bug 348156
Assignee: nobody → jonas
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Can we get a regression test in for this, by the way?
Flags: in-testsuite?
Hmm.. so this wasn't actually fixed by the patch in bug 348156. We still kill the inner docshell since docshells aren't part of cycle collection :( So I guess this one is blocked by getting docshells added to cyclecollection.
Depends on: 372107
Severity: normal → S3

The bug assignee is inactive on Bugzilla, so the assignee is being reset.

Assignee: jonas → nobody
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: