| Index: chrome/browser/pdf/pdf_extension_test.cc
|
| diff --git a/chrome/browser/pdf/pdf_extension_test.cc b/chrome/browser/pdf/pdf_extension_test.cc
|
| index 74f8a17e9ee227943c303474307bc91e4148e893..fd907fbbb2e6e9004cf9d88d96165810073a3c76 100644
|
| --- a/chrome/browser/pdf/pdf_extension_test.cc
|
| +++ b/chrome/browser/pdf/pdf_extension_test.cc
|
| @@ -909,3 +909,10 @@ IN_PROC_BROWSER_TEST_F(PDFExtensionTest, LinkShiftLeftClick) {
|
| const GURL& url = active_web_contents->GetURL();
|
| ASSERT_EQ(std::string("http://www.example.com/"), url.spec());
|
| }
|
| +
|
| +// Test that if the plugin tries to load a URL that redirects that it will fail
|
| +// to load. This is to avoid the source origin of the document changing during
|
| +// the redirect, which can have security implications. crbug.com/653749
|
| +IN_PROC_BROWSER_TEST_F(PDFExtensionTest, RedirectsFailInPlugin) {
|
| + RunTestsInFile("redirects_fail_test.js", "test.pdf");
|
| +}
|
|
|