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

Unified Diff: chrome/test/data/extensions/extension_throttle/background.js

Issue 1923003002: Clear Resource::m_loader in Resource::finish() and Resource::error() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase, comment in background.js Created 4 years, 7 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/extension_throttle/background.js
diff --git a/chrome/test/data/extensions/extension_throttle/background.js b/chrome/test/data/extensions/extension_throttle/background.js
index 52c8e340e0c6c8317bbe9d32311d549dee751ca0..b66a19675c1edf39fe3def95a7e31209f860fce3 100644
--- a/chrome/test/data/extensions/extension_throttle/background.js
+++ b/chrome/test/data/extensions/extension_throttle/background.js
@@ -6,6 +6,9 @@ chrome.runtime.onMessage.addListener(function(message, sender, sendResponse) {
if (message.type == "xhr") {
var xhr = new XMLHttpRequest();
xhr.open(message.method, message.url);
+ // This header will be enough to avoid serving the XHR from blink's
+ // MemoryCache (which the test requires), but should have no other effect.
+ xhr.setRequestHeader("X-Bust-Blink-MemoryCache", Math.random());
xhr.send();
} else {
console.error("Unknown message: " + JSON.stringify(message));

Powered by Google App Engine
This is Rietveld 408576698