Bug 248154

Summary: browser.runtime.getManifest() returns 1/0 instead true/false for background.persistent
Product: WebKit Reporter: Timothy Hatcher <timothy>
Component: WebKit ExtensionsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: achristensen, timothy, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Local Build   
Hardware: Unspecified   
OS: Unspecified   

Description Timothy Hatcher 2022-11-20 12:28:13 PST
Input:
{ manifest_version: 3, background: { persistent: false, scripts: ['background.js'] } }

Output:
{ manifest_version: 3, background: { persistent: 0, scripts: ['background.js'] } }

The boolean should not be converted to a number. I suspected this is a bug in NSJSONSerialization or JSValue type ObjC conversion.
Comment 1 Timothy Hatcher 2022-11-20 13:21:26 PST
See: https://github.com/w3c/webextensions/issues/281
Comment 2 Radar WebKit Bug Importer 2022-11-27 12:29:16 PST
<rdar://problem/102694631>
Comment 3 Alex Christensen 2023-06-28 16:03:32 PDT
Fixing in https://github.com/WebKit/WebKit/pull/15385
Comment 4 Alex Christensen 2023-06-28 16:04:01 PDT

*** This bug has been marked as a duplicate of bug 258647 ***