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

Unified Diff: chrome/test/data/extensions/web_request_site_process_registration/test.js

Issue 2760733002: Check for already existing entry when adding to SiteProcessMap. (Closed)
Patch Set: Restore ordering of test cases in webRequestBlocking. Created 3 years, 9 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/web_request_site_process_registration/test.js
diff --git a/chrome/test/data/extensions/web_request_site_process_registration/test.js b/chrome/test/data/extensions/web_request_site_process_registration/test.js
new file mode 100644
index 0000000000000000000000000000000000000000..a7f5d61ec5ac02a6abd6e22587f3006b7a37b26e
--- /dev/null
+++ b/chrome/test/data/extensions/web_request_site_process_registration/test.js
@@ -0,0 +1,13 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+chrome.webRequest.onBeforeRequest.addListener(
+ function(details) {
+ if (details.url == chrome.extension.getURL("/blocked.html")) {
+ return {cancel: true};
+ }
+ },
+ {urls: ["<all_urls>"]},
+ ["blocking"]
+);

Powered by Google App Engine
This is Rietveld 408576698