Index: content/test/data/service_worker/fetch_event_fallback.js |
diff --git a/chrome/test/data/extensions/platform_apps/ephemeral_apps/messaging_receiver2/index.js b/content/test/data/service_worker/fetch_event_fallback.js |
similarity index 54% |
copy from chrome/test/data/extensions/platform_apps/ephemeral_apps/messaging_receiver2/index.js |
copy to content/test/data/service_worker/fetch_event_fallback.js |
index dc590d190815d0645476120ece798c9fb5b4db35..094bec9624a82cda12a7a4fcfafe4871171c9628 100644 |
--- a/chrome/test/data/extensions/platform_apps/ephemeral_apps/messaging_receiver2/index.js |
+++ b/content/test/data/service_worker/fetch_event_fallback.js |
@@ -2,6 +2,7 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-onload = function() { |
- chrome.test.sendMessage('launched'); |
+this.onfetch = function(event) { |
+ event.respondWith('This is not a Response object, so browser should ' + |
+ 'fallback to native'); |
}; |