Commit 3adab1c8 authored by benm@chromium.org's avatar benm@chromium.org

Log a warning if we try to load a URL longer than kMaxURLChars.

Review URL: https://chromiumcodereview.appspot.com/23983010

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@222094 0039d316-1c4b-4281-b951-d872f2087c98
parent 1c3e1b05
......@@ -1774,8 +1774,11 @@ bool WebContentsImpl::NavigateToEntry(
// The renderer will reject IPC messages with URLs longer than
// this limit, so don't attempt to navigate with a longer URL.
if (entry.GetURL().spec().size() > kMaxURLChars)
if (entry.GetURL().spec().size() > kMaxURLChars) {
LOG(WARNING) << "Refusing to load URL as it exceeds " << kMaxURLChars
<< " characters.";
return false;
}
RenderViewHostImpl* dest_render_view_host =
static_cast<RenderViewHostImpl*>(render_manager_.Navigate(entry));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment