Response.prototype._extract_canonical = function() {
      if (this._is_full_document_response()) {
        return $('link[rel="canonical"]', this._get_doc()).text();
      } else {
        return this.xhr.getResponseHeader('X-Wiselinks-Canonical');