| Index: chrome/renderer/render_view.cc
|
| ===================================================================
|
| --- chrome/renderer/render_view.cc (revision 29244)
|
| +++ chrome/renderer/render_view.cc (working copy)
|
| @@ -1732,6 +1732,15 @@
|
| return;
|
| did_show_ = true;
|
|
|
| + // Force new windows to a popup if they were not opened with a user gesture.
|
| + if (!opened_by_user_gesture_) {
|
| + // We exempt background tabs for compat with older versions of Chrome.
|
| + // TODO(darin): This seems bogus. These should have a user gesture, so
|
| + // we probably don't need this check.
|
| + if (policy != WebKit::WebNavigationPolicyNewBackgroundTab)
|
| + policy = WebKit::WebNavigationPolicyNewPopup;
|
| + }
|
| +
|
| // NOTE: initial_pos_ may still have its default values at this point, but
|
| // that's okay. It'll be ignored if disposition is not NEW_POPUP, or the
|
| // browser process will impose a default position otherwise.
|
| @@ -2764,10 +2773,6 @@
|
| determine_page_text_after_loading_stops_ = true;
|
| }
|
|
|
| -bool RenderView::WasOpenedByUserGesture() const {
|
| - return opened_by_user_gesture_;
|
| -}
|
| -
|
| void RenderView::DnsPrefetch(const std::vector<std::string>& host_names) {
|
| Send(new ViewHostMsg_DnsPrefetch(host_names));
|
| }
|
|
|