TESTCASE for bug #235868

Frame window:
Popup window: (note that this page must be loaded from a different domain)

The correct behavior should overwrite the content of 'field1' whenever a button is pressed.
The bug causes the value to be inserted in the middle or appended.

Reproducible: Always
Releases affected: > 1.4.1
OS Tested: Linux i686

Buggy Not Buggy
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7a) Gecko/20040218 Build ID: 2004021808 Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.1) Gecko/20031008
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040113 Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030630
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031007 Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3.1) Gecko/20030428
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030225