void Document::SetURL(const KURL& url) {
  const KURL& new_url = url.IsEmpty() ? BlankURL() : url;
  if (new_url == url_)
    return;

  url_ = new_url;
  access_entry_from_url_ = nullptr;
  UpdateBaseURL();
  GetContextFeatures().UrlDidChange(this);

  if (ukm_recorder_)
    ukm_recorder_->UpdateSourceURL(ukm_source_id_, url_);
}

The product specifies permissions for a security-critical resource in a way that allows that resource to be read or modified by unintended actors.