# Could not establish connection - without explicit message sending or extension work

**URL:** https://discourse.mozilla.org/t/could-not-establish-connection-without-explicit-message-sending-or-extension-work/91293
**Category:** Development
**Created:** [January 8, 2022, 1:16pm UTC](https://discourse.mozilla.org/t/could-not-establish-connection-without-explicit-message-sending-or-extension-work/91293 "2022-01-08T13:16:37Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![kevinjapan](https://avatars.discourse-cdn.com/v4/letter/k/edb3f5/32.png) [@kevinjapan](https://discourse.mozilla.org/u/kevinjapan)
#### Post date: [January 8, 2022, 1:16pm UTC](https://discourse.mozilla.org/t/could-not-establish-connection-without-explicit-message-sending-or-extension-work/91293/1 "2022-01-08T13:16:37Z")

</div>

Hi,  
I’m getting the following error in console:  
Error: Could not establish connection. Receiving end does not exist. content.aos.js:66:19  
no issue is reported in Chrome - only Firefox - and I am not working on anything like extension or such. Recently have added some ‘addEventListener’ calls and a single open in new tab action - so suspect they may be cause of this? (simply outputting a simple string into new tab)  
any thoughts on likely causes?  
thanks  
K

---

<div class="post-metadata">

### Author: ![megan](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.mozilla.org/megan/32/53943_2.png) [@megan](https://discourse.mozilla.org/u/megan)
#### Post date: [January 9, 2022, 9:11pm UTC](https://discourse.mozilla.org/t/could-not-establish-connection-without-explicit-message-sending-or-extension-work/91293/2 "2022-01-09T21:11:06Z")

</div>

If you’re not working on an extension at all, then you can ignore the error message.

I think that error occurs when the connection between an extension’s background script and a tab’s content script fails.

Though, how _are_ you outputting a string into a new tab ? something like postMessage?

---

<div class="post-metadata">

### Author: ![kevinjapan](https://avatars.discourse-cdn.com/v4/letter/k/edb3f5/32.png) [@kevinjapan](https://discourse.mozilla.org/u/kevinjapan)
#### Post date: [January 10, 2022, 12:14pm UTC](https://discourse.mozilla.org/t/could-not-establish-connection-without-explicit-message-sending-or-extension-work/91293/3 "2022-01-10T12:14:55Z")

</div>

thanks for feedback - managed to remove the issue by tidying up everything and ensuring eg eventlisteners are all valid  
using document.write to the new tab - very simple requirement to view text output  
thnx again
