[Webkit-unassigned] [Bug 93518] New: Submitting a form, then clicking back changes hidden input values.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Aug 8 13:55:04 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=93518

           Summary: Submitting a form, then clicking back changes hidden
                    input values.
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
               URL: https://www.baka.ca
        OS/Version: Windows 7
            Status: UNCONFIRMED
          Severity: Major
          Priority: P2
         Component: Forms
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: frank.forte at gmail.com
                CC: frank.forte at gmail.com


Submitting a form, then clicking back would change hidden input values.

I have three forms on a page, completely valid HTML5.  The third form has the following hidden inputs:
type="hidden" name="order_id" value="new"
type="hidden" name="order_type" value="up"

After submitting the form, then clicking back, the page source says (correctly) for the third form:
type="hidden" name="order_id" value="1"
type="hidden" name="order_type" value="up"

The above values are pre-populated server side so that they can edit the current order (as opposed to creating a duplicate order)


HOWEVER, the "inspect element"  (Google Chrome 21.0.1180.75 m) shows:
type="hidden" name="order_id" value="new"
type="hidden" name="order_type" value="new"

The value "new" for order type is completely unexpected in the third form, it should be "up" as the page source indicates.

Submitting the third form again makes my website throw an error because the form fields in the third form do not match the order type "new". (The order type should be "up"). This is how I found the bug.

Two things that went wrong:
1) the value of order_id is not being updated in the DOM... even though when I click "view source" it shows the correctly updated value.

2) order_type is getting a completely unexpected value

This bug went away when I changed the inputs to type="text" and added style="display:none"

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list