-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 On 2021-02-03 at 18:26, Andrew J. Buehler wrote:
> Does policies.json support local file paths for the Install > property of the Extension policy under Windows? If so, what syntax > is necessary when specifying them? > > > Version 2.7 of the policy-templates document (which I believe is > the relevant one for ESR 78.7) gives example paths of the forms > "https://addons.mozilla.org/firefox/downloads/somefile.xpi" and > "//path/to/xpi" - that is, a remote-URL path, and some form of > filesystem-based path (not clear whether local or network). > > It mentions that native paths are supported, which I infer to mean > that e.g. local paths of forms such as "/path/to/xpi" would work on > a Linux system. > > > However, when I try a local path of the form > "C:\path\to\filename.xpi" on a Windows system - that being the > form native paths typically take on Windows - Firefox ESR 78.7.0 > doesn't apply settings from the resulting JSON file, and > about:policies shows that there were errors parsing the file. A UNC > version of that local path ("\\C$\path\to\filename.xpi") - the > other Windows-native path form - gives the same result. Unsurprisingly enough, not long after writing the above it occurred to me to try replacing the backslashes in that UNC path with slashes, to match the given non-URL example: "//C$/path/to/filename.xpi". In my (so far brief) testing since that point, that appears to work. At the least it doesn't produce the JSON-parsing errors. However, this is not a path form which would work if provided to any of Windows' native UIs that I know of. I do not think it can reasonably be considered a native path. It's also wildly unintuitive to someone who hasn't encountered it before, but is familiar with Windows path conventions. If possible, I would request that actual Windows native path forms be supported. If that's not reasonably possible, I would request that at least the specific syntax necessary for specifying Windows paths be given in an example in the policy-templates document, for discoverability. - -- Andrew J. Buehler -----BEGIN PGP SIGNATURE----- iQJJBAEBCgAzFiEEJCOqsZEc2qVC44pUBKk1jTQoMmsFAmAbMugVHHdhbmRlcmVy QGZhc3RtYWlsLmZtAAoJEASpNY00KDJrTPkP/0nR92MKlajgAridk3Dr+LAIIghO qQnGNgR52L68o6CkzZKmJH2rNYizyAnLD0ARUHNrsYPLIgI6p3Rz75cvBW6YP4de 29SpD5/FPJY59JqyrtPre+8pXTmjCjqv0L3IdjT69YY3+RJo+g1hgGHYS7T2IabX 2EIDVJsASfyMKd8w3DJUXwCjCx2UDfIG+mzCa8P6rYn59ae1p+jkzZg38OZgFMB+ qT9M4eodPki6cm/cr9NCcq/chprQ3j/mhu/qhuFQXph/EmrY+djFKDSA3683SjEW 9LtZd0spXGDc4se3x4mQWHIdxYCG7UhbnLmomR24aUT5Kel2OUig6K3LOM4bJoe+ oN4YPUfwWcJostyUfZOZjlsBwqE+zTuLATmEWE7ce9wA4ZpX7bx+eveAg9nNCnq2 7Kk7OLSDUbKp+EoCB/h1WVWIgxKtTAPVnRIexapJqSsLytctJwYQoFkGse9Bl3Rp /chDxbBdXnU9EpHZuYT0WBgR+hOjAAGyaIrQccQk7J8hBcw4/H/4YWch8CTm1PEt qCBN4YRxGsQ4OKj5WEFrPM4qGjiTmWCPsUcfLBLDDv+GQz7wzcYM1tCjfrtOo+Gr D1FwjkpxLDjGqN5VXCY2hkN058b7QqUvOi3nXaQaZjSL8sKp8OgbggWFe5fXq4S1 9ILeDQLeqIkGk9wN =jIc+ -----END PGP SIGNATURE----- _______________________________________________ Enterprise mailing list [email protected] https://mail.mozilla.org/listinfo/enterprise To unsubscribe from this list, please visit https://mail.mozilla.org/listinfo/enterprise or send an email to [email protected] with a subject of "unsubscribe"

