Index: content/browser/frame_host/navigation_controller_impl_browsertest.cc |
diff --git a/content/browser/frame_host/navigation_controller_impl_browsertest.cc b/content/browser/frame_host/navigation_controller_impl_browsertest.cc |
index 1c93b3d35067b26423e2f6dc27f80e2027564909..0773d005b625fbfe753731337e636b1f2892a484 100644 |
--- a/content/browser/frame_host/navigation_controller_impl_browsertest.cc |
+++ b/content/browser/frame_host/navigation_controller_impl_browsertest.cc |
@@ -70,16 +70,10 @@ IN_PROC_BROWSER_TEST_F(NavigationControllerBrowserTest, LoadDataWithBaseURL) { |
const GURL base_url("http://baseurl"); |
const GURL history_url("http://historyurl"); |
const std::string data = "<html><body>foo</body></html>"; |
- |
- const NavigationController& controller = |
- shell()->web_contents()->GetController(); |
- // Load data. Blocks until it is done. |
content::LoadDataWithBaseURL(shell(), history_url, data, base_url); |
- |
- // We should use history_url instead of the base_url as the original url of |
- // this navigation entry, because base_url is only used for resolving relative |
- // paths in the data, or enforcing same origin policy. |
- EXPECT_EQ(controller.GetVisibleEntry()->GetOriginalRequestURL(), history_url); |
+ ReloadBlockUntilNavigationsComplete(shell(), 1); |
+ EXPECT_TRUE( |
+ ExecuteScript(shell()->web_contents(), "console.log('Success');")); |
} |
IN_PROC_BROWSER_TEST_F(NavigationControllerBrowserTest, UniqueIDs) { |