'chrome extension background console.log visible in newtab console

For some reason console.log that I'm using in my background script are visible in the newtab page console.

Is this suppose to be this way? I thought they should be isolated.

newtab.js

chrome.runtime.sendMessage({
  name: 'messageIncoming',
  data: 'yo',
});

background.js

chrome.runtime.onMessage.addListener((data, sender) => {
  console.log('background onMessages', data);
  switch (data.name) {
    case 'messageIncoming':
      return new Promise((resolve) => {
        resolve();
      });

    default:
      break;
  }
});

both consoles show same message.

background onMessages ....


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source