Bug 1152888, [e10s] After opening the web page in new tab, drag and drop onto the contents area is not working, r=enndeakin

This commit is contained in:
Olli Pettay 2015-04-13 21:58:56 +03:00
parent ecd0fc423c
commit 61e2469213

View File

@ -1252,6 +1252,11 @@
event.preventDefault();
}
// No need to handle "dragover" in e10s, since nsDocShellTreeOwner.cpp in the child process
// handles that case using "@mozilla.org/content/dropped-link-handler;1" service.
if (this.isRemoteBrowser)
return;
let linkHandler = Components.classes["@mozilla.org/content/dropped-link-handler;1"].
getService(Components.interfaces.nsIDroppedLinkHandler);
if (linkHandler.canDropLink(event, false))