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

Unified Diff: chrome/test/data/extensions/api_test/service_worker/web_accessible_resources/iframe_src/iframe.js

Issue 1532633003: Extension SW: Add tests that serve web_accessible_resources from a SW. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: foo Created 5 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/service_worker/web_accessible_resources/iframe_src/iframe.js
diff --git a/chrome/browser/resources/chromeos/login/throbber_notice.js b/chrome/test/data/extensions/api_test/service_worker/web_accessible_resources/iframe_src/iframe.js
similarity index 58%
copy from chrome/browser/resources/chromeos/login/throbber_notice.js
copy to chrome/test/data/extensions/api_test/service_worker/web_accessible_resources/iframe_src/iframe.js
index 2b56e0bf0242240b2fe399d68f31d2641a75c9b9..2b783f9991f5a369850d05888c3509dbd22386a7 100644
--- a/chrome/browser/resources/chromeos/login/throbber_notice.js
+++ b/chrome/test/data/extensions/api_test/service_worker/web_accessible_resources/iframe_src/iframe.js
@@ -2,10 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-Polymer({
- is: 'throbber-notice',
-
- properties: {
- text: String
+window.onmessage = function(e) {
+ if (e.data == 'ping') {
+ e.source.postMessage('FROM_EXTENSION_RESOURCE', '*');
}
-});
+};
+

Powered by Google App Engine
This is Rietveld 408576698