OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "content/browser/site_per_process_browsertest.h" | 5 #include "content/browser/site_per_process_browsertest.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
(...skipping 761 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
772 SurfaceHitTestTestHelper(shell(), embedded_test_server()); | 772 SurfaceHitTestTestHelper(shell(), embedded_test_server()); |
773 } | 773 } |
774 | 774 |
775 // This test tests that browser process hittesting ignores frames with | 775 // This test tests that browser process hittesting ignores frames with |
776 // pointer-events: none. | 776 // pointer-events: none. |
777 #if defined(OS_ANDROID) | 777 #if defined(OS_ANDROID) |
778 // Browser process hit testing is not implemented on Android. | 778 // Browser process hit testing is not implemented on Android. |
779 // https://crbug.com/491334 | 779 // https://crbug.com/491334 |
780 #define MAYBE_SurfaceHitTestPointerEventsNone \ | 780 #define MAYBE_SurfaceHitTestPointerEventsNone \ |
781 DISABLED_SurfaceHitTestPointerEventsNone | 781 DISABLED_SurfaceHitTestPointerEventsNone |
| 782 #elif defined(THREAD_SANITIZER) |
| 783 // Flaky on TSAN. https://crbug.com/582277 |
| 784 #define MAYBE_SurfaceHitTestPointerEventsNone \ |
| 785 DISABLED_SurfaceHitTestPointerEventsNone |
782 #else | 786 #else |
783 #define MAYBE_SurfaceHitTestPointerEventsNone SurfaceHitTestPointerEventsNone | 787 #define MAYBE_SurfaceHitTestPointerEventsNone SurfaceHitTestPointerEventsNone |
784 #endif | 788 #endif |
785 IN_PROC_BROWSER_TEST_F(SitePerProcessBrowserTest, | 789 IN_PROC_BROWSER_TEST_F(SitePerProcessBrowserTest, |
786 MAYBE_SurfaceHitTestPointerEventsNone) { | 790 MAYBE_SurfaceHitTestPointerEventsNone) { |
787 GURL main_url(embedded_test_server()->GetURL( | 791 GURL main_url(embedded_test_server()->GetURL( |
788 "/frame_tree/page_with_positioned_frame_pointer-events_none.html")); | 792 "/frame_tree/page_with_positioned_frame_pointer-events_none.html")); |
789 NavigateToURL(shell(), main_url); | 793 NavigateToURL(shell(), main_url); |
790 | 794 |
791 // It is safe to obtain the root frame tree node here, as it doesn't change. | 795 // It is safe to obtain the root frame tree node here, as it doesn't change. |
(...skipping 4417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5209 ASSERT_EQ(1U, root->child_count()); | 5213 ASSERT_EQ(1U, root->child_count()); |
5210 FrameTreeNode* mixed_child = root->child_at(0)->child_at(0); | 5214 FrameTreeNode* mixed_child = root->child_at(0)->child_at(0); |
5211 ASSERT_TRUE(mixed_child); | 5215 ASSERT_TRUE(mixed_child); |
5212 // The child iframe attempted to create a mixed iframe; this should | 5216 // The child iframe attempted to create a mixed iframe; this should |
5213 // have been blocked, so the mixed iframe should not have committed a | 5217 // have been blocked, so the mixed iframe should not have committed a |
5214 // load. | 5218 // load. |
5215 EXPECT_FALSE(mixed_child->has_committed_real_load()); | 5219 EXPECT_FALSE(mixed_child->has_committed_real_load()); |
5216 } | 5220 } |
5217 | 5221 |
5218 } // namespace content | 5222 } // namespace content |
OLD | NEW |