Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(395)

Side by Side Diff: chrome/browser/apps/guest_view/web_view_browsertest.cc

Issue 2387323002: Fix blob URL blocking for apps that use <webview>. (Closed)
Patch Set: Fix comment Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/net/chrome_extensions_network_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 <queue> 5 #include <queue>
6 #include <set> 6 #include <set>
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/callback_helpers.h" 9 #include "base/callback_helpers.h"
10 #include "base/files/file_util.h" 10 #include "base/files/file_util.h"
(...skipping 3221 matching lines...) Expand 10 before | Expand all | Expand 10 after
3232 } 3232 }
3233 3233
3234 // Tests that a renderer navigation from an unattached guest that results in a 3234 // Tests that a renderer navigation from an unattached guest that results in a
3235 // server redirect works properly. 3235 // server redirect works properly.
3236 IN_PROC_BROWSER_TEST_P(WebViewTest, 3236 IN_PROC_BROWSER_TEST_P(WebViewTest,
3237 Shim_TestRendererNavigationRedirectWhileUnattached) { 3237 Shim_TestRendererNavigationRedirectWhileUnattached) {
3238 TestHelper("testRendererNavigationRedirectWhileUnattached", 3238 TestHelper("testRendererNavigationRedirectWhileUnattached",
3239 "web_view/shim", NEEDS_TEST_SERVER); 3239 "web_view/shim", NEEDS_TEST_SERVER);
3240 } 3240 }
3241 3241
3242 // Tests that the embedder can create a blob URL and navigate a WebView to it.
3243 // See https://crbug.com/652077.
3244 IN_PROC_BROWSER_TEST_P(WebViewTest, Shim_TestBlobURL) {
3245 TestHelper("testBlobURL", "web_view/shim", NEEDS_TEST_SERVER);
3246 }
3247
3242 // Tests that a WebView accessible resource can actually be loaded from a 3248 // Tests that a WebView accessible resource can actually be loaded from a
3243 // webpage in a WebView. 3249 // webpage in a WebView.
3244 IN_PROC_BROWSER_TEST_P(WebViewTest, LoadWebviewAccessibleResource) { 3250 IN_PROC_BROWSER_TEST_P(WebViewTest, LoadWebviewAccessibleResource) {
3245 TestHelper("testLoadWebviewAccessibleResource", 3251 TestHelper("testLoadWebviewAccessibleResource",
3246 "web_view/load_webview_accessible_resource", NEEDS_TEST_SERVER); 3252 "web_view/load_webview_accessible_resource", NEEDS_TEST_SERVER);
3247 } 3253 }
3248 3254
3249 IN_PROC_BROWSER_TEST_P(WebViewAccessibilityTest, LoadWebViewAccessibility) { 3255 IN_PROC_BROWSER_TEST_P(WebViewAccessibilityTest, LoadWebViewAccessibility) {
3250 LoadAppWithGuest("web_view/focus_accessibility"); 3256 LoadAppWithGuest("web_view/focus_accessibility");
3251 content::WebContents* web_contents = GetFirstAppWindowWebContents(); 3257 content::WebContents* web_contents = GetFirstAppWindowWebContents();
(...skipping 582 matching lines...) Expand 10 before | Expand all | Expand 10 after
3834 gfx::Point embedder_origin = 3840 gfx::Point embedder_origin =
3835 GetEmbedderWebContents()->GetContainerBounds().origin(); 3841 GetEmbedderWebContents()->GetContainerBounds().origin();
3836 guest_rect.Offset(-embedder_origin.x(), -embedder_origin.y()); 3842 guest_rect.Offset(-embedder_origin.x(), -embedder_origin.y());
3837 3843
3838 // Generate and send synthetic touch event. 3844 // Generate and send synthetic touch event.
3839 content::SimulateTouchPressAt(GetEmbedderWebContents(), 3845 content::SimulateTouchPressAt(GetEmbedderWebContents(),
3840 guest_rect.CenterPoint()); 3846 guest_rect.CenterPoint());
3841 EXPECT_TRUE(aura_webview->HasFocus()); 3847 EXPECT_TRUE(aura_webview->HasFocus());
3842 } 3848 }
3843 #endif 3849 #endif
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/net/chrome_extensions_network_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698