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

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

Issue 2399673002: Fix blob URL blocking for apps that use <webview>. (Closed)
Patch Set: 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 3213 matching lines...) Expand 10 before | Expand all | Expand 10 after
3224 } 3224 }
3225 3225
3226 // Tests that a renderer navigation from an unattached guest that results in a 3226 // Tests that a renderer navigation from an unattached guest that results in a
3227 // server redirect works properly. 3227 // server redirect works properly.
3228 IN_PROC_BROWSER_TEST_P(WebViewTest, 3228 IN_PROC_BROWSER_TEST_P(WebViewTest,
3229 Shim_TestRendererNavigationRedirectWhileUnattached) { 3229 Shim_TestRendererNavigationRedirectWhileUnattached) {
3230 TestHelper("testRendererNavigationRedirectWhileUnattached", 3230 TestHelper("testRendererNavigationRedirectWhileUnattached",
3231 "web_view/shim", NEEDS_TEST_SERVER); 3231 "web_view/shim", NEEDS_TEST_SERVER);
3232 } 3232 }
3233 3233
3234 // Tests that the embedder can create a blob URL and navigate a WebView to it.
3235 // See https://crbug.com/652077.
3236 IN_PROC_BROWSER_TEST_P(WebViewTest, Shim_TestBlobURL) {
3237 TestHelper("testBlobURL", "web_view/shim", NEEDS_TEST_SERVER);
3238 }
3239
3234 // Tests that a WebView accessible resource can actually be loaded from a 3240 // Tests that a WebView accessible resource can actually be loaded from a
3235 // webpage in a WebView. 3241 // webpage in a WebView.
3236 IN_PROC_BROWSER_TEST_P(WebViewTest, LoadWebviewAccessibleResource) { 3242 IN_PROC_BROWSER_TEST_P(WebViewTest, LoadWebviewAccessibleResource) {
3237 TestHelper("testLoadWebviewAccessibleResource", 3243 TestHelper("testLoadWebviewAccessibleResource",
3238 "web_view/load_webview_accessible_resource", NEEDS_TEST_SERVER); 3244 "web_view/load_webview_accessible_resource", NEEDS_TEST_SERVER);
3239 } 3245 }
3240 3246
3241 IN_PROC_BROWSER_TEST_P(WebViewAccessibilityTest, LoadWebViewAccessibility) { 3247 IN_PROC_BROWSER_TEST_P(WebViewAccessibilityTest, LoadWebViewAccessibility) {
3242 LoadAppWithGuest("web_view/focus_accessibility"); 3248 LoadAppWithGuest("web_view/focus_accessibility");
3243 content::WebContents* web_contents = GetFirstAppWindowWebContents(); 3249 content::WebContents* web_contents = GetFirstAppWindowWebContents();
(...skipping 582 matching lines...) Expand 10 before | Expand all | Expand 10 after
3826 gfx::Point embedder_origin = 3832 gfx::Point embedder_origin =
3827 GetEmbedderWebContents()->GetContainerBounds().origin(); 3833 GetEmbedderWebContents()->GetContainerBounds().origin();
3828 guest_rect.Offset(-embedder_origin.x(), -embedder_origin.y()); 3834 guest_rect.Offset(-embedder_origin.x(), -embedder_origin.y());
3829 3835
3830 // Generate and send synthetic touch event. 3836 // Generate and send synthetic touch event.
3831 content::SimulateTouchPressAt(GetEmbedderWebContents(), 3837 content::SimulateTouchPressAt(GetEmbedderWebContents(),
3832 guest_rect.CenterPoint()); 3838 guest_rect.CenterPoint());
3833 EXPECT_TRUE(aura_webview->HasFocus()); 3839 EXPECT_TRUE(aura_webview->HasFocus());
3834 } 3840 }
3835 #endif 3841 #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