OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include <stddef.h> | 5 #include <stddef.h> |
6 #include <stdint.h> | 6 #include <stdint.h> |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
11 #include "base/json/json_reader.h" | 11 #include "base/json/json_reader.h" |
12 #include "base/location.h" | 12 #include "base/location.h" |
13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
14 #include "base/path_service.h" | 14 #include "base/path_service.h" |
15 #include "base/single_thread_task_runner.h" | 15 #include "base/single_thread_task_runner.h" |
16 #include "base/strings/string_split.h" | 16 #include "base/strings/string_split.h" |
17 #include "base/strings/utf_string_conversions.h" | 17 #include "base/strings/utf_string_conversions.h" |
18 #include "base/thread_task_runner_handle.h" | 18 #include "base/threading/thread_task_runner_handle.h" |
19 #include "base/values.h" | 19 #include "base/values.h" |
20 #include "build/build_config.h" | 20 #include "build/build_config.h" |
21 #include "content/browser/child_process_security_policy_impl.h" | 21 #include "content/browser/child_process_security_policy_impl.h" |
22 #include "content/browser/frame_host/render_frame_proxy_host.h" | 22 #include "content/browser/frame_host/render_frame_proxy_host.h" |
23 #include "content/browser/renderer_host/render_view_host_impl.h" | 23 #include "content/browser/renderer_host/render_view_host_impl.h" |
24 #include "content/browser/site_instance_impl.h" | 24 #include "content/browser/site_instance_impl.h" |
25 #include "content/browser/web_contents/web_contents_impl.h" | 25 #include "content/browser/web_contents/web_contents_impl.h" |
26 #include "content/browser/webui/web_ui_controller_factory_registry.h" | 26 #include "content/browser/webui/web_ui_controller_factory_registry.h" |
27 #include "content/browser/webui/web_ui_impl.h" | 27 #include "content/browser/webui/web_ui_impl.h" |
28 #include "content/common/content_constants_internal.h" | 28 #include "content/common/content_constants_internal.h" |
(...skipping 2685 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2714 | 2714 |
2715 // Simulate a ctrl click on the link. This won't actually create a new Shell | 2715 // Simulate a ctrl click on the link. This won't actually create a new Shell |
2716 // because Shell::OpenURLFromTab only supports CURRENT_TAB, but it's enough to | 2716 // because Shell::OpenURLFromTab only supports CURRENT_TAB, but it's enough to |
2717 // trigger the crash from https://crbug.com/605055. | 2717 // trigger the crash from https://crbug.com/605055. |
2718 EXPECT_TRUE( | 2718 EXPECT_TRUE( |
2719 ExecuteScript(shell()->web_contents(), | 2719 ExecuteScript(shell()->web_contents(), |
2720 "window.domAutomationController.send(ctrlClickLink());")); | 2720 "window.domAutomationController.send(ctrlClickLink());")); |
2721 } | 2721 } |
2722 | 2722 |
2723 } // namespace content | 2723 } // namespace content |
OLD | NEW |