Bug 248154 - browser.runtime.getManifest() returns 1/0 instead true/false for background.persistent
Summary: browser.runtime.getManifest() returns 1/0 instead true/false for background.p...
Status: RESOLVED DUPLICATE of bug 258647
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Extensions (show other bugs)
Version: WebKit Local Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-11-20 12:28 PST by Timothy Hatcher
Modified: 2023-06-28 16:04 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***