libwww-perl / WWW-Mechanize

Handy web browsing in a Perl object
https://metacpan.org/pod/WWW::Mechanize
Other
68 stars 53 forks source link

WM: Using back() no longer preserves form data #143

Open spazm opened 7 years ago

spazm commented 7 years ago

neo...@gmail.com reported on Dec 16, 2008

1. Fill out a form with set_fields()
2. Submit the form
3. Use back()
4. Verify the value of the fields with value().  They will be empty.

Before, in version 1.50, using back() would preserve form data.  This is
how my browser behaves when I use the back button.

Now, using back() resets the form data.

I am using the following configuration:

WWW::Mechanize version 1.52
Perl version 5.8.8
Ubuntu 8.04 kernel 2.6.24-21-generic #1 SMP i686

It appears that back() calls _update_page(), which then calls _reset_page()
and deletes the form data.

Details

Imported from Google Code issue 83 via archive

Comments

petda...@gmail.com commented on Dec 22, 2008 :

(No comment was entered for this change.)

mark.sto...@gmail.com commented on Feb 1, 2013 :

James,

Could you add a test case to t/local/back.t which confirms that the problem you reported is still present?