Index: chrome/browser/history/history_browsertest.cc |
diff --git a/chrome/browser/history/history_browsertest.cc b/chrome/browser/history/history_browsertest.cc |
index d244750854e60aaa5d6e7e0aa15566f9cfa3a4c1..f8b5f5c8f5a6415ce32db22119f325781369e054 100644 |
--- a/chrome/browser/history/history_browsertest.cc |
+++ b/chrome/browser/history/history_browsertest.cc |
@@ -18,6 +18,7 @@ |
#include "chrome/browser/ui/browser.h" |
#include "chrome/browser/ui/browser_commands.h" |
#include "chrome/browser/ui/tabs/tab_strip_model.h" |
+#include "chrome/browser/ui/webui/md_history_ui.h" |
#include "chrome/common/chrome_switches.h" |
#include "chrome/common/pref_names.h" |
#include "chrome/common/url_constants.h" |
@@ -293,6 +294,10 @@ IN_PROC_BROWSER_TEST_F(HistoryBrowserTest, |
#define MAYBE_HistorySearchXSS HistorySearchXSS |
#endif |
IN_PROC_BROWSER_TEST_F(HistoryBrowserTest, MAYBE_HistorySearchXSS) { |
+ // TODO(tsergeant): Enable this test on MD History once it is possible to pass |
+ // in a query via URL (crbug.com/619799). |
+ MdHistoryUI::DisableForTesting(); |
+ |
GURL url(std::string(chrome::kChromeUIHistoryURL) + |
"#q=%3Cimg%20src%3Dx%3Ax%20onerror%3D%22document.title%3D'XSS'%22%3E"); |
ui_test_utils::NavigateToURL(browser(), url); |