title: Chrome WebNavigation Listener not working
body: <p>I'm creating my own extension for Google Chrome (for my own use, not to be published). At the moment I have two files:</p>
  
  <p><strong>manifest.json</strong>:</p>
  
  <pre><code>{
    "manifest_version": 2,
    "name": "abcdef",
    "description": "abcdef",
    "version": "0.1",
    "permissions": [
      "tabs",
      "webNavigation",
      "http://www.ztm.waw.pl/*"
    ],
    "background": {
      "scripts": ["bg.js"],
      "persistent": false
    }
  }
  </code></pre>
  
  <p><strong>bg.js</strong>:</p>
  
  <pre><code>chrome.webNavigation.onCompleted.addListener(function(o) {
    chrome.tabs.executeScript(o.tabId, {
      code: "alert('ok');"
    });
  }, {
    url: {
      hostContains: 'ztm.waw.pl'
    }
  });
  </code></pre>
  
  <p>I want the alert box to appear when I navigate to <a href="http://www.ztm.waw.pl" rel="nofollow">http://www.ztm.waw.pl</a>, but it does not work. Could someone tell me why?</p>