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

Unified Diff: ppapi/tests/extensions/popup/popup.js

Issue 1414783002: Don't keep the lazy background page alive after a view with a Pepper plugin is closed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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
« no previous file with comments | « ppapi/tests/extensions/popup/popup.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/tests/extensions/popup/popup.js
diff --git a/extensions/test/data/platform_app/world.js b/ppapi/tests/extensions/popup/popup.js
similarity index 59%
copy from extensions/test/data/platform_app/world.js
copy to ppapi/tests/extensions/popup/popup.js
index 9804641fc88c20ec6f08df49d9154a7056ce40da..e756e63233844004aaf43a81718bcb4310b9dd1c 100644
--- a/extensions/test/data/platform_app/world.js
+++ b/ppapi/tests/extensions/popup/popup.js
@@ -2,7 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-window.onload = function() {
- console.log('app window opened');
+function onModuleLoaded() {
chrome.test.notifyPass();
+}
+
+window.onload = function() {
+ var nacl_module = document.getElementById('nacl_module');
+ nacl_module.addEventListener('load', onModuleLoaded, false);
};
« no previous file with comments | « ppapi/tests/extensions/popup/popup.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698