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 ef729e4b0596498a9955642a94894392af461e54..1da2fdd3f1525206597a0251e8920740ec887dcb 100644 |
--- a/content/browser/browser_plugin/browser_plugin_guest.cc |
+++ b/content/browser/browser_plugin/browser_plugin_guest.cc |
@@ -223,7 +223,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); |