Closed Bug 1660679 Opened 5 years ago Closed 5 years ago

document.writeln not working for child windows

Categories

(Core :: DOM: Core & HTML, defect)

79 Branch
defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: peter.feige, Unassigned)

Details

Attachments

(1 file)

Attached file open-child-window.htm

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0

Steps to reproduce:

Load the attached HTML file into firefox and click on the link "open child window".

Actual results:

A child window pops up with the document text of the PARENT window:
"I am the PARENT window."

Expected results:

A child window pops up with the document text written to the CHILD window:
"I am the CHILD window."

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Component: Untriaged → DOM: Core & HTML
Product: Firefox → Core

The attachment behaves according to the expected results for me.

Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Resolution: --- → WORKSFORME

But the expected behaviour is NOT the same like the actual behaviour. Expected ist the text with CHILD, actual the text with PARENT is written, which is only present in the parent window. The document content from the parent window is displayed in the child window. This is wrong. The child window should contain the text written to it in the javascript code.

(In reply to Peter Feige from comment #3)

But the expected behaviour is NOT the same like the actual behaviour. Expected ist the text with CHILD, actual the text with PARENT is written, which is only present in the parent window. The document content from the parent window is displayed in the child window. This is wrong. The child window should contain the text written to it in the javascript code.

OK, I cannot reproduce it any more.
Sorry, seems to be my fault...

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: