diff options
Diffstat (limited to 'chrome/test/data/extensions/good/Extensions/bjafgdebaacbbbecmhlhpofkepfkgcpa/1.0/toolstrip.html')
-rw-r--r-- | chrome/test/data/extensions/good/Extensions/bjafgdebaacbbbecmhlhpofkepfkgcpa/1.0/toolstrip.html | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/test/data/extensions/good/Extensions/bjafgdebaacbbbecmhlhpofkepfkgcpa/1.0/toolstrip.html b/chrome/test/data/extensions/good/Extensions/bjafgdebaacbbbecmhlhpofkepfkgcpa/1.0/toolstrip.html index 84c7db0..fb4c2eb 100644 --- a/chrome/test/data/extensions/good/Extensions/bjafgdebaacbbbecmhlhpofkepfkgcpa/1.0/toolstrip.html +++ b/chrome/test/data/extensions/good/Extensions/bjafgdebaacbbbecmhlhpofkepfkgcpa/1.0/toolstrip.html @@ -11,6 +11,13 @@ window.onload = function() { // Ignore other messages since they are from us. }); }); + chrome.extension.onConnectExternal.addListener(function(port) { + port.onMessage.addListener(function(msg) { + if (msg.testConnectExternal) { + port.postMessage({success: true, senderId: port.sender.id}); + } + }); + }); }; // Tests that postMessage to the tab and its response works. |