Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(354)

Unified Diff: ios/web/web_state/ui/crw_web_controller.mm

Issue 2763173002: Form submission with blank target is broken. (Closed)
Patch Set: Fix JS formatting. Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ios/web/web_state/js/resources/core.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/web_state/ui/crw_web_controller.mm
diff --git a/ios/web/web_state/ui/crw_web_controller.mm b/ios/web/web_state/ui/crw_web_controller.mm
index 5204ae4a1656e50bb3cc2cd284f5a327bef4315b..b959f8a6b18874a996791ea2fe4cfbfbd57cb58e 100644
--- a/ios/web/web_state/ui/crw_web_controller.mm
+++ b/ios/web/web_state/ui/crw_web_controller.mm
@@ -2555,17 +2555,6 @@ const NSTimeInterval kSnapshotOverlayTransition = 0.5;
DLOG(WARNING) << "JS message parameter not found: href";
return NO;
}
- const GURL targetURL(href);
- const GURL currentURL([self currentURL]);
- bool targetsFrame = false;
- message->GetBoolean("targetsFrame", &targetsFrame);
- if (!targetsFrame && web::UrlHasWebScheme(targetURL)) {
- // The referrer is not known yet, and will be updated later.
- const web::Referrer emptyReferrer;
- [self registerLoadRequest:targetURL
- referrer:emptyReferrer
- transition:ui::PAGE_TRANSITION_FORM_SUBMIT];
- }
std::string formName;
message->GetString("formName", &formName);
base::scoped_nsobject<NSSet> observers([_observers copy]);
« no previous file with comments | « ios/web/web_state/js/resources/core.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698