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

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

Issue 2803963002: Don't kill Chrome Apps that make XHRs from guests. (Closed)
Patch Set: Created 3 years, 8 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
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 2223 matching lines...) Expand 10 before | Expand all | Expand 10 after
2234 if (!GetAppWindowCount()) 2234 if (!GetAppWindowCount())
2235 window = CreateAppWindow(browser()->profile(), extension); 2235 window = CreateAppWindow(browser()->profile(), extension);
2236 else 2236 else
2237 window = GetFirstAppWindow(); 2237 window = GetFirstAppWindow();
2238 CloseAppWindow(window); 2238 CloseAppWindow(window);
2239 2239
2240 // Load the app again. 2240 // Load the app again.
2241 LoadAndLaunchPlatformApp("web_view/simple", "WebViewTest.LAUNCHED"); 2241 LoadAndLaunchPlatformApp("web_view/simple", "WebViewTest.LAUNCHED");
2242 } 2242 }
2243 2243
2244 // Tests that an app can inject a content script into a webview, and that it can
2245 // send cross-origin requests with CORS headers.
2246 IN_PROC_BROWSER_TEST_P(WebViewTest, ContentScriptFetch) {
2247 TestHelper("testContentScriptFetch", "web_view/content_script_fetch",
2248 NEEDS_TEST_SERVER);
2249 }
2250
2244 // In following GeolocationAPIEmbedderHasNoAccess* tests, embedder (i.e. the 2251 // In following GeolocationAPIEmbedderHasNoAccess* tests, embedder (i.e. the
2245 // platform app) does not have geolocation permission for this test. 2252 // platform app) does not have geolocation permission for this test.
2246 // No matter what the API does, geolocation permission would be denied. 2253 // No matter what the API does, geolocation permission would be denied.
2247 // Note that the test name prefix must be "GeolocationAPI". 2254 // Note that the test name prefix must be "GeolocationAPI".
2248 IN_PROC_BROWSER_TEST_P(WebViewTest, GeolocationAPIEmbedderHasNoAccessAllow) { 2255 IN_PROC_BROWSER_TEST_P(WebViewTest, GeolocationAPIEmbedderHasNoAccessAllow) {
2249 TestHelper("testDenyDenies", 2256 TestHelper("testDenyDenies",
2250 "web_view/geolocation/embedder_has_no_permission", 2257 "web_view/geolocation/embedder_has_no_permission",
2251 NEEDS_TEST_SERVER); 2258 NEEDS_TEST_SERVER);
2252 } 2259 }
2253 2260
(...skipping 1778 matching lines...) Expand 10 before | Expand all | Expand 10 after
4032 ClosingChromeSignInShouldNotCrash) { 4039 ClosingChromeSignInShouldNotCrash) {
4033 GURL signin_url{"chrome://chrome-signin"}; 4040 GURL signin_url{"chrome://chrome-signin"};
4034 4041
4035 AddTabAtIndex(0, signin_url, ui::PAGE_TRANSITION_TYPED); 4042 AddTabAtIndex(0, signin_url, ui::PAGE_TRANSITION_TYPED);
4036 AddTabAtIndex(1, signin_url, ui::PAGE_TRANSITION_TYPED); 4043 AddTabAtIndex(1, signin_url, ui::PAGE_TRANSITION_TYPED);
4037 WaitForWebViewInDom(); 4044 WaitForWebViewInDom();
4038 4045
4039 chrome::CloseTab(browser()); 4046 chrome::CloseTab(browser());
4040 } 4047 }
4041 #endif 4048 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698