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

Unified Diff: ios/chrome/browser/ui/static_content/static_html_view_controller.mm

Issue 2734843004: Use targetFrame to decide whether to allow load in static html view. (Closed)
Patch Set: 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/ui/static_content/static_html_view_controller.mm
diff --git a/ios/chrome/browser/ui/static_content/static_html_view_controller.mm b/ios/chrome/browser/ui/static_content/static_html_view_controller.mm
index 750820d46d448973980ea9f10a57d4f47a722f55..1b3b069dc8b3b848e63e032e6b182f06699fc204 100644
--- a/ios/chrome/browser/ui/static_content/static_html_view_controller.mm
+++ b/ios/chrome/browser/ui/static_content/static_html_view_controller.mm
@@ -207,7 +207,7 @@ - (void)webView:(WKWebView*)webView
decisionHandler(
[self
shouldStartLoadWithRequest:navigationAction.request
- fromMainFrame:[navigationAction.sourceFrame isMainFrame]]
+ fromMainFrame:[navigationAction.targetFrame isMainFrame]]
? WKNavigationActionPolicyAllow
: WKNavigationActionPolicyCancel);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698