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

Unified Diff: content/browser/frame_host/navigation_entry_impl.cc

Issue 304313003: Allow view-source of pages fully-blocked by Blink's XSS filter. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add xss_detected_ bool and use it. Created 6 years, 6 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
Index: content/browser/frame_host/navigation_entry_impl.cc
diff --git a/content/browser/frame_host/navigation_entry_impl.cc b/content/browser/frame_host/navigation_entry_impl.cc
index b021d5eda18cea37a92d27924094752c5b77a5b7..5f82ea50b8b0cf8a2f5e579c5b21985d22ce2951 100644
--- a/content/browser/frame_host/navigation_entry_impl.cc
+++ b/content/browser/frame_host/navigation_entry_impl.cc
@@ -53,6 +53,7 @@ NavigationEntryImpl::NavigationEntryImpl()
should_replace_entry_(false),
should_clear_history_list_(false),
can_load_local_resources_(false),
+ xss_detected_(false),
frame_tree_node_id_(-1) {
}
@@ -82,6 +83,7 @@ NavigationEntryImpl::NavigationEntryImpl(SiteInstanceImpl* instance,
should_replace_entry_(false),
should_clear_history_list_(false),
can_load_local_resources_(false),
+ xss_detected_(false),
frame_tree_node_id_(-1) {
}
@@ -310,6 +312,10 @@ bool NavigationEntryImpl::GetCanLoadLocalResources() const {
return can_load_local_resources_;
}
+bool NavigationEntryImpl::GetXssDetected() const {
+ return xss_detected_;
+}
+
void NavigationEntryImpl::SetFrameToNavigate(const std::string& frame_name) {
frame_to_navigate_ = frame_name;
}

Powered by Google App Engine
This is Rietveld 408576698