summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/test/data/extensions/api_test/webrequest/events/test.html7
1 files changed, 6 insertions, 1 deletions
diff --git a/chrome/test/data/extensions/api_test/webrequest/events/test.html b/chrome/test/data/extensions/api_test/webrequest/events/test.html
index 0f3a5c8..dadce3f 100644
--- a/chrome/test/data/extensions/api_test/webrequest/events/test.html
+++ b/chrome/test/data/extensions/api_test/webrequest/events/test.html
@@ -40,6 +40,11 @@ function checkExpectations() {
}
function captureEvent(name, details) {
+ // Ignore system-level requests like safebrowsing updates since they are
+ // unpredictable.
+ if (details.tabId == -1)
+ return;
+
delete details.requestId;
capturedEventData.push([name, details]);
checkExpectations();
@@ -135,7 +140,7 @@ runTests([
url: URL_HTTP_SIMPLE_LOAD
}
],
- ], {types: ["main_frame"]}, []);
+ ]);
chrome.tabs.update(tabId, { url: URL_HTTP_SIMPLE_LOAD });
},