# Event webNavigation.onCompleted not firing

**URL:** https://discourse.mozilla.org/t/event-webnavigation-oncompleted-not-firing/95823
**Category:** Development
**Tags:** issue
**Created:** [April 11, 2022, 5:28pm UTC](https://discourse.mozilla.org/t/event-webnavigation-oncompleted-not-firing/95823 "2022-04-11T17:28:18Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![elnath78](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.mozilla.org/elnath78/32/23893_2.png) [@elnath78](https://discourse.mozilla.org/u/elnath78)
#### Post date: [April 11, 2022, 5:28pm UTC](https://discourse.mozilla.org/t/event-webnavigation-oncompleted-not-firing/95823/1 "2022-04-11T17:28:19Z")

</div>

Following this example, I’m unable to trigger this listener, added it on my content script:

```auto
const filter = {
  url:
  [
    {hostContains: "example.com"},
    {hostPrefix: "developer"}
  ]
}

function logOnCompleted(details) {
  console.log(`onCompleted: ${details.url}`);
}

browser.webNavigation.onCompleted.addListener(logOnCompleted, filter);

```

I also tried moving it to background script but still, the event is never triggered.

---

_[View the full topic](https://discourse.mozilla.org/t/event-webnavigation-oncompleted-not-firing/95823)._
