Open Bug 1176706 Opened 9 years ago Updated 2 years ago

Async write to blank document in new window is ignored if there were no sync write.

Categories

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

38 Branch
defect

Tracking

()

People

(Reporter: ettavolt, Unassigned)

References

(Depends on 1 open bug)

Details

(Keywords: testcase)

Attachments

(1 file, 1 obsolete file)

User Agent: Opera/12.16 (X11; Linux i686) Presto/2.12.388

Steps to reproduce:

Script opens new window, does some AJAX, sends HTML with write().


Actual results:

Nothing changes in new document by the time/after document.close(). It still has readyState 'uninitialized' (unspecified here: https://developer.mozilla.org/ru/docs/Web/API/Document/readyState), visibilityState 'hidden' and no content.


Expected results:

readyState 'complete' even before write is called (since there is a AJAX timeout), and graphical representation of written content after.
Attached file Test for the issue. (obsolete) —
A bit wrong title. Actually only async write is ignored, and only if there was no sync write before.
Component: Untriaged → DOM: Core & HTML
Product: Firefox → Core
Keywords: testcase
Summary: First write to blank document in new window is ignored. → Async write to blank document in new window is ignored if there were no sync write.

The issue is that the async about:blank load loads a new document, so the write is happening on a no-longer-loaded document in the "Async" case in the testcase.

Status: UNCONFIRMED → NEW
Depends on: sync-about-blank
Ever confirmed: true
Attached file scratch_1.html

Aha, so the solution would have been to not preserve the reference to initial value of document of the new window.

Attachment #8625294 - Attachment is obsolete: true
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: