| Index: chrome/browser/tab_contents/tab_contents.cc
|
| diff --git a/chrome/browser/tab_contents/tab_contents.cc b/chrome/browser/tab_contents/tab_contents.cc
|
| index 91995c7829025d3a802fc3a1db9d96bb80c85db2..02b25e78d222a018234426da42fdebf376a98e78 100644
|
| --- a/chrome/browser/tab_contents/tab_contents.cc
|
| +++ b/chrome/browser/tab_contents/tab_contents.cc
|
| @@ -865,12 +865,11 @@ bool TabContents::NavigateToEntry(
|
| kPreferredSizeWidth | kPreferredSizeHeightThisIsSlow);
|
| }
|
|
|
| - // For security, we should never send non-DOM-UI URLs (other than about:blank)
|
| - // to a DOM UI renderer. Double check that here.
|
| + // For security, we should never send non-DOM-UI URLs to a DOM UI renderer.
|
| + // Double check that here.
|
| int enabled_bindings = dest_render_view_host->enabled_bindings();
|
| bool is_allowed_in_dom_ui_renderer =
|
| - DOMUIFactory::UseDOMUIForURL(profile(), entry.url()) ||
|
| - entry.url() == GURL(chrome::kAboutBlankURL);
|
| + DOMUIFactory::IsURLAcceptableForDOMUI(profile(), entry.url());
|
| CHECK(!BindingsPolicy::is_dom_ui_enabled(enabled_bindings) ||
|
| is_allowed_in_dom_ui_renderer);
|
|
|
|
|