code: function _onFrameNavigated(event, res) {
          // res = {frame}
          if (!res.frame.parentId) {
              exports.url = _cleanURL(res.frame.url);
          }
      }
docs: WebInspector Event: Page.frameNavigated