Closed Bug 1530465 Opened 1 year ago Closed 1 year ago

Add support for arbitrary JSON to the schema validator

Categories

(Firefox :: Enterprise Policies, enhancement, P1)

enhancement

Tracking

()

RESOLVED FIXED
Firefox 67
Tracking Status
firefox67 --- fixed

People

(Reporter: mkaply, Assigned: mkaply)

References

Details

Attachments

(1 file)

In order to support chrome.storage.managed and other features, the policy engine needs to support arbitrary JSON in policies.

But on Windows, GPO can't do arbitrary JSON, so things will be specified as strings (same as Chrome).

So this new support will introduce a new type called JSON that either parses a string or uses the specified object.

    "addon@example.com": {
      "policy": "{\"url_list\": [\"mike.kaply.com\"]}"
    }

or

    "addon@example.com": {
      "policy": {
        "url_list": ["mike.kaply.com"]
      }
    }

Will both work for:

          "properties": {
            "policy" : {
              "type": ["JSON"]
            }
          }
Blocks: 1230802
Pushed by mozilla@kaply.com:
https://hg.mozilla.org/integration/autoland/rev/43848f381d6c
Add support for JSON type in schema validator. r=Felipe
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 67

Hi Mike,

This bug is under our beta triage radar. Is manual testing required for this bug?

Flags: qe-verify?
Flags: needinfo?(mozilla)
QA Contact: emil.ghitta

This bug is under our beta triage radar. Is manual testing required for this bug?

Nope. We have automated testing to cover this. It's an internal thing.

Flags: needinfo?(mozilla)

Thank you for your answer. I will take out the flag for qe-verify ?

Flags: qe-verify?
You need to log in before you can comment on or make changes to this bug.