summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/browser_commands.cc
diff options
context:
space:
mode:
authortsepez@chromium.org <tsepez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-08-05 22:11:15 +0000
committertsepez@chromium.org <tsepez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-08-05 22:11:15 +0000
commit4d234a61e7278881742693aefedb3fbb50f6f362 (patch)
tree84b201b6dcf75281a3640890b9f39cd5b6e499f0 /chrome/browser/ui/browser_commands.cc
parent2c71e9ae7b53b112b9f3cb5668f3b59fb4476577 (diff)
downloadchromium_src-4d234a61e7278881742693aefedb3fbb50f6f362.zip
chromium_src-4d234a61e7278881742693aefedb3fbb50f6f362.tar.gz
chromium_src-4d234a61e7278881742693aefedb3fbb50f6f362.tar.bz2
Revert https://src.chromium.org/viewvc/chrome?view=rev&revision=283728
As of https://src.chromium.org/viewvc/blink?view=rev&revision=179240, Blink no longer implements the behaviour that corresponds to this change. Everything is handled blink-side, so remove this support. Review URL: https://codereview.chromium.org/438733002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@287611 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/browser_commands.cc')
-rw-r--r--chrome/browser/ui/browser_commands.cc11
1 files changed, 0 insertions, 11 deletions
diff --git a/chrome/browser/ui/browser_commands.cc b/chrome/browser/ui/browser_commands.cc
index 71b810b..5d53246 100644
--- a/chrome/browser/ui/browser_commands.cc
+++ b/chrome/browser/ui/browser_commands.cc
@@ -1175,17 +1175,6 @@ void ViewSource(Browser* browser, WebContents* contents) {
if (!entry)
return;
- // The URL "data:," is a special case, since Blink uses it when it wants to
- // show a "blocked page" from its reflected XSS filter. When the XSS filter
- // triggers, the current entry gets marked as containing an XSS, and then a
- // new navigation to "data:," occurs on top of it. Showing that page in place
- // of the "data:," URL permits examination of the cause of the reflection.
- if (entry->GetURL() == GURL("data:,")) {
- NavigationEntry* previous = contents->GetController().GetEntryAtOffset(-1);
- if (previous && previous->GetXssDetected())
- entry = previous;
- }
-
ViewSource(browser, contents, entry->GetURL(), entry->GetPageState());
}