Permalink
Browse files

Teach form submission about seamless navigation

  • Loading branch information...
Adam Barth authored and eseidel committed Apr 11, 2012
1 parent a8d4def commit 3f27340577ac91b2cc0a834dd2c6fdfcac296c32
@@ -1,10 +1,2 @@
-FAIL frames[0].document.body.textContent should be DONE
-. Was Waiting...
-
- window.onload=function() {
- frames[0].document.getElementsByTagName('form')[0].submit();
- }
-
-
-.
+PASS frames[0].document.body.textContent is "DONE\n"
@@ -1,10 +1,2 @@
-FAIL frames[0].document.body.textContent should be DONE
-. Was Waiting...
-
- window.onload=function() {
- frames[0].document.getElementsByTagName('form')[0].submit();
- }
-
-
-.
+PASS frames[0].document.body.textContent is "DONE\n"
@@ -1,10 +1,2 @@
-FAIL frames[0].document.body.textContent should be DONE
-. Was Waiting...
-
- window.onload=function() {
- frames[0].document.getElementsByTagName('form')[0].submit();
- }
-
-
-.
+PASS frames[0].document.body.textContent is "DONE\n"
@@ -1,10 +1,2 @@
-FAIL frames[0].document.body.textContent should be DONE
-. Was Waiting...
-
- window.onload=function() {
- frames[0].document.getElementsByTagName('form')[0].submit();
- }
-
-
-.
+PASS frames[0].document.body.textContent is "DONE\n"
@@ -313,9 +313,7 @@ void FrameLoader::submitForm(PassRefPtr<FormSubmission> submission)
return;
}
- Frame* targetFrame = m_frame->tree()->find(submission->target());
- if (!submission->state()->sourceDocument()->canNavigate(targetFrame))
- return;
+ Frame* targetFrame = findFrameForNavigation(submission->target(), submission->state()->sourceDocument());
if (!targetFrame) {
if (!DOMWindow::allowPopUp(m_frame) && !ScriptController::processingUserGesture())
return;

0 comments on commit 3f27340

Please sign in to comment.