Call ComputeWebKitPrefs on the correct RVH, and remove dead code.
commit7b2d3d199ebcd0109d0ba4fd71d201510408c789
authorcreis <creis@chromium.org>
Thu, 12 Feb 2015 23:29:50 +0000 (12 15:29 -0800)
committerCommit bot <commit-bot@chromium.org>
Thu, 12 Feb 2015 23:30:36 +0000 (12 23:30 +0000)
tree46f8e09b3c9f6fe79308e5adf59cc82926358e90
parent75c2b017bd1ab668d7f20fde6af6f5506a842c02
Call ComputeWebKitPrefs on the correct RVH, and remove dead code.

RenderViewHost was calling out to WebContents to get the URL, but it
was getting the wrong URL (e.g., possibly the transient one) and then
never looking at it.  Worse, WebContents then called ComputeWebkitPrefs
on the wrong RVH (the old one, not the pending one).

This only seems to come up in corner cases, like chrome://history on
Android when Javascript is disabled.

BUG=454063
TEST=See bug.
TBR=jam

Review URL: https://codereview.chromium.org/919933002

Cr-Commit-Position: refs/heads/master@{#316081}
27 files changed:
android_webview/browser/aw_content_browser_client.cc
android_webview/browser/aw_content_browser_client.h
chrome/browser/chrome_content_browser_client.cc
chrome/browser/chrome_content_browser_client.h
chrome/browser/chrome_content_browser_client_parts.h
chrome/browser/extensions/chrome_content_browser_client_extensions_part.cc
chrome/browser/extensions/chrome_content_browser_client_extensions_part.h
chrome/browser/prefs/chrome_pref_service_unittest.cc
chromecast/browser/cast_content_browser_client.cc
chromecast/browser/cast_content_browser_client.h
content/browser/frame_host/interstitial_page_impl.cc
content/browser/frame_host/interstitial_page_impl.h
content/browser/renderer_host/render_view_host_delegate.cc
content/browser/renderer_host/render_view_host_delegate.h
content/browser/renderer_host/render_view_host_impl.cc
content/browser/renderer_host/render_view_host_impl.h
content/browser/web_contents/web_contents_impl.cc
content/browser/web_contents/web_contents_impl.h
content/public/browser/content_browser_client.h
content/public/test/test_renderer_host.h
content/public/test/web_contents_tester.h
content/shell/browser/shell_content_browser_client.cc
content/shell/browser/shell_content_browser_client.h
content/test/test_render_view_host.cc
content/test/test_render_view_host.h
content/test/test_web_contents.cc
content/test/test_web_contents.h