| Index: chrome/test/data/extensions/active_script/inject_scripts_explicit_hosts/background.js
|
| diff --git a/chrome/test/data/extensions/active_script/inject_scripts_explicit_hosts/background.js b/chrome/test/data/extensions/active_script/inject_scripts_explicit_hosts/background.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..6d38bced32452a0313f55fffbfc1aafcb67ada30
|
| --- /dev/null
|
| +++ b/chrome/test/data/extensions/active_script/inject_scripts_explicit_hosts/background.js
|
| @@ -0,0 +1,13 @@
|
| +// Copyright 2014 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +var listener = function(tabId) {
|
| + chrome.tabs.onUpdated.removeListener(listener);
|
| + chrome.tabs.executeScript(tabId, {
|
| + code: "chrome.test.sendMessage('inject succeeded');"
|
| + });
|
| + chrome.test.sendMessage('inject attempted');
|
| +};
|
| +
|
| +chrome.tabs.onUpdated.addListener(listener);
|
|
|