mozilla-bmo1554971.patch
branchfirefox87
changeset 1155 b8c834aafde2
parent 1154 71a92b4d0527
child 1156 c3d884659acf
equal deleted inserted replaced
1154:71a92b4d0527 1155:b8c834aafde2
     1 # HG changeset patch
       
     2 # Parent  38d48db62539afe61d542c9d21e32d57d4b00a73
       
     3 Eliminate startup error message:
       
     4 JavaScript error: , line 0: Error: Type error for platformInfo value (Error processing arch: Invalid enumeration value "s390x") for runtime.getPlatformInfo.
       
     5 
       
     6 Reported here: https://bugzilla.mozilla.org/show_bug.cgi?id=1554971
       
     7 
       
     8 Uncertain if this is causing real problems or not. Also uncertain if the fix actually fixes anything.
       
     9 No response from upstream yet.
       
    10 
       
    11 diff --git a/toolkit/components/extensions/schemas/runtime.json b/toolkit/components/extensions/schemas/runtime.json
       
    12 --- a/toolkit/components/extensions/schemas/runtime.json
       
    13 +++ b/toolkit/components/extensions/schemas/runtime.json
       
    14 @@ -59,17 +59,17 @@
       
    15          "type": "string",
       
    16          "allowedContexts": ["content", "devtools"],
       
    17          "description": "The operating system the browser is running on.",
       
    18          "enum": ["mac", "win", "android", "cros", "linux", "openbsd"]
       
    19        },
       
    20        {
       
    21          "id": "PlatformArch",
       
    22          "type": "string",
       
    23 -        "enum": ["arm", "x86-32", "x86-64"],
       
    24 +        "enum": ["arm", "x86-32", "x86-64", "s390x", "aarch64", "ppc64le"],
       
    25          "allowedContexts": ["content", "devtools"],
       
    26          "description": "The machine's processor architecture."
       
    27        },
       
    28        {
       
    29          "id": "PlatformInfo",
       
    30          "type": "object",
       
    31          "allowedContexts": ["content", "devtools"],
       
    32          "description": "An object containing information about the current platform.",