text: // Copyright 2019 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.
  
  chrome.runtime.onConnectExternal.addListener(port => {
    console.log('{worker} target got port connection');
    port.onMessage.addListener(msg => {
      console.log('target {worker}: got message: ' + msg);
      chrome.test.assertEq('initiator->target', msg);
      port.postMessage('initiator->target->initiator');
    });
  });
  