Bug 1385785 - Clicking on form autofill dropdown warning notes should not open preferences tab. r=lchang
MozReview-Commit-ID: 4IWBroDQNT
--- a/browser/extensions/formautofill/content/formautofill.xml
+++ b/browser/extensions/formautofill/content/formautofill.xml
@@ -155,16 +155,20 @@
</div>
<div anonid="autofill-option-button" class="autofill-footer-row autofill-option-button">
</div>
</div>
</xbl:content>
<handlers>
<handler event="click" button="0"><![CDATA[
+ if (this._warningTextBox.contains(event.originalTarget)) {
+ return;
+ }
+
window.openPreferences("panePrivacy", {origin: "autofillFooter"});
]]></handler>
</handlers>
<implementation implements="nsIDOMXULSelectControlItemElement">
<constructor>
<![CDATA[
this._itemBox = document.getAnonymousElementByAttribute(