Closed Bug 278716 Opened 20 years ago Closed 20 years ago

calling form target from popup window is opened in new window instead of opened frame with such name

Categories

(SeaMonkey :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 270414

People

(Reporter: gertruda, Unassigned)

Details

User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b) Gecko/20050116 If we use page with frames and some action on it calls java script function which opens popup window which in turn calls submit of form with target in main frame, then Mozilla opens new window instead of 'main' page Reproducible: Always Steps to Reproduce: 1. there are 4 html files: ------------------- index.html ------------------ <html> <frameset COLS="25%, *"> <frame name="frame1" src="frame1.html"> <frame name="frame2" src="frame2.html"> </frameset> </html> ------------------------ frame1.html -------------------- <html> frame 1 - the place where we want to target form action from popup window </html> -------------------------- frame1_new.html --------------------- <html> here we go from popup window - should be frame1 </html> ---------------------------- frame2.html ---------------------------- <html> <script> function testBug() { var myWindow = window.open("", "myTest"); var doc = myWindow.document; doc.open(); doc.write("<html><body"); doc.writeln(" onload=\"document.forms[0].submit() ;self.close (); \">"); doc.writeln("<form target=\"frame1\" action=\"frame1_new.html\">"); doc.writeln("</form></body></html>"); doc.close(); } </script> frame 2<br> <input type="button" value="test bug" onclick="testBug();" /> </html> ---------------------------- 2. launch index.html in Mozilla. 3. press 'test bug' button Actual Results: new window with frame1_new.html is opened Expected Results: it should find the already opened frame with name 'frame1' and target submit there This bug was not in Mozilla (Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.3) Gecko/20040910). I've noticed it first in Mozilla Firefox 1.0.
Fixed by checkin for bug 270414 *** This bug has been marked as a duplicate of 270414 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.