Bug 1185042 - Correctly send the checked status of the URL opt-in checkbox when submitting a crash report. r=mconley

--HG--
extra : commitid : 1jriHw2XW1m
extra : amend_source : db5ceef7376ea0de3612afc11797456169c1723b
This commit is contained in:
Trevor Rowbotham 2015-07-17 12:16:00 -04:00
parent ed84104432
commit 09cd3f54fa

View File

@ -580,12 +580,12 @@ PluginContent.prototype = {
}
let runID = plugin.runID;
let submitURLOptIn = this.getPluginUI(plugin, "submitURLOptIn");
let submitURLOptIn = this.getPluginUI(plugin, "submitURLOptIn").checked;
let keyVals = {};
let userComment = this.getPluginUI(plugin, "submitComment").value.trim();
if (userComment)
keyVals.PluginUserComment = userComment;
if (this.getPluginUI(plugin, "submitURLOptIn").checked)
if (submitURLOptIn)
keyVals.PluginContentURL = plugin.ownerDocument.URL;
this.global.sendAsyncMessage("PluginContent:SubmitReport",