| 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 d9522e17f7de9b233f66ce3f7d4ee6f51f66a924..b6bc9aed107ae87f601a55bc76df495d911bc83c 100644
|
| --- a/chrome/browser/tab_contents/tab_contents.cc
|
| +++ b/chrome/browser/tab_contents/tab_contents.cc
|
| @@ -864,12 +864,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);
|
|
|
|
|