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

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

Issue 8879011: Make URL filter for web request API mandatory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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/framework.js
diff --git a/chrome/test/data/extensions/api_test/webrequest/framework.js b/chrome/test/data/extensions/api_test/webrequest/framework.js
index e2a0bc1af223969d786e03f1ffdfcd436cfc7e1f..17c50b3a01aa695cf32e4c0ebe113168137a1f49 100644
--- a/chrome/test/data/extensions/api_test/webrequest/framework.js
+++ b/chrome/test/data/extensions/api_test/webrequest/framework.js
@@ -69,7 +69,7 @@ function expect(data, order, filter, extraInfoSpec) {
tabAndFrameUrls = {}; // Maps "{tabId}-{frameId}" to the URL of the frame.
frameIdMap = {"-1": -1};
removeListeners();
- initListeners(filter || {}, extraInfoSpec || []);
+ initListeners(filter || {urls: ["<all_urls>"]}, extraInfoSpec || []);
// Fill in default values.
for (var i = 0; i < expectedEventData.length; ++i) {
if (!('method' in expectedEventData[i].details)) {
« no previous file with comments | « chrome/common/extensions/docs/webRequest.html ('k') | chrome/test/data/extensions/api_test/webrequest/test_api.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698