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

Unified Diff: chrome/test/data/extensions/api_test/webrequest/test_simple.js

Issue 14358004: Almost all actions in Declarative Web Request require all_urls host permissions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: All URLs -> all hosts; also rebased Created 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/test/data/extensions/api_test/webrequest/test_simple.js
diff --git a/chrome/test/data/extensions/api_test/webrequest/test_simple.js b/chrome/test/data/extensions/api_test/webrequest/test_simple.js
index b3a1a082b882cca7cc4056510d01c767d6944317..0db4373dcc1472ce0181e532c2a29b2c016e4c0e 100644
--- a/chrome/test/data/extensions/api_test/webrequest/test_simple.js
+++ b/chrome/test/data/extensions/api_test/webrequest/test_simple.js
@@ -11,12 +11,6 @@ function getURLHttpSimpleLoadRedirect() {
return getServerURL('server-redirect?'+getURLHttpSimpleLoad());
}
-// A URL from b.com, which we don't have permission to access.
-function getURLNotVisible() {
- return getServerURL('files/extensions/api_test/webrequest/simpleLoad/b.html',
- 'b.com');
-}
-
runTests([
// Navigates to a blank page.
function simpleLoad() {
@@ -188,44 +182,4 @@ runTests([
["onBeforeRequest", "onErrorOccurred"] ]);
navigateAndWait(getURL("does_not_exist.html"));
},
-
- // Navigates to a page that we don't have access to, then a blank page.
- // We should not see the first navigation.
- function simpleLoadNonVisible() {
- expect(
- [ // events
- { label: "a-onBeforeRequest",
- event: "onBeforeRequest",
- details: {
- url: getURL("simpleLoad/a.html"),
- frameUrl: getURL("simpleLoad/a.html")
- }
- },
- { label: "a-onResponseStarted",
- event: "onResponseStarted",
- details: {
- url: getURL("simpleLoad/a.html"),
- statusCode: 200,
- fromCache: false,
- statusLine: "HTTP/1.1 200 OK",
- // Request to chrome-extension:// url has no IP.
- }
- },
- { label: "a-onCompleted",
- event: "onCompleted",
- details: {
- url: getURL("simpleLoad/a.html"),
- statusCode: 200,
- fromCache: false,
- statusLine: "HTTP/1.1 200 OK",
- // Request to chrome-extension:// url has no IP.
- }
- },
- ],
- [ // event order
- ["a-onBeforeRequest", "a-onResponseStarted", "a-onCompleted"] ]);
- navigateAndWait(getURLNotVisible(), function() {
- navigateAndWait(getURL("simpleLoad/a.html"));
- });
- },
]);

Powered by Google App Engine
This is Rietveld 408576698