From 0cdcfdc4a111685b22cac793349c91cff2056579 Mon Sep 17 00:00:00 2001
From: Shane Tomlinson <stomlinson@mozilla.com>
Date: Wed, 1 Aug 2012 13:18:45 +0100
Subject: [PATCH] Add a console message if only one of privacyPolicy or
 termsOfService is defined.

---
 resources/static/include_js/include.js | 22 +++++++++++++++++-----
 1 file changed, 17 insertions(+), 5 deletions(-)

diff --git a/resources/static/include_js/include.js b/resources/static/include_js/include.js
index 66b5f9a2b..cd6e0173e 100644
--- a/resources/static/include_js/include.js
+++ b/resources/static/include_js/include.js
@@ -1076,13 +1076,25 @@
       }
     }
 
+    function log(message) {
+      try {
+        console.log(message);
+      } catch(e) {
+        /* ignore error */
+      }
+    }
+
     function internalRequest(options) {
       if (options.requiredEmail) {
-        try {
-          console.log("requiredEmail has been deprecated");
-        } catch(e) {
-          /* ignore error */
-        }
+        log("requiredEmail has been deprecated");
+      }
+
+      if (options.termsOfService && !options.privacyPolicy) {
+        log("termsOfService ignored unless privacyPolicy also defined");
+      }
+
+      if (options.privacyPolicy && !options.termsOfService) {
+        log("privacyPolicy ignored unless termsOfService also defined");
       }
 
       // focus an existing window
-- 
GitLab