Skip to content

Firefox HTTPS Testing

klabarge edited this page Oct 25, 2018 · 4 revisions

Testing from: https://github.com/tresf/tray/releases/tag/v2.0.8-RC2

Installer test case

  1. Install Firefox
  2. Install QZ Tray
  3. Restart Firefox

macOS policies.json test

  • Test 1 🚫 (baseline, expected to fail)

    I grabbed the BlockAboutConfig code snippet from the policies.json documentation and pasted it to the bottom of the policies.json file. After a restart, this caused Firefox + QZ Tray to break over HTTPS.

    {
      "policies": {
        "Certificates": {
          "ImportEnterpriseRoots": true
        }
      }
    }
    + {
    +   "policies": {
    +     "BlockAboutConfig": true
    +   }
    + }
  • Test 2 ✅

    I then properly placed the BlockAboutConfig in the policies.json file and restarted Firefox. QZ Tray + HTTPS worked.

    {
      "policies": {
    +   "BlockAboutConfig": true,
        "Certificates": {
          "ImportEnterpriseRoots": true
        }
      }
    }
  • Test 3 ⚠️

    I uninstalled QZ Tray and the policies.json was not touched. policies.json matched the code in test 2. Is this expected?

       Killing any running versions...
       [success]
    
    Removing installed certificates...
       [success] Found certificate matching support@qz.io
    security: SecKeychainItemCopyKeychain: The specified keychain could not be found.
       [success] No more matching certificates found
    
    [Finished apple-keygen.sh]
    
    Searching for Firefox...
       [success] Firefox 63 found at /Applications/Firefox.app
       [skipped] Configured via policies.json, no uninstall needed
    Cleanup is complete.  Removing /Applications/QZ Tray.app...
       [success]
    
    Uninstall of QZ Tray complete.
  • Test 4 🚫 (invalid json, expected to fail)

    I made the policies.json file the below.

    {
      "policies": {
        "BlockAboutConfig": true,
      }
    }

    When I reinstall QZ Tray, the policies.json file is clobbered; the existing policy is deleted

    {
      "policies": {
        "Certificates": {
          "ImportEnterpriseRoots": true
        }
      }
    }
  • Test 5 ✅

    I made the policies.json file the below.

    {
      "policies": {
        "BlockAboutConfig": true
      }
    }

    When I reinstall QZ Tray, the policies.json file is properly updated.

    {
      "policies": {
        "BlockAboutConfig": true, 
        "Certificates": {
          "ImportEnterpriseRoots": true
        }
      }
    }
    
    

Test Results

Old Firefox Latest Firefox Existing policies.json uninstall policies.json
macOS 61.0.1 ✅ 63.0 ✅ ⚠️
Linux

Clone this wiki locally