Closed Bug 666570 Opened 14 years ago Closed 6 years ago

form submit followed by continuing document.writes in a newly opened window doesn't work right

Categories

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

defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: moz.bugzilla, Unassigned)

References

()

Details

(Keywords: regression)

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:5.0) Gecko/20100101 Firefox/5.0 Build Identifier: Mozilla/5.0 (Windows NT 6.1; rv:5.0) Gecko/20100101 Firefox/5.0 Before the upgrade to FF 5.0 a webpage containing the script provided in the TestURL was working as a sharm. After the upgrade, when you click on "open popup" it didnt generate the virtual webpage with document.write, it will only show everything is after the </script> tag, the problem is due to </script> tag inside the document.write function (I need to do it, for generate a popup form with autosubmit). Reproducible: Always Steps to Reproduce: 1. Click on Open popup 2. Give a look to the Popup Source page. Actual Results: Firefox will open a popup, and write inside everything is after the <script></script> tag is written. Expected Results: Firefox will open a popup, and write inside the popup the form and script for autosubmit it. Tested on Win7 64bit and 32bit. With Internet Explorer 8 and 9 it work as sharm.
> Before the upgrade to FF 5.0 Upgrade from where? Firefox 4 has the same behavior... In any case, it looks like this page does a submit() while it's still being written to, then the following write() cancels the submit is my guess. Checking on that.
The behavior here changed back in October 2010, in this range: http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=178f26e21cfc&tochange=ad0a0be8be74 I'm guessing the culprit is the CreateAboutBlankContentViewer change mrbkap added, somehow... Henri, do your about:blank changes affect this at all?
And resummarizing and over to DOM.
Assignee: general → nobody
Status: UNCONFIRMED → NEW
Component: JavaScript Engine → DOM
Ever confirmed: true
Keywords: regression
QA Contact: general → general
Summary: </script> tag inside a document.write function. → form submit followed by continuing document.writes in a newly opened window doesn't work right
Attached file Testcase
OS: Windows 7 → All
Hardware: x86 → All
Version: unspecified → Trunk
(In reply to comment #1) > > Before the upgrade to FF 5.0 > > Upgrade from where? From the automatic update of ff. > > Firefox 4 has the same behavior... > > In any case, it looks like this page does a submit() while it's still being > written to, then the following write() cancels the submit is my guess. > Checking on that. I'v written it on Oct 2009, and I'v saw it still working some months ago. That's why I thought it was due of FF 5.x upgrade. But Yes, u'r right, with FF 4.0.1 it still did not work. So maybe FF 3.x I was using during the developing.
(In reply to comment #2) > Henri, do your about:blank changes affect this at all? It seems that they don't.
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046 Move all DOM bugs that haven’t been updated in more than 3 years and has no one currently assigned to P5. If you have questions, please contact :mdaly.
Priority: -- → P5
Component: DOM → DOM: Core & HTML

Worksforme, as far as I can tell. The popup tries to load "gw_vpopup.php".

Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: