-
ggaren authored
Added test case for <rdar://problem/4268278> Submitting a form in onUnload event handler causes crash in -[WebDataSource(WebPrivate) _commitIfReady:] * manual-tests/onunload-form-submit-crash.html: Added. WebKit: Reviewed by Eric. Manual testcase added: WebCore/manual-tests/onunload-form-submit-crash.html - Fixed <rdar://problem/4268278> Submitting a form in onUnload event handler causes crash in -[WebDataSource(WebPrivate) _commitIfReady:] The problem is that the form submission in the unload event kicks off a new load in the midst of the load that caused the unload event to fire in the first place, so the two loads stomp each other. The solution is to cancel the first load and let the unload handler's load win. (Firefox does the same.) * WebView.subproj/WebFrame.m: (-[WebFrame _transitionToCommitted:]): Moved call to -closeURL up the call stack to _continueLoad...
3d613f1f