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

Unified Diff: chrome/test/data/extensions/api_test/service_worker/web_accessible_resources/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: add iframe test 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.js
diff --git a/chrome/browser/resources/chromeos/login/gaia_header.js b/chrome/test/data/extensions/api_test/service_worker/web_accessible_resources/iframe.js
similarity index 58%
copy from chrome/browser/resources/chromeos/login/gaia_header.js
copy to chrome/test/data/extensions/api_test/service_worker/web_accessible_resources/iframe.js
index 69898a4e223333b0e8ab849df9582b0c38530546..2b783f9991f5a369850d05888c3509dbd22386a7 100644
--- a/chrome/browser/resources/chromeos/login/gaia_header.js
+++ b/chrome/test/data/extensions/api_test/service_worker/web_accessible_resources/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: 'gaia-header',
-
- properties: {
- email: String
+window.onmessage = function(e) {
+ if (e.data == 'ping') {
+ e.source.postMessage('FROM_EXTENSION_RESOURCE', '*');
}
-});
+};
+

Powered by Google App Engine
This is Rietveld 408576698