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

Unified Diff: chrome/test/data/extensions/platform_apps/hidden_then_shown/test.js

Issue 875273003: Hidden windows should not keep Chrome alive. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Actually fix the ASAN issue. Created 5 years, 10 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/platform_apps/hidden_then_shown/test.js
diff --git a/chrome/test/data/extensions/platform_apps/hidden/test.js b/chrome/test/data/extensions/platform_apps/hidden_then_shown/test.js
similarity index 50%
copy from chrome/test/data/extensions/platform_apps/hidden/test.js
copy to chrome/test/data/extensions/platform_apps/hidden_then_shown/test.js
index c11022784fb68549df4d1fd6b655d82c0107a5f4..d1a7ff13ce95325831634072e2fb1dd6722cb04c 100644
--- a/chrome/test/data/extensions/platform_apps/hidden/test.js
+++ b/chrome/test/data/extensions/platform_apps/hidden_then_shown/test.js
@@ -3,9 +3,14 @@
// found in the LICENSE file.
chrome.app.runtime.onLaunched.addListener(function() {
- chrome.app.window.create('main.html', {
+ chrome.app.window.create('empty.html', {
hidden: true,
- }, function () {
- chrome.test.sendMessage('Launched');
+ }, function (win) {
+ chrome.test.sendMessage('Launched', function () {
+ setTimeout(function () {
+ win.show();
+ chrome.test.sendMessage('Shown');
+ }, 3000);
+ });
});
-});
+});

Powered by Google App Engine
This is Rietveld 408576698