| Index: content/browser/browser_plugin/browser_plugin_guest.cc
|
| diff --git a/content/browser/browser_plugin/browser_plugin_guest.cc b/content/browser/browser_plugin/browser_plugin_guest.cc
|
| index a3a86f8b7381f36fdc75282a386979079d8b4649..4c754ffab6b20e7b3dda2a5a6e63d07020b9f0a7 100644
|
| --- a/content/browser/browser_plugin/browser_plugin_guest.cc
|
| +++ b/content/browser/browser_plugin/browser_plugin_guest.cc
|
| @@ -215,7 +215,10 @@ void BrowserPluginGuest::Initialize(
|
| new BrowserPluginMsg_GuestContentWindowReady(instance_id_,
|
| guest_routing_id));
|
|
|
| - WebPreferences prefs = GetWebContents()->GetWebkitPrefs();
|
| + // TODO(chrishtr): this code is wrong. The navigate_on_drag_drop field will
|
| + // be reset again the next time preferences are updated.
|
| + WebPreferences prefs =
|
| + GetWebContents()->GetRenderViewHost()->GetWebkitPreferences();
|
| prefs.navigate_on_drag_drop = false;
|
| GetWebContents()->GetRenderViewHost()->UpdateWebkitPreferences(prefs);
|
|
|
|
|