diff options
author | mpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-03 17:57:44 +0000 |
---|---|---|
committer | mpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-03 17:57:44 +0000 |
commit | c2e74fe834afaeed3bf8d21034bb995437518843 (patch) | |
tree | c9b3876a00bbbb78984b619246a4069ded4c1664 /chrome/browser/tab_contents/render_view_host_delegate_helper.cc | |
parent | 3f7116cf4b4e725cc43c7331fed6cd1a1b03bc96 (diff) | |
download | chromium_src-c2e74fe834afaeed3bf8d21034bb995437518843.zip chromium_src-c2e74fe834afaeed3bf8d21034bb995437518843.tar.gz chromium_src-c2e74fe834afaeed3bf8d21034bb995437518843.tar.bz2 |
Revert "Revert "Allow DOMUI pages to call window.open(), giving DOMUI privileges to the new""
Second attempt at r25250. The tests were broken in Release mode due to a race. Should be fixed.
BUG=17636
Review URL: http://codereview.chromium.org/172120
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25329 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/tab_contents/render_view_host_delegate_helper.cc')
-rw-r--r-- | chrome/browser/tab_contents/render_view_host_delegate_helper.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/tab_contents/render_view_host_delegate_helper.cc b/chrome/browser/tab_contents/render_view_host_delegate_helper.cc index 184fc5e..2f0eef8 100644 --- a/chrome/browser/tab_contents/render_view_host_delegate_helper.cc +++ b/chrome/browser/tab_contents/render_view_host_delegate_helper.cc @@ -21,7 +21,7 @@ void RenderViewHostDelegateViewHelper::CreateNewWindow(int route_id, base::WaitableEvent* modal_dialog_event, Profile* profile, - SiteInstance* site) { + SiteInstance* site, DOMUITypeID domui_type) { // Create the new web contents. This will automatically create the new // TabContentsView. In the future, we may want to create the view separately. TabContents* new_contents = @@ -29,6 +29,7 @@ void RenderViewHostDelegateViewHelper::CreateNewWindow(int route_id, site, route_id, modal_dialog_event); + new_contents->set_opener_dom_ui_type(domui_type); TabContentsView* new_view = new_contents->view(); // TODO(brettw) it seems bogus that we have to call this function on the |