code: function _onFrameNavigated(event, res) {
          // res = {frame}
          // Clear log when navigating to a new page, but not if an iframe was loaded
          if (!res.frame.parentId) {
              _reset();
          }
          _logURL(res.frame.url);
      }
docs: WebInspector Event: Page.frameNavigated