| Index: webkit/plugins/npapi/webplugin_impl.cc
|
| ===================================================================
|
| --- webkit/plugins/npapi/webplugin_impl.cc (revision 73070)
|
| +++ webkit/plugins/npapi/webplugin_impl.cc (working copy)
|
| @@ -659,6 +659,7 @@
|
| WebPluginImpl::RoutingStatus WebPluginImpl::RouteToFrame(
|
| const char* url,
|
| bool is_javascript_url,
|
| + bool popups_allowed,
|
| const char* method,
|
| const char* target,
|
| const char* buf,
|
| @@ -715,6 +716,7 @@
|
| request.setHTTPMethod(WebString::fromUTF8(method));
|
| request.setFirstPartyForCookies(
|
| webframe_->document().firstPartyForCookies());
|
| + request.setHasUserGesture(popups_allowed);
|
| if (len > 0) {
|
| if (!SetPostData(&request, buf, len)) {
|
| // Uhoh - we're in trouble. There isn't a good way
|
| @@ -1078,8 +1080,8 @@
|
| // to the plugin's frame.
|
| bool is_javascript_url = StartsWithASCII(url, "javascript:", false);
|
| RoutingStatus routing_status = RouteToFrame(
|
| - url, is_javascript_url, method, target, buf, len, notify_id,
|
| - referrer_flag);
|
| + url, is_javascript_url, popups_allowed, method, target, buf, len,
|
| + notify_id, referrer_flag);
|
| if (routing_status == ROUTED)
|
| return;
|
|
|
|
|