bug 1180080 only copy selection to primary when select event received during user input r=dao

--HG--
extra : rebase_source : b2b86d3f55a7716d21302da3043a3e77a1fed732
This commit is contained in:
Karl Tomlinson 2015-08-28 20:37:42 +12:00
parent edc2d1e027
commit 4c5517df87

View File

@ -1010,6 +1010,11 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
.supportsSelectionClipboard())
return;
if (!window.QueryInterface(Ci.nsIInterfaceRequestor)
.getInterface(Ci.nsIDOMWindowUtils)
.isHandlingUserInput)
return;
var val = this._getSelectedValueForClipboard();
if (!val)
return;