[Webkit-unassigned] [Bug 6958] form submit in onload handler causes an infinite loop

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jul 26 18:02:46 PDT 2011


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





--- Comment #11 from Kevin H McCullough <BugZilla at XORGaming.com>  2011-07-26 18:02:46 PST ---
(In reply to comment #4)
> This is really an infinite loop.
> 
> I think the reason for this is that it submits the form right away, whereas for a location change, we schedule it and it gets done next time around the event loop. I think form submission should be changed to work the same way as other location changes, sharing the "redirection timer" with the rest.

NavigationScheduler::scheduleFormSubmission()

calls

schedule(adoptPtr(new ScheduledFormSubmission()))

Does this mean the submission is using the "redirection timer"?  It seems like the infinite loop is because on each new load the body's onload handler is called.  However, you are not stuck in this loop, I can click on another link and navigate away from the looping page.

-- 
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